Repository navigation
ci: cook Fast Gate's dev-plus-tests profile on every event (#2661) - #3128
Conversation
…2661) Fast Gate's consumer is `cargo test`, so the cook must populate the `test` profile. Its cook flags were `core == 'true' && '--release' || '--profile dev -- --tests'`, which made every push and merge-group run cook release dependencies the test build never reuses. Measured on 10 Fast Gate jobs on 2026-10-31: 4 of 4 jobs with the release cook then rebuilt the `test` profile (1m09s-1m37s, 256-442 Compiling lines); 6 of 6 jobs with the dev-plus-tests cook finished that build warm with no profile line (192 lines). The cook step itself cost the same either way (11.3-15.6s). A local probe with soldr 0.9.47 reproduces it: `cook --release` then `cargo test --no-run` recompiles five crates; `cook --profile dev -- --tests` then `cargo test --no-run` finishes in 0.03s. This fails against the current workflow; the next commit drops the core branch.
The whole workspace test build in Fast Gate runs in the `test` profile, so a `--release` cook on core runs was never reused: those jobs cooked release dependencies and then rebuilt the test profile from scratch. Drop the `core` branch from the cook flags and update docs/ci-tooling.md with the measurement that replaced #1317's cook-step-only benchmark. Evidence (10 Fast Gate jobs, 2026-10-31): - 4/4 release-cook jobs: `Finished \`test\` profile` at 1m09s-1m37s, 256-442 Compiling lines. - 6/6 `--profile dev -- --tests` jobs: no test-profile build at all, 192 Compiling lines. - Cook step: 11.3-15.6s in both groups, so the profile choice costs nothing at cook time. Local probe (soldr 0.9.47, regex dep chain): `cook --release` then `cargo test --no-run` recompiles 5 crates in 42s; `cook --profile dev -- --tests` then `cargo test --no-run` finishes in 0.03s. Refs #2661
zackees
left a comment
There was a problem hiding this comment.
Coordinator review: correct and well measured. Fast Gate runs cargo test, so a release cook never helps it, and 10 jobs show the rebuild cost. The RED is the stricter cook-profile test. The docs replace #1317's policy with the measurement. One expected effect: the changed flags give the cook cache a new key, so the first core runs after this lands will be cold until master seeds it.
|
Handed off to the coordinator. PR CI is green (CI Gate ✅, Fast Gate ✅, Format ✅, Validate Data ✅, Build/Event Data ✅, CI Mode ✅) and #3128 is in the merge queue at position 1 (
|
|
Merged as
The archive still MISSed on that run (cook saves are disabled for merge groups), so this only removes the rebuild that followed a cook; the cross-run reuse/eviction half stays open in #2661. |
Refs #2661
Fast Gate's Rust consumer is
cargo test --workspace, which compiles thetestprofile. Its cook flags werecore == 'true' && '--release' || '--profile dev -- --tests', so every push and merge-group (core) run cookedrelease dependencies that the test build never reuses, and then rebuilt the
test profile from scratch anyway.
RED (
09e05fe96):ci/test_cook_profiles.pynow requires--profile dev -- --testsforrust-tests-linuxand addstest_fast_gate_cooks_the_profile_its_tests_compile_in, which also rejects acore-conditional or--releasevalue. Against master it fails 2 of 6 tests:'prebuild-deps-flags: --profile dev -- --tests' not found in ...and thecore == 'true' && '--release'comparison.GREEN (
aa3bd2cf3): drop thecorebranch from the cook flags, andreplace #1317's cook-step-only policy paragraph in
docs/ci-tooling.mdwiththe measurement below.
Evidence: 10 Fast Gate jobs, 2026-10-31
Per job:
prebuild-deps-flags, thecook-cache-baseresult, whether thefollowing workspace test build printed
Finished 'test' profile, and theCompilingline count in the job log.--releaseFinished 'test'1m09s--releaseFinished 'test'1m37s--releaseFinished 'test'1m34s--releaseFinished 'test'1m24s--profile dev -- --tests--profile dev -- --tests--profile dev -- --tests--profile dev -- --tests--profile dev -- --tests--profile dev -- --teststestprofile: 256-442Compilinglines.Compilinglines.costs nothing at cook time; the release branch was pure waste on core runs.
Local probe (soldr 0.9.47)
Scratch crate depending on
regex:soldr cook --releasethensoldr cargo test --no-runsoldr cook --profile dev -- --teststhensoldr cargo test --no-runFinished 'test' profile in 0.03sThat is the same mechanism #2661's earlier comment measured on 0.9.45: the
testprofile is not thereleaseprofile, so a release cook cannot feed it.Not claimed
(
cook-cache-base MISS (no match)), so the cook layer's cross-run reuse isa separate problem in ci: Cook cache layers rarely help: macOS/Windows layers missing, evicted at the 10 GB limit, test builds recompile dependencies #2661 (eviction at the 10 GB limit); this PR only makes
the cook profile match the consumer once an archive is restored.
Tiers: Tier 1 is the
ci/self-test. Tiers 2-4 do not apply (workflow and CIpolicy only). No
docs/features.mdline: no user-visible behaviour.