Skip to content

ci(test): build the hermetic job without debug info (Test phase, stage 3) - #329

Merged
aRustyDev merged 2 commits into
mainfrom
ci/test-stage-crates
Nov 19, 2026
Merged

aRustyDev merged 2 commits into
mainfrom
ci/test-stage-crates

Conversation

@aRustyDev

Copy link
Copy Markdown
Owner

What

Stage 3 of the Test phase (.agents/plans/ci-workflows/phases/0003-test.md), crates: the nextest part of hermetic. One change to the workflow, the stage's plan and measurements, and one gap recorded.

hermetic is on no critical path, so this stage can save runner minutes and no pull request's wall clock. Full runs now end at the worker-cf e2e cell (558 s and 736 s in the two I read); hermetic is 162 to 173 s. It runs on 43 of the last 60 merged pull requests. I sized the effort to that: one cheap, measured change, and the rest measured or bounded and refused.

The change

CARGO_PROFILE_DEV_DEBUG: none at the job level of hermetic (so every cargo step shares one profile; a different one rebuilds). The dev profile keeps full debug info for 133 test binaries, and the mutants profile already has none. Measured by dispatch on a throwaway branch, each variant with a cache of its own, three warm runs each, with main's unchanged job run beside them:

nextest step job cache
main as it is 95 to 98 s 153 to 172 s (median 162) 605 to 651 MiB
none 72 to 73 s 112 to 134 s (134), and 133 to 138 s (137) in a second batch 401 MiB

The same tests: 4,780 passed (10 skipped) and 26 OpenAPI tests, both ways. A panic still names its file and line; only a backtrace loses its file:line frames.

Two things to know: rust-cache hashes every CARGO* variable into its key (I read the pinned source), so the first run on main after this builds a new cache, and this pull request's own hermetic run is cold (a branch never saves) and will look slower than the numbers above. After the merge I will dispatch three runs on main and record them.

Measured and not adopted

  • cache-workspace-crates (an input of the pinned rust-cache v2.9.2): worse. The nextest step took a median of 165 s (71 to 193) against 72 s, the job 247 s against 137 s, and the cache was 770 MiB against 401 MiB.
  • line-tables-only: 79 s and 143 s in two green runs (the third was the fix(editor-doc): ydoc::decode panics inside yrs 0.28.0 on a one-byte mutation, and its property test fails CI at random #114 flake); too noisy to call.
  • Rejected on the numbers: nextest archive with partitions (the tests run 35 s), and selecting the affected crates (at most about 16 s a pull request, and it changes what a crate change is checked by, so it would be your call). Not tried: sccache.

Guards

A wiring check holds the env line (nothing breaks without it, so the saving would go unnoticed), and two hand mutants of test.yml (the value changed, the line removed) are killed: 244 of 244, none broken. Locally: both workflow lints, the planner tests, the deps guards. scripts/check-book.sh could not run on my machine (mdbook-mermaid is not installed here); this pull request's docs job is the check for running.md and status.md.

A finding made on the way: deep fails today (G-48)

No job runs the deep profile (PROPTEST_CASES=4096). On a runner, two runs: 251 tests, 313 s and 383 s, and it fails: four oracle_ tests need the TypeScript oracle's generated output; two thrust-core tests abort with proptest's "Too many rejects" (the reject limits are absolute, 1,024 and 65,536, and proptest_config only scales the cases); and prop_decode_never_panics_on_mutated_updates fails at random, which is the open issue #114. It also fails the normal hermetic job at random: 1 of my 22 probe runs. running.md now says so, with a runbook for a red hermetic.

Your answers, as recommended: fix the two tests first, then a nightly advisory deep job that excludes oracle_; and no new test categories (smoke, mutant). Neither follow-up is in this pull request; the first is next, in its own.

No closing keyword: this is a stage of a plan, not an issue.

🤖 Generated with Claude Code

aRustyDev and others added 2 commits November 18, 2026 23:27
…e 3)

The hermetic job (4,780 tests in 133 binaries, the contract counts guard, the doctests and the OpenAPI tests) is on no critical path: full runs end at the worker-cf e2e cell (558 and 736 s) and it takes 162 to 173 s, so this stage can save runner minutes and no pull request's wall clock. It runs on 43 of the last 60 merged pull requests.

The cheap lever is debug info. The dev profile keeps full debug info for 133 test binaries, and the mutants profile already drops it. CARGO_PROFILE_DEV_DEBUG=none, set at the job level so that every cargo step shares one profile (a different one rebuilds), was measured by dispatch on a throwaway branch, each variant with a cache of its own, three warm runs each, with main's unchanged job beside them: the nextest step 99 s to 72 s (72 to 73 s), the job 162 to 171 s to 134 s, the cache 605 to 651 MiB to 401 MiB, and the same 4,780 tests passing (10 skipped) and the same 26 OpenAPI tests. A panic still names its file and line; only a backtrace loses its file:line frames. rust-cache hashes every CARGO* variable into its key (read in the pinned source), so the first run on main builds a new cache, and a run on a branch before that is cold.

Measured and not adopted: line-tables-only (79 and 143 s in two green runs, too noisy to call) and rust-cache's cache-workspace-crates, which was worse (the nextest step a median of 165 s against 72 s, the cache 770 MiB against 401 MiB). Rejected on the numbers: nextest archive with partitions (the tests run 35 s), and selecting the affected crates (at most about 16 s a pull request, and it changes what a crate change is checked by). sccache was not tried.

A wiring check holds the line, since nothing breaks without it, and two hand mutants of test.yml (the value changed, the line removed) are killed. The phase document gets the stage section, with its measurements, survey and pass table; running.md gets the hermetic row and a runbook (a red job whose only failure is prop_decode_never_panics_on_mutated_updates is issue #114, which failed 1 of 22 probe runs); status.md gets G-48.

G-48 is a finding made on the way: the deep nextest profile (PROPTEST_CASES=4096) runs in no job, takes 313 to 383 s on a runner and fails today: four oracle_ tests need the TypeScript oracle's generated output, two thrust-core tests abort with proptest's "Too many rejects" (the reject limits are absolute and proptest_config only scales the cases), and the yrs panic of #114 fails at random. The owner decided to fix the two tests first and then add a nightly advisory deep job; neither is in this change.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@aRustyDev

Copy link
Copy Markdown
Owner Author

This pull request's own run (44458471456) is green through gate, and its hermetic job is the cold run I said it would be: 193 s, the nextest step 127 s (against 72 s warm), because CARGO_PROFILE_DEV_DEBUG: none changes rust-cache's key and a branch never saves, so there was no cache to restore. It is not the number to judge the change by; the three warm runs in the description are. After the merge I will dispatch three runs of ["hermetic"] on main once its first run has built the new cache, and record them.

@aRustyDev
aRustyDev merged commit 2b4d95d into main Nov 19, 2026
48 checks passed
@aRustyDev
aRustyDev deleted the ci/test-stage-crates branch November 19, 2026 05:11
aRustyDev added a commit that referenced this pull request Nov 19, 2026
… and the numbers after the merge (#335)

G-48 (the deep profile) is done as the owner decided on 2026-11-19: the two reject-heavy tests are fixed (#330) and the profile runs nightly as deep.yml (#331), not gated and without the oracle_ tests, red only for issue #114 in the two runs of the job itself. The phase document's stage table, findings and decisions say so, and running.md's runbook no longer says deep fails today.

The numbers after the merge of #329, from three dispatches of the hermetic job on main once it had built the new cache (402 MiB against 651 MiB): the two runs that restored the cache took 126 s and 130 s (the nextest step 74 s and 72 s), against 153 to 172 s and 95 to 98 s before, which is the probe's result within a few seconds. The third restored no cache and built from scratch (129 s for the step, 200 s for the job); the cause is not known.

Co-authored-by: Claude Sonnet 5.5 <[email protected]>

This branch was previously deployed

1 inactive deployment
preview-control-plane — 01eae976 Deployed Nov 19, 2026 by aRustyDev via reconcile #223
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