Repository navigation
fix(ci): allow release replay of the chat recovery fixture - #9493
Conversation
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
loopx-agent
left a comment
There was a problem hiding this comment.
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.
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/mainand 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 contractScope 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.uv run --extra test python examples/release-artifacts-smoke.pyuv run --extra test python examples/release/release-readiness-doc-smoke.pyuv run --extra test python -m pytest -q tests/test_release_artifact_publication.pyBoundary checklist
Independent exact-head validation
An independent reviewer validated
2d9500975e68a42fef09bfc3dcd584a43a3e558fusing the published v2.4.1 archives and the exact #9437 fixture. The shipped selector rejected the correction against the realorigin/mainbecause 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