Skip to content

ci(rust): run every regression-pin stem via dynamic census (Refs #3430) - #3436

Merged
caomengxuan666 merged 4 commits into
masterfrom
fix/3430-ci-pin-stems
Nov 12, 2026
Merged

caomengxuan666 merged 4 commits into
masterfrom
fix/3430-ci-pin-stems

Conversation

@caomengxuan666

@caomengxuan666 caomengxuan666 commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Refs #3430 — UNVERIFIED-BY-CAPTAIN

根因

rust 作业只跑手写精选 --test 表(lib、marker goldens 与 8 个点名钉),其余 1367 个 tests/issue*.rs 钉 stem 从未在 CI 里执行,CI 全绿也不能证明新钉跑过——PR #3424 的 issue3406 stem 在 10 pass + 1 skipping 的绿 CI 下执行了 0 次(作业日志全文 0 处 issue3406),唯一执行证据是复核的 box 腿。

改动

  • 新脚本 scripts/ci-run-pin-stems.sh:运行时从树里枚举 tests/issue*.rs(本基底 1375 个,排除 2 个后跑 1373 个),以单次 cargo nextest run --profile ci --no-fail-fast 全跑;新钉默认覆盖。
  • 新文件 scripts/ci-pin-exclusions.txt:唯一的出口——逐条说明理由的排除项。脚本遇过期排除项(stem 已改名/删除)即报错退出,文件须跟踪树。
  • ci.yml rust 作业新增最后一步 Run all regression pin stems(跑该脚本);作业超时 30 → 60 分钟(全量钉编译+跑在全新 runner 上 30 分钟不够)。

初始排除项(均为钉先行、修法未落地、钉断言 GNU 行为、属已立案的 OPEN 缺陷):

两根的修法落单时,须在同一 PR 里删掉对应排除行,stem 即默认跑。

既有钉普查:tests/ 共 1460 个 stem,issue* 1375 个;CI 点名表只覆盖其中 8 个(issue824/1467/2036/2043/2046/2237/2250/1025…),缺口 1367 个。点名步全部保留(各有硬门注释),新步是普查门。

本 PR 删除了什么

无删除:只新增两个脚本文件与一个 CI 步骤、改一行超时数字;无产品代码改动、无文件删除、无公开 API 删除、无行为删除。

验证

  • 脚本逻辑以 stub cargo 本地验证:枚举 1373 个 stem、两根 J1 排除项仅出现在 EXCLUDED 行、过期排除项路径 rc=2 且报错准确(已还原);bash -n 通过;ci.yml 经 PyYAML 解析通过(rust 超时 60、新步为 rust 作业最后一步)。
  • 真凭据以本 PR 的 CI 代为准:rust 作业的 Run all regression pin stems 步须完整跑完并在日志里打出 pin stems to run: 1373。首跑若有其他钉先行红茎,须按日志逐根裁断后补进排除表再推(本 PR 不预设更多排除项)。

Refs #3430

普查结果(已跑完三轮,终代全绿)

The rust job ran a hand-curated --test list, so any pin stem not on
it never executed while CI stayed green: PR #3424's issue3406 stem
ran 0 times under a green CI (10 pass + 1 skipping) and its only
execution evidence was the review's box legs.

scripts/ci-run-pin-stems.sh enumerates tests/issue*.rs from the tree
at run time (1373 stems on this base, 2 excluded), so a new pin is
covered by default; the only way out is an explicit, reasoned entry
in scripts/ci-pin-exclusions.txt. The script fails the job on a
stale exclusion entry, and runs nextest with --no-fail-fast so one
red stem does not hide the rest of the census.

Initial exclusions (pins-first, fix pending, both asserting GNU
behavior that is a recorded open defect): issue2769 (#2769), issue2777
(#2777). The rust job timeout goes 30 -> 60 minutes for the full
pin compile+run on a fresh runner.

UNVERIFIED-BY-CAPTAIN
…ile (Refs #3430)

The first census run (CI 43229859742) ran 1373 stems / 9063 tests:
8780 passed, 283 failed, 5 skipped. 87 stems were red; 83 name
CLOSED issues. Each red stem is now an entry here with its issue,
state, failing-test count, last-touch class, failure-signature
class (PINS-FIRST / PRODUCT / MISMATCH / ENV / TIMING / FIXTURE)
and what adjudication is still owed, so the gate can go green on
everything else while the known-red baseline stays visible and
tracked. The 83 closed-issue reds need a captain adjudication wave
(serial re-runs, then fix / re-pin / file residuals).
Second census run (43234272221): 8309 passed / 2 failed. Both
failures are issue2836_emulated_cat_job_control_regressions, whose
3 tests all PASSED in run 1 (2.5-3.8s) on the same product code --
a parallel-load PTY timing flake (22s wait for "[1]+  Stopped").
Triaged as TIMING with the flake evidence recorded; serial re-run
owed by the captain adjudication wave.
@caomengxuan666

Copy link
Copy Markdown
Member Author

复核:PASS(Refs #3430,终头 e89a17c4)

复核员结论:PASS。§1–§8 已 FINAL(diff 恰 3 文件、零产品代码;1286 茎普查终轮全绿 8308/8308;卫生三项绿);第 4 轮盒腿 8 项全部回填(卷宗 §9)。

  • 盒腿:新 clone 头断言 + porcelain clean;交集对活尖 e50cea96 重算为 ∅;枚举 1375 茎 / 90 排除;stub 功能测试 1285 茎 + 过期排除项 rc=2;抽查 5 茎 4 全绿(issue3333 18/18、issue3416 5/5、issue3276 19/19、issue2036_s5 2/2);lib 双边皆 1246/0/4(失败名集 ∅);-D warnings 1509 次调用 0 错误。
  • 唯一红格 issue2043_a2 已定性为 ENV(locale):盒 en_US.UTF-8 下模拟 basename 出 U+2018/U+2019 引号,钉期望 ASCII 引号;CI(C.UTF-8)下该茎绿;本 PR 零产品代码,不可能是引入方。归入裁断波 ENV 类,不新立案。
  • 合入条件:update-branch + 交集重算;正文用 merge-body.md 逐字;CI 不跑新回归钉 stem:Rust tests 只跑精选 nextest 表 #3430 合入后由队长手动关。

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