Repository navigation
ci: run regression-pin census even when lib step fails (Refs #3656) - #3689
Merged
Merged
Conversation
The dynamic pin-stem census (scripts/ci-run-pin-stems.sh) ran as the last step of the rust job, after 'cargo nextest run --lib'. A lib-step failure terminates the job, so the census never executed: since the issue2875 baseline red, the census has run zero times on master, and the widened enumeration from #3600 (+86 non-issue stems) was never CI-verified. Move the census to its own job, pin-stem-census, with no continue-on-error, following the #2176 cli-tests precedent: a census failure shows up as a red named check, and a lib-step red can no longer hide it. The job replicates the setup the census relied on inside the rust job (bashdb fixture, nextest install, cargo build so pins can spawn target/debug/rubash). Not a required gate yet: the census is red on master (known-red baseline), so gating today would block every PR; promote once the census reaches zero. Root cause: job steps default to if: success(), so any earlier step failure skips all later steps in the same job. UNVERIFIED-BY-CAPTAIN 本 PR 删除了什么:无产品代码、无测试、无文件删除。仅把 .github/workflows/ci.yml 中 'Run all integration test stems' 一步 从 rust job 移入新建的 pin-stem-census job;rust job 的超时注释 随之更新(census 的 60 分钟 backstop 移入新 job)。
This was referenced Nov 15, 2026
caomengxuan666
marked this pull request as ready for review
November 16, 2026 09:16
Member
Author
|
【WIN-AGENT-AUDIT】PR #3689 第1轮 — 建议:PASS(已合并 squash 1c811bc) head(合并时): ec65c24 base(merge-base): 35437c4 文件: 1 个(.github/workflows/ci.yml)+72/-11 机制核查:
腿(CI-only PR,无产品钉/lib 腿):
F 点:无。 合入:gh pr ready → squash merge 1c811bc(2026-11-16,MERGEABLE/UNSTABLE——UNSTABLE 即上述预期基线红)。 未跑/VOID 的腿:无。 |
This was referenced Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
根因
cargo nextest run --lib(rust job)在普查步Run all integration test stems之前执行;GitHub Actions 步骤默认if: success(),lib 步一失败 job 即终止,普查步从未执行。自 issue2875 转红后,普查在 master 上执行次数为零(#3600 把枚举面从tests/issue*.rs扩到tests/*.rs后新增的 72 个未排除 stem,CI 从未验证过)。与 #3430 的教训同族:CI 全绿不再证明新钉执行过。修法
普查步改独立 job
pin-stem-census(不设continue-on-error),沿用 #2176 cli-tests 的先例:失败显示为独立的红色 named check,lib 步的红再也盖不住它。新 job 复制普查在 rust job 内依赖的搭建:bashdb fixture(fixture-gated stem 保持真实覆盖而非 skip)、nextest 安装、cargo build(钉需 spawntarget/debug/rubash)。rust job 的超时注释随之更新(census 的 60 分钟 backstop 移入新 job)。未选的方案:仅给 lib 步加
continue-on-error会把 lib 红掩成 job 绿;仅调换步骤顺序不能解耦(普查先红同样会挡住 lib 步)。本 PR 删除了什么
无产品代码、无测试、无文件删除。仅把
.github/workflows/ci.yml中Run all integration test stems一步从 rust job 移入新建的pin-stem-censusjob;rust job 的超时注释随之更新。验证
python3 -c yaml.safe_load解析通过;actionlint 1.7.7 通过(rc=0)。pin-stem-censusjob 确实执行且独立报结果,同时rustjob 仍因 issue2875 基线红而失败。说明
scripts/ci-pin-exclusions.txt),今天设门会挡住所有 PR;待普查归零后再提升,与 cli-tests 同口径。UNVERIFIED-BY-CAPTAIN