feat: share sccache across isolated Rust tasks#2105
Open
konard wants to merge 5 commits into
Open
Conversation
Adding .gitkeep for PR creation (default mode). This file will be removed when the task is complete. Issue: #2100
konard
marked this pull request as ready for review
July 25, 2026 18:42
Contributor
Author
Working session summaryImplemented issue #2100 and marked the PR ready for review: PR #2105 — Share sccache across isolated Rust tasks Highlights:
Final CI passed completely, including full test suites and Docker builds. Branch is synchronized with This summary was automatically extracted from the AI working session output. |
Contributor
Author
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
📊 Context and tokens usage:
Total: (396.6K + 28.6M cached) input tokens, 43.0K output tokens, $34.457518 cost 🤖 Models used:
📎 Log file uploaded as Gist (5769KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
Contributor
Author
✅ Ready to mergeThis pull request is now ready to be merged:
Monitored by hive-mind with --auto-restart-until-mergeable flag |
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
target/isolated and disposableHIVE_MIND_SCCACHE=0opt-out plus configurable cache directory/size andsccache --show-statsobservabilityReproduction
Before this change, two isolated tasks building the same Rust dependency graph each kept their own multi-GiB
target/and had no sharedRUSTC_WRAPPER/sccache backend. Deleting one task'starget/also discarded every reusable compiler artifact available to that task.The committed experiment models two independent container filesystems by rebuilding the same locked crate at the stable in-container path, stopping the first sccache server, deleting the entire first checkout (including
target/), and starting a second server against the shared cache:Observed second-build result:
Tests
npm test— all 350 default test files passednpm run lintnpm run format:checknode tests/test-issue-1860-docker-isolation.mjs— 39 passednode tests/test-issue-2100-shared-sccache.mjsexperiments/verify-shared-sccache.sh— second build reported 2 Rust cache hits, 0 missesdocker build --check -f Dockerfile .docker build --check -f Dockerfile.dind .docker build --check -f coolify/Dockerfile .npm pack --dry-run --json— wrapper included with executable modeFixes #2100