Repository navigation
ci(test): build the hermetic job without debug info (Test phase, stage 3) - #329
Merged
Merged
Conversation
…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
temporarily deployed
to
preview-control-plane
November 19, 2026 04:27 — with
GitHub Actions
Inactive
This was referenced Nov 19, 2026
Owner
Author
|
This pull request's own run (44458471456) is green through |
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
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.
What
Stage 3 of the Test phase (
.agents/plans/ci-workflows/phases/0003-test.md),crates: the nextest part ofhermetic. One change to the workflow, the stage's plan and measurements, and one gap recorded.hermeticis on no critical path, so this stage can save runner minutes and no pull request's wall clock. Full runs now end at theworker-cf e2ecell (558 s and 736 s in the two I read);hermeticis 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: noneat the job level ofhermetic(so every cargo step shares one profile; a different one rebuilds). Thedevprofile keeps full debug info for 133 test binaries, and themutantsprofile already has none. Measured by dispatch on a throwaway branch, each variant with a cache of its own, three warm runs each, withmain's unchanged job run beside them:mainas it isnoneThe 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 onmainafter this builds a new cache, and this pull request's ownhermeticrun is cold (a branch never saves) and will look slower than the numbers above. After the merge I will dispatch three runs onmainand 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.nextest archivewith 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
envline (nothing breaks without it, so the saving would go unnoticed), and two hand mutants oftest.yml(the value changed, the line removed) are killed: 244 of 244, none broken. Locally: both workflow lints, the planner tests, thedepsguards.scripts/check-book.shcould not run on my machine (mdbook-mermaidis not installed here); this pull request'sdocsjob is the check forrunning.mdandstatus.md.A finding made on the way:
deepfails today (G-48)No job runs the
deepprofile (PROPTEST_CASES=4096). On a runner, two runs: 251 tests, 313 s and 383 s, and it fails: fouroracle_tests need the TypeScript oracle's generated output; twothrust-coretests abort with proptest's "Too many rejects" (the reject limits are absolute, 1,024 and 65,536, andproptest_configonly scales the cases); andprop_decode_never_panics_on_mutated_updatesfails at random, which is the open issue #114. It also fails the normalhermeticjob at random: 1 of my 22 probe runs.running.mdnow says so, with a runbook for a redhermetic.Your answers, as recommended: fix the two tests first, then a nightly advisory
deepjob that excludesoracle_; 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