Repository navigation
Conversation
The golden step ran `cargo test -p eggshell-ui --features snapshots`, which resolves shared dependencies' features differently from the `--workspace` build before it. Cargo rebuilt 65 crates (libc up through wgpu, winit, egui) every run, about 3m50s of compiling for about 22s of tests, on a warm cache and a cold one alike (reproduced locally in a fresh target dir). `ci` now runs `cargo test --workspace --all-targets --features eggshell-ui/snapshots` once, on lavapipe, with the same stray-image guard around it (`snapshots::guarded`, shared with `cargo xtask snapshots`), and the separate snapshots step is gone. Every check still runs: the golden tests, the stray `.new.png`/`.diff.png` failure, clippy, tests, doctests, rustdoc, wasm. The restored cache was a full key match, so rust-cache never saved the new build; the workflow gives it a key to start a fresh one. Behavior changes: the golden tests run in the same process as the rest of the `it` binary, not alone; `cargo xtask ci` no longer has a "snapshots" step name. `cargo xtask snapshots` is unchanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AJYxo4YJZUXcPJ1bHdAHKy
Clippy ran without `eggshell-ui/snapshots`, so the golden tests' code (tests/it/snapshots.rs) was never linted, and its dependency check artifacts did not match the test build's feature resolution. It now takes the same features as the test step. The cache key moves with it, since the saved cache holds no check artifacts for the wgpu tree. Behavior change: clippy now also lints the snapshots-gated test code (`cargo xtask ci` is clean with it). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AJYxo4YJZUXcPJ1bHdAHKy
This was referenced Nov 14, 2026
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.
Part of #32.
Where the time went (main run 43254976759, 8m42s)
libcup (3m49s), then ~22 s of tests-p eggshell-ui --features snapshotsresolves shared dependencies' features differently from--workspace, so nothing built by the test step is reused. A fresh local target dir reproduces it: after the workspace build, the golden build compiles the same 65 crates. Cold-cache runs (13–15 min) pay it twice.Change
cargo xtask cirunscargo test --workspace --all-targets --features eggshell-ui/snapshotsonce, on lavapipe, with the same stray.new.png/.diff.pngguard (snapshots::guarded, shared withcargo xtask snapshots). The separate snapshots step is gone.key: the restored cache was a full match, so it was never saved again and would not hold the new build.Every check kept
Golden tests, stray-image failure, clippy, tests, doctests, rustdoc, wasm: all still run. Locally
cargo xtask cipasses,itruns 898 tests (789 + the goldens).Behavior changes
itbinary instead of running alone.cargo xtask cihas no step named "snapshots";cargo xtask snapshotsis unchanged.snapshots-gated test code is linted (clean); its cache key moved with it.Timings (
cijob)Warm steps: clippy 10 s, test (build 2m40s, then the tests and goldens) about 4m, doctest 3 s, rustdoc 2 s, wasm 4 s; the snapshots step and its 65-crate rebuild are gone. The cold run is the one-time cost of the new cache key; after merge, main's first run pays it once.
🤖 Generated with Claude Code
https://claude.ai/code/session_01AJYxo4YJZUXcPJ1bHdAHKy