Repository navigation
ci: build zccache with setup-soldr - #408
Merged
Merged
Conversation
10 tasks done
zackees
added a commit
that referenced
this pull request
Jun 20, 2026
…813) (#831) Adds Dockerfile.jobserver-test mirroring the existing Dockerfile.cc-test pattern, validating issue #813's compile-concurrency cap end-to-end inside a Docker container. Test flow: - Stage `builder` — compile zccache + zccache-daemon (release). - Stage `tester` — Rust toolchain image; runs: 1. Generate 60 trivial Rust source files 2. Start zccache-daemon --foreground with ZCCACHE_MAX_PARALLEL_COMPILES=1 in env 3. Launch a 50ms-cadence sampler that polls `pgrep -f rustc` 4. Fire 60 concurrent `zccache rustc` invocations 5. Stop daemon + sampler 6. Parse the CSV samples; assert peak rustc count <= 1 This validates the same property the in-process test #826 validates (no overlapping compile intervals when cap=1) but at the REAL end-to-end level — actual daemon, real cargo-style rustc spawns, observable via system process counting. ## Why process counting rather than log parsing The original design was to grep daemon-lifecycle.log for the `compile_start`/`compile_end` events #816 added. Empirically: - daemon-lifecycle.log contains only structured JSON spawn/ shutdown events (it's an EventLogger sink, not the tracing-subscriber output). - tracing::info! output from #816's compile_exec instrumentation goes to a separate file the daemon stdout/stderr redirect doesn't capture (likely a non-blocking tracing-appender file layer somewhere; ran out of time pinning down the exact path). Sampling `pgrep` is more robust: - Works regardless of where tracing logs land. - Observes the same property (cap enforced) end-to-end. - Doesn't depend on the log format staying stable across refactors of the instrumentation code. A follow-up could pin down the tracing-subscriber file location and parse those events for richer assertion (per-compile durations, exit codes) — filing that as a small task on the meta. ## Verification status - Builds zccache successfully (cached layer from build #1). - Tester stage runs and daemon binds socket (verified across builds #2-7). - Final local validation hit a Docker Desktop daemon hang on this Win10 box (the documented "wsl --shutdown required" failure mode per #408's cancellation-recovery checklist). CI will validate on fresh runners. Refs #813 Refs #817 Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
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.
Summary
prebuild-deps: soldr-cookfor build-heavy jobs and the shared native build composite actionZCCACHE_CACHE_DIRroots andSOLDR_CACHE_LIFECYCLE=commandValidation
actionlintgit diff --check.githubfor stalezackees/setup-soldr@v0andversion: 0.7.18Swatinem/rust-cacheuse is limited to the documentedperf-rust-cluster.ymlexceptionCloses #406.
Part of #405.