xtask: the cache warm no longer builds integration test executables

Since #10163, `cargo xtask ci warm` built each test shard with
`--lib --bins --tests --no-run`, so the dependency-cache entry also held
the integration test executables. The gate-crates entry grew from about
4.7 GB to 10.3 to 10.5 GB, above the repository's 10 GB cache budget,
and the slowest test shard on main took 30 to 31 minutes afterwards
against 26 to 28 minutes before.

The warm build now builds the library and binary tests of each shard's
crates (`--lib --bins --no-run`) and skips a run of integration tests
alone, whose crate has its library tests built on another shard. The
integration tests take the same dependencies and dev-dependencies, so
the entry still holds every dependency the shards build. Cargo again
warns `unused dependency vectorcraft-testkit` for vectorcraft-cli in the
warm log; only that crate's integration tests use it.
This commit is contained in:
dotCooCoo committed 2026-12-04 18:47:47 -08:00
1 parent 88851063c0
commit 5bfe35996b
2 files changed
+32 -19

No files matched your search

+2 -1
View File
@@ -67,7 +67,8 @@ jobs:
# The warm build runs as one `cache warm <k>/6` leg per shard, in parallel (each builds what
# its shard builds), and `cache warm` puts their files into the one entry it saves.
warm-split: true
# The dependency cache also keeps the compiled workspace crates and test executables, so a
# The dependency cache also keeps the compiled workspace crates and their library and binary
# test executables (not the integration tests' executables), so a
# pull request's shards rebuild only the crates its changes reach. Each main run's `cache
# warm` leg saves a rolling entry of its own, every leg restores the newest one, and
# cache-prune.yml deletes the one it replaced after each attempt. The nightly run restores