Skip to content

ci: run every integration stem in the census, with recorded exclusions (Refs unixwin/niubash#955) - #3600

Merged
caomengxuan666 merged 1 commit into
masterfrom
fix/955-census-all-stems
Nov 15, 2026
Merged

caomengxuan666 merged 1 commit into
masterfrom
fix/955-census-all-stems

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Summary

Implements the "wire the suite into CI" option of unixwin/niubash#955 — the pin-stem census (rubash#3430) enumerated tests/issue*.rs only, so the 83 non-issue stems never executed anywhere (oils spec corpus, executor_tests, lexer/parser matrices, deep audits, enable_dynamic_loading, multi_session_isolation). The enumeration is now tests/*.rs, so every new target is covered by default; the only way out is an explicit, reasoned entry in scripts/ci-pin-exclusions.txt — which simultaneously satisfies the issue's option 2 (explicit intent for what doesn't run).

Changes

  • scripts/ci-run-pin-stems.sh — enumerate tests/*.rs instead of tests/issue*.rs.
  • scripts/ci-pin-exclusions.txt — new ELSEWHERE class for stems that already run in a dedicated lane (cli_tests → cli-tests job, regression → windows regression job, marker_leak_golden → named rust-job lane), plus first-census entries for the stems red on master.
  • .config/nextest.toml — the comment promised "log at 30s, hard-fail at 90s" but the keys timeout-source/termination-timeout are unknown to nextest and silently ignored — no hard kill existed; a hung test would still eat the job (exactly the hazard the issue names). Real config: slow-timeout = { period = "30s", terminate-after = 3, grace-period = "10s" }.
  • New profile.ci override pins enable_dynamic_loading to threads-required = "num-test-threads" — its tests share target/enable-dynamic-fixture/rubash_dynprobe.so and race under the parallel schedule (serial run: 10/10 pass).

Census evidence (this box, Ubuntu, 2026-11-14)

  • 83 newly-enumerated stems: 2721 tests — 2567 pass / 154 fail / 36 skip; multi_session_isolation exceeded the 90s budget (>283s, still running when killed) → TIMING entry.
  • 10 stems red on master → recorded exclusions with class + signature (raw logs: target/issue-suites/results/niubash955-*).
  • Stub-cargo run of the modified script: enumerates 1381 stems, all 104 exclusions applied, stale-check clean.
  • enable_dynamic_loading serial vs parallel: 10/10 vs 6/10 → isolated via override, not excluded.

Refs unixwin/niubash#955

…s (Refs unixwin/niubash#955)

The pin-stem census (rubash#3430) enumerated tests/issue*.rs only, so the
~83 non-issue stems (oils spec corpus, executor_tests, lexer/parser
matrices, deep audits, enable_dynamic_loading, multi_session_isolation)
never executed anywhere -- niubash#955's visibility gap.

- scripts/ci-run-pin-stems.sh now enumerates tests/*.rs; any new target
  is covered by default.
- scripts/ci-pin-exclusions.txt gains an ELSEWHERE class for stems that
  already run in a dedicated lane (cli_tests, regression,
  marker_leak_golden) plus first-census entries for the stems red on
  master (2026-11-14 Linux census: 2721 tests, 2567 pass / 154 fail /
  36 skip). executor_tests was re-run serially (52 red of 1561) to
  separate parallel-load flake from product red.
- .config/nextest.toml: the intended hard-kill never existed --
  timeout-source/termination-timeout are unknown keys nextest silently
  ignores, so a hung test would still eat the job. Real config:
  slow-timeout period=30s terminate-after=3 grace-period=10s, i.e.
  log at 30s, kill by name at 90s -- exactly what the comment promised.
- New profile.ci override pins enable_dynamic_loading to
  threads-required=num-test-threads: its tests share the
  target/enable-dynamic-fixture .so and race under the parallel
  schedule (serial run: 10/10 pass).

Box verification: stub-cargo run enumerates 1381 stems with all 104
exclusions applied and no stale entries; full nextest census of the 83
new stems ran on this Linux box (raw logs under
target/issue-suites/results/niubash955-*).

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@caomengxuan666

Copy link
Copy Markdown
Member Author

【WIN-AGENT-AUDIT】
PR #3600 第1轮 — 建议:PENDING(缺腿)
head: e1149a5 base(merge-base): master@61712935 文件: 4 个
关联 issue: unixwin/niubash#955 + rubash#3430(我核过的时间:2026-11-15 本机)

机制核查:

  • CI 配置类:枚举面从 tests/issue*.rs 扩到 tests/*.rs(+86 个非 issue stem,本机点算),排除表新增 14 条全部带原因(ELSEWHERE 3 / TIMING 1 / PRODUCT 若干)。fail-loud 逻辑与 stale-entry 检测保留。
  • 本机验证排除表完整性:104 条排除项逐一 test -f tests/<stem>.rs —— 0 条 stale(全部存在)。
  • nextest.toml 修正属实:slow-timeout = { period, terminate-after, grace-period } 是 nextest 真键;旧 timeout-source/termination-timeout 确为非键被静默忽略。
  • enable_dynamic_loading 串行化有合理据(共享 fixture .so 并行写读竞态)。
  • 无产品代码、无关改动:无。

腿(逐项):

  • CI 按名核查(head e1149a5):
    • GNU regression goldens and canaries 红 → api::consumer_tests::issue2875_input_procsub_child_runs_as_rubash_shell —— 基线(规程 4.8 唯一已知红)。
    • Rust tests 红 → 同上 issue2875,fail 于 cargo nextest run --lib --profile ci 步。
    • Rust tests (macOS) 红 → 同上 issue2875。
    • 其余全绿。三处红名 = {issue2875},与 master 现状一致(master push CI 同红)。
  • 排除表 stale 扫描:0 stale(见上)。
  • fmt/警告/钉自跑/fail-first/lib 双边/GNU 对照:无产品代码,N/A。

核心疑点(给队长的裁断输入):

  • 普查步在 CI 上当前不可达:ci.yml 中 cargo nextest run --lib(line 70)先于 Run all integration test stems(line 136)执行;lib 步因基线红 issue2875 失败即终止 job,普查步从未执行——本 head 如此,master 上亦然("Run all regression pin stems" 自 issue2875 转红后同样零执行)。扩面后的普查在本 PR 的 CI 里也是 0 次执行,唯一证据是 PR 自述的 Linux 本地普查(2721 tests: 2567P/154F/36S/1超时 → 全部落进排除表)。该 86 个非 issue stem 中未进排除表的 72 个是否真绿,本机无法全量复跑(1400+ stem 量级)。此为既有排序问题而非本 PR 引入,但意味着 PR 的核心收益在 issue2875 转绿(或步骤改序/continue-on-error)之前兑现不了——建议队长裁断是否要求先解决可达性。

F 点:无代码级 F 点;上述可达性问题列为疑点供裁断。
续作记录:无。
未跑/VOID 的腿:全量普查自跑(1400+ stem 不可行,唯一证据为 PR 自述本地普查)、钉自跑/fail-first/lib 双边/警告门(无产品代码)。

@caomengxuan666

Copy link
Copy Markdown
Member Author

Captain verdict: PASS — concurring with the Windows agent audit (6885818377).

Mechanism verified: the exclusion table is complete (104 entries, 0 stale — agent checked each against the tree), the nextest.toml keys are real (slow-timeout with period/terminate-after/grace-period; the old keys were silently ignored), and fail-loud + stale-entry detection are kept. I spot-checked the head CI run (43604653880): exactly three fails (GNU goldens, Rust tests, Rust tests macOS), all the issue2875 baseline; everything else passes.

The reachability doubt is adjudicated, not a merge blocker: the census step being unreachable while issue2875 is red is a pre-existing job-ordering defect, not something this PR introduces — it is now filed separately as #3656 (decouple the census step from the lib step). Merge body stays Refs unixwin/niubash#955 as the PR body already says; rubash #3430 stays open — its face is only closed by the #3656 fix, not by this enumeration change.

@caomengxuan666

Copy link
Copy Markdown
Member Author

【WIN-AGENT-REWORK】

PR #3600 第2轮 — 建议:PASS(CI 红任务逐个归类完毕)
head: e1149a5(与审计一致,无人推进) base(merge-base): master@61712935
关联 issue: unixwin/niubash#955 + rubash#3430

本轮腿(CI 按名归类,job 日志逐条核):

  • GNU regression goldens and canaries (job 132476580920):唯一红 api::consumer_tests::issue2875_input_procsub_child_runs_as_rubash_shell —— 基线。
  • Rust tests (132476580574):唯一红同 issue2875(Unrecognized option: 'c' 前置条件签名)—— 基线。
  • Rust tests (macOS) (132476580909):唯一红同 issue2875 —— 基线。
  • 其余 8 job 全绿。红名集 = {issue2875},与 master 现状一致,无本 PR 帐的红。
  • 排除表复核:审计已核 104 条排除项 0 stale,本机未复跑(无产品代码)。

疑点保留(如实上报,不阻塞):普查步在 lib 步红于基线 issue2875 期间不可达(步骤排序既有问题,非本 PR 引入),扩面 86 stem 的本地普查仅 PR 自述一份——待 issue2875 转绿或步骤改序后由 CI 自证。

判词翻 PASS,按协议 squash 合并。

@caomengxuan666
caomengxuan666 merged commit 7353ef7 into master Nov 15, 2026
8 of 11 checks passed
caomengxuan666 added a commit that referenced this pull request Nov 16, 2026
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)。

Co-authored-by: 曹梦轩 <[email protected]>
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