Skip to content

ci: run regression-pin census even when lib step fails (Refs #3656) - #3689

Merged
caomengxuan666 merged 1 commit into
masterfrom
fix/3656-ci-census-step-decoupled
Nov 16, 2026
Merged

caomengxuan666 merged 1 commit into
masterfrom
fix/3656-ci-census-step-decoupled

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

根因

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(钉需 spawn target/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-census job;rust job 的超时注释随之更新。

验证

  • 本地:python3 -c yaml.safe_load 解析通过;actionlint 1.7.7 通过(rc=0)。
  • CI:待本 PR head 上的 run 落定——验收为 issue2875 仍红时,pin-stem-census job 确实执行且独立报结果,同时 rust job 仍因 issue2875 基线红而失败。

说明

UNVERIFIED-BY-CAPTAIN

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)。
@caomengxuan666
caomengxuan666 marked this pull request as ready for review November 16, 2026 09:16
@caomengxuan666
caomengxuan666 merged commit 1c811bc into master Nov 16, 2026
8 of 12 checks passed
@caomengxuan666

Copy link
Copy Markdown
Member Author

【WIN-AGENT-AUDIT】PR #3689 第1轮 — 建议:PASS(已合并 squash 1c811bc)

head(合并时): ec65c24 base(merge-base): 35437c4 文件: 1 个(.github/workflows/ci.yml)+72/-11
关联 issue: #3656(状态:open,我核过的时间:2026-11-16 本地)— issue 标题即本 PR 的根因描述,已随合并关单。

机制核查:

  • 根因属实:Run all integration test stems 原为 rust job 末步,cargo nextest run --lib 的 issue2875 基线红使 job 提前终止,普查自转红起 0 次执行。修法(独立 job、不设 continue-on-error、复制所需搭建)与 [CI] tests/ 树无 Windows 编译门 + cli_tests 静默 lane——补 check-only Windows lane 与失败预算 #2176 cli-tests 先例一致,属 CI 拓扑修正,非产品代码。
  • 搭建完整性逐项核:新 job 含 checkout+submodules / rust-toolchain / bashdb fixture(fixture-gated stem 保持真实覆盖)/ nextest 安装 / cargo build --locked(钉 spawn target/debug/rubash 所需)。scripts/ci-run-pin-stems.sh 依赖的 nextest、tests/*.rs 枚举、ci-pin-exclusions.txt 均已覆盖;无遗漏依赖。
  • 顺手改动:无(仅步骤搬迁 + rust job 超时注释更新)。本 PR 删除了什么 节属实。

腿(CI-only PR,无产品钉/lib 腿):

  • YAML:PR head ci.yml yaml.safe_load 通过;本地同文件解析通过。
  • CI 验收(PR 自定标准):issue2875 仍红时 Regression pin stem census job 独立执行 11m24s 并独立报红 —— 验收达成。rust job 红格唯一 = issue2875_input_procsub_child_runs_as_rubash_shell(基线)。
  • census 红归因:43 个 stem FAIL(issue3211/3311/3382/3420/698/720/977/1029/1868/1872/2024/2036*/2043/2046*/2280/2480/2612-2614/2642/2657/2658/2688/2693/2698/2701/2709/2711/2721/2729/2779/2802/3019/3026/3032/3048/3091/3116/3117/3189/3299),全部为产品级 pins-first 基线红(本 PR 只动 ci.yml,不可能引入);9904 个测试执行,infra/编译/fixture 无异常。新 job 按设计非 required gate。
  • fmt/marker/utf8:不适用(无 Rust 源改动)。

F 点:无。

合入:gh pr ready → squash merge 1c811bc(2026-11-16,MERGEABLE/UNSTABLE——UNSTABLE 即上述预期基线红)。

未跑/VOID 的腿:无。

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.

1 participant