Skip to content

fix(ci): allow release replay of the chat recovery fixture - #9493

Merged
huangruiteng merged 1 commit into
mainfrom
codex/release-chat-recovery-fixture-20261126
Nov 26, 2026
Merged

huangruiteng merged 1 commit into
mainfrom
codex/release-chat-recovery-fixture-20261126

Conversation

@loopx-agent

@loopx-agent loopx-agent commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Goal and delivered outcome

Release Artifacts needs to rerun the browser suite against a frozen product when a test assertion changes. The published recovery workflow already supports selecting fixture corrections from a reviewed commit on main. Its allowlist omitted the chat-recovery smoke file, so a commit containing only the correction in #9437 selected no files. The failure that prompted the correction is visible in the Release Artifacts browser job.

Add the chat-recovery smoke to the existing allowlist, executable workflow contract smoke, and release guide. The selector still requires a full commit SHA reachable from origin/main and validates that all selected paths are regular files before copying them.

Author declaration

Written by an OpenAI Codex model agent. The implementation follows the release-readiness replay contract on base 6ac6c6fe285c7e3d244f70aa5aac89935b5a3366. Replay contract

Criterion Disposition Evidence
Select only an eligible test correction Implemented Existing producer, candidate manifest, and consumer exercise the added path.
Preserve frozen package identity Implemented The official candidate wheel, source distribution, and checksum manifest kept their original SHA-256 digests through selection and adoption.
Keep merged ancestry and regular-file requirements Implemented The replay rejects unmerged and symlink candidates. The contract smoke also covers deletion and an unrelated-only commit.

Scope and continuation

The workflow addition is independently reviewable. The exact #9437 fixture correction remains in its own PR. The usual browser validation is still required when maintainers use the replay on a release.

Validation

Tested revision 2d9500975e68a42fef09bfc3dcd584a43a3e558f.

Check Result
uv run --extra test python examples/release-artifacts-smoke.py Passed.
uv run --extra test python examples/release/release-readiness-doc-smoke.py Passed.
uv run --extra test python -m pytest -q tests/test_release_artifact_publication.py 28 passed.
Shipped workflow producer and consumer with the official CI candidate archives and the exact #9437 fixture bytes The old selector rejected the one-file correction. The updated selector and unchanged consumer adopted that file alone. Package hashes matched before and after. Git ancestry was modeled in an isolated local checkout.
Hosted release replay with a new merged fixture SHA Pending merge of a qualifying correction and authorized dispatch.

Boundary checklist

  • UI impact none.
  • Build, packaging, or CI bug fix with documentation and test coverage.
  • The diff and body contain only public-safe material.
  • The bilingual RFC diff check passed and no paired RFC changed.
  • The commit has a DCO sign-off.

Independent exact-head validation

An independent reviewer validated 2d9500975e68a42fef09bfc3dcd584a43a3e558f using the published v2.4.1 archives and the exact #9437 fixture. The shipped selector rejected the correction against the real origin/main because it was still unmerged. Under controlled ancestry in an isolated checkout, the updated selector and consumer adopted the exact fixture bytes, restoration left tracked files clean, and the published wheel, source distribution, and checksum manifest kept their original digests.

The review covered fixture adoption and restoration using the published assets. A maintainer-triggered browser replay against an actually merged correction remains pending. Published v2.4.1 assets

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh

Approval conclusion (author-owned PR; GitHub blocks formal self-approval)

动机 / Motivation

发布维护者在既有 tag 的浏览器夹具需要改正时,用同一版发布制品重跑验收。

只修改 chat-recovery 夹具时,旧选择器会报找不到允许回放的修正。加入现有白名单后,维护者可沿原发布入口选择该夹具。 用 v2.4.1 公开制品和 #9437 的准确夹具字节复验。真实 main 仍拒绝未合入的提交。在隔离仓库模拟合入后,旧选择器拒绝,新选择器与下游只应用这一文件,恢复后制品和校验清单哈希完全相同。

本改动覆盖选取、下游采用、恢复和实际发布制品校验。实际运行的 GitHub 发布任务和浏览器整套验证由维护者按原流程执行。 #9437 当前还未合入。发布维护者需要在有合格主干提交后,用原有入口调度并读回完整浏览器结果。

按基线 6ac6c6fe285c7e3d244f70aa5aac89935b5a3366 复核三项既有约束。Merged fixture commit 用完整且已合入的提交,Regular files before copy 在复制前核验文件类型,Frozen product provenance 要求保留制品并校验恢复结果。发布回放规范

改动思路 / Approach

在原发布工作流的选择器增加一条精确路径,继续用同一来源记录交接给浏览器任务。 当前交付限于现有发布回放入口、对应冒烟测试和维护指南。 选择器从固定 tag 和合格提交比较允许路径,消费方读回已有的来源记录与校验和。把整个目录开放会把无关脚本一并纳入。保留单一路径的做法同时解决单文件修复不能重跑的问题,并使下一次变更仍只需改原所有者。

具体改动 / Changes

  • 在发布工作流的 allowed 增加 chat-recovery.mjs。四组对照中,无修正、旧允许路径、同目录不允许路径和无效 SHA 的旧新观察完全一致。真实 #9437 尚未进入主干,祖先关系检查拒绝这一提交。选择器
  • 现有 fixture_recovery_contract 把新增路径加入实际执行的测试,保留整批预检与回退。复制前拒绝符号链接或删除,摘要不符时下游拒绝。发布指南同步说明这一条允许路径和现有约束。测试
  • 选取测试用公开的 v2.4.1 wheel、sdist 和 SHA256SUMS。在隔离 Git 里用 #9437 的同一份夹具字节模拟已审阅合入,并加入另一个不允许的同目录修改。生产者与消费方只复制目标路径,恢复后工作树干净且三份制品摘要未变。发布制品

对主干的风险 / Risks

独立验证包含发布制品和发布指南两个冒烟测试、28 项发布单测和标准预检的 5 项直接检查与 19 项执行检查。第一次预检在语义扫描时缺少仓库 TypeScript 依赖,安装锁定依赖后同一套预检全部通过。当前仍需用真正合入的夹具提交触发托管浏览器验收。未查询 GitHub CI。

我的整体评价 / Verdict

APPROVE。 独立复核范围内没有阻塞发现。变更位于发布工作流、验收文档和测试路径清单,没有渲染界面改动。托管发布浏览器回放尚待实际调度。验证限定为同一发布制品的选取、回放准备和恢复,实际合入与调度各由原流程处理。

English verdict: APPROVE at 2d95009. The existing replay workflow admits the exact chat recovery fixture and preserves reviewed ancestry, regular-file checks, consumer provenance and all original v2.4.1 package digests. Local validation passed. The hosted browser replay remains pending.

@huangruiteng
huangruiteng merged commit 56277a7 into main Nov 26, 2026
30 of 47 checks passed
@huangruiteng
huangruiteng deleted the codex/release-chat-recovery-fixture-20261126 branch November 26, 2026 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants