René's URL Explorer Experiment


Title: fleet: cargo target duplication across worktrees — shared compile cache, seeding, and a storage cap · Issue #3448 · developing-today/code · GitHub

Open Graph Title: fleet: cargo target duplication across worktrees — shared compile cache, seeding, and a storage cap · Issue #3448 · developing-today/code

X Title: fleet: cargo target duplication across worktrees — shared compile cache, seeding, and a storage cap · Issue #3448 · developing-today/code

Description: Problem Every fleet worktree compiles the same dependency graph into its own cargo target dir, and the storage + CPU cost keeps biting: 2026-10-26 cleanup: 84 cargo target dirs totalling 1,182.8 GiB deleted from this laptop. 2026-11-01 ~...

Open Graph Description: Problem Every fleet worktree compiles the same dependency graph into its own cargo target dir, and the storage + CPU cost keeps biting: 2026-10-26 cleanup: 84 cargo target dirs totalling 1,182.8 Gi...

X Description: Problem Every fleet worktree compiles the same dependency graph into its own cargo target dir, and the storage + CPU cost keeps biting: 2026-10-26 cleanup: 84 cargo target dirs totalling 1,182.8 Gi...

Opengraph URL: https://github.com/developing-today/code/issues/3448

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fleet: cargo target duplication across worktrees — shared compile cache, seeding, and a storage cap","articleBody":"## Problem\n\nEvery fleet worktree compiles the same dependency graph into its own cargo `target` dir, and the storage + CPU cost keeps biting:\n\n- 2026-10-26 cleanup: 84 cargo target dirs totalling **1,182.8 GiB** deleted from this laptop.\n- 2026-11-01 ~01:26 CST: /home hit **100% full** (0 bytes free) — the immediate cause of a failed NixOS switch (SQLite fetcher-cache I/O error). Drew ordered a target/cache cleanup; disk recovered to ~55%.\n- 2026-11-01 ~03:23 CST, roughly two hours after that cleanup deleted every target dir: **12 fleet worktree `pkgs/id/target` dirs already exist again, 198G total** across fleet + primary + worktrees — each one a from-scratch copy of the same ~760-package graph (debug and release profiles multiply it further).\n- Same night: 12 concurrent lane cargo builds drove load to **118 on 16 cores**, and the nix side built the `id` package twice concurrently from divergent checkout sources (different drv/output hashes for identical intent) — one was a stale Oct-30 toplevel build still holding daemon slots; both had to be found and killed by hand during a production switch.\n- Nothing is configured today: no sccache (not installed), no `CARGO_TARGET_DIR`, no shared cargo config on the laptop.\n\n## What to evaluate (measure, then adopt what the data supports)\n\n1. **sccache** (or equivalent content-addressed compile cache) shared across all worktrees — kills the repeated dependency compilation without target-dir locking between concurrent lanes.\n2. **Shared `CARGO_TARGET_DIR`** per repo across worktrees — proven manually on 2026-10-26 (a worktree pointed at the primary's target reuses the warm cache); the trade-off is cargo's target-dir lock serializing concurrent lane builds. May suit a hybrid: shared for deps-heavy phases, per-lane for final artifacts, if the tooling allows.\n3. **Cache seeding** for fresh worktrees (reflink/copy-on-write copy of a warm target where the filesystem supports it) so a new lane never starts cold.\n4. **Profile discipline** for lanes: build only the profile the task needs (check vs test vs release), instead of several profiles per worktree by default.\n5. **Nix side:** a shared binary cache for the fleet's own builds (the `id` package and the system toplevel) so identical checkouts substitute instead of rebuilding; plus keeping fleet checkouts converged on the same main so drv hashes dedupe in the store.\n6. **A storage cap with a janitor**: a bounded, automatic pruning rule for target dirs (age/size based, never touching a target with a build in flight) so /home can never silently refill to 100% again — tonight's disk-full broke a production switch.\n\n## Acceptance\n\n- Measured before/after on the laptop: total target-dir storage across the fleet after a representative day of lane work, and cold-start build time for a fresh worktree.\n- The adopted setup is the default for new fleet worktrees (encoded wherever lanes are provisioned), not a per-lane manual trick.\n- No lane workflow regression: concurrent lanes can still build without corrupting each other's artifacts.\n\nRelated: #3195 (pkgs/id build-time review — its build-hygiene line names sccache / shared target), and the pkgs/id crate-split issue filed alongside this one (splitting reduces per-build work; this issue removes the duplicated work).\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-01T09:25:09Z","url":"https://github.com/developing-today/code/issues/3448"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:35917ff8-90cc-cbf8-634d-76af3d8a5112
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD614:D0B9B:804AD0:AC3610:6B063447
html-safe-nonce897dfe16f65baf71bd73ce00baf2caa6cd9073edc1d1a5c3c12b7562003ba048
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjE0OkQwQjlCOjgwNEFEMDpBQzM2MTA6NkIwNjM0NDciLCJ2aXNpdG9yX2lkIjoiMzE3NzYyMDE2NTQ4Nzg5OTcxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2054948f21efa3e2d339be275d1829ff9d6cd259fe836e36feac189d5c79b8ee
hovercard-subject-tagissue:6145341964
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/3448/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e0f6523b15934b73bec0bfc8865d7c366a1fcef42e2db7962c163817c84dd40f/developing-today/code/issues/3448
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e0f6523b15934b73bec0bfc8865d7c366a1fcef42e2db7962c163817c84dd40f/developing-today/code/issues/3448
og:image:altProblem Every fleet worktree compiles the same dependency graph into its own cargo target dir, and the storage + CPU cost keeps biting: 2026-10-26 cleanup: 84 cargo target dirs totalling 1,182.8 Gi...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
Nonec3584c853cd39700ecff6e2cf8364295ffdb5313e571046c41cd2479270f7df0
turbo-cache-controlno-preview
go-importgithub.com/developing-today/code git https://github.com/developing-today/code.git
octolytics-dimension-user_id26439447
octolytics-dimension-user_logindeveloping-today
octolytics-dimension-repository_id627308783
octolytics-dimension-repository_nwodeveloping-today/code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627308783
octolytics-dimension-repository_network_root_nwodeveloping-today/code
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9eb3bb1597d09170a5f282cd38ae376dee1a5ec1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/3448#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F3448
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F3448
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=developing-today%2Fcode
Reloadhttps://github.com/developing-today/code/issues/3448
Reloadhttps://github.com/developing-today/code/issues/3448
Reloadhttps://github.com/developing-today/code/issues/3448
developing-todayhttps://github.com/developing-today
codehttps://github.com/developing-today/code
Codehttps://github.com/developing-today/code
Issues1.1k (1.1k)https://github.com/developing-today/code/issues
Pull requests151 (151)https://github.com/developing-today/code/pulls
Discussionshttps://github.com/developing-today/code/discussions
Actionshttps://github.com/developing-today/code/actions
Projectshttps://github.com/developing-today/code/projects
Wikihttps://github.com/developing-today/code/wiki
Security and qualityhttps://github.com/developing-today/code/security
Insightshttps://github.com/developing-today/code/insights
https://github.com/developing-today/code
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/3448
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/3448
fleet: cargo target duplication across worktrees — shared compile cache, seeding, and a storage caphttps://github.com/developing-today/code/issues/3448#top
https://github.com/dezren39
priority/highhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fhigh%22
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/3448#issue-6145341964
#3195https://github.com/developing-today/code/issues/3195
Nexthttps://github.com/developing-today/code/issues/3448?timeline_page=1
dezren39https://github.com/dezren39
priority/highhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fhigh%22
on Nov 1, 2026https://github.com/developing-today/code/issues/3448#event-34823659686
https://github.com/apps/developing-today
developing-todayhttps://github.com/apps/developing-today
on Nov 1, 2026https://github.com/developing-today/code/issues/3448#issuecomment-6556083233
developing.todayhttps://kaneo.security.cab
CODE-1316https://kaneo.security.cab/dashboard/workspace/6oQgIkST0YGrCcxrnhbHPOUCfgdD3cqE/project/pfcq432h349r20up18gttfv4/task/ym2eespzv2kh0duqbjcxxei3
dezren39https://github.com/dezren39
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
on Nov 1, 2026https://github.com/developing-today/code/issues/3448#event-34823708158
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/3448#issuecomment-6556096045
dezren39https://github.com/dezren39
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
on Nov 1, 2026https://github.com/developing-today/code/issues/3448#event-34823862138
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/3448#issuecomment-6556135859
fleet: cargo target duplication across worktrees — shared compile cache, seeding, and a storage cap #3448https://github.com/developing-today/code/issues/3448
fleet: cargo target duplication across worktrees — shared compile cache, seeding, and a storage cap #3448https://github.com/developing-today/code/issues/3448
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/3448#issuecomment-6556155542
fleet: cargo target duplication across worktrees — shared compile cache, seeding, and a storage cap #3448https://github.com/developing-today/code/issues/3448
pkgs/id: split the monolith crate into sub-crates along module seams (prioritized by Drew 2026-11-01) #3447https://github.com/developing-today/code/issues/3447
dezren39https://github.com/dezren39
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
queue/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fparked%22
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
on Nov 1, 2026https://github.com/developing-today/code/issues/3448#event-34823941733
dezren39https://github.com/dezren39
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
on Nov 2, 2026https://github.com/developing-today/code/issues/3448#event-34943624742
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 2, 2026https://github.com/developing-today/code/issues/3448#issuecomment-6585379986
dezren39https://github.com/dezren39
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
status/needs-triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fneeds-triage%22
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
on Nov 2, 2026https://github.com/developing-today/code/issues/3448#event-34958340480
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 2, 2026https://github.com/developing-today/code/issues/3448#issuecomment-6589192649
#3448https://github.com/developing-today/code/issues/3448
#4175https://github.com/developing-today/code/pull/4175
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 2, 2026https://github.com/developing-today/code/issues/3448#issuecomment-6589408238
fleet: cargo target duplication across worktrees — shared compile cache, seeding, and a storage cap #3448https://github.com/developing-today/code/issues/3448
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 2, 2026https://github.com/developing-today/code/issues/3448#issuecomment-6589463086
#4175https://github.com/developing-today/code/pull/4175
#4175https://github.com/developing-today/code/pull/4175
#3448 (comment)https://github.com/developing-today/code/issues/3448#issuecomment-6589408238
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Nov 2, 2026https://github.com/developing-today/code/issues/3448#event-34959448517
dezren39https://github.com/dezren39
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
on Nov 2, 2026https://github.com/developing-today/code/issues/3448#event-34959449083
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/3448
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/3448
dezren39https://github.com/dezren39
priority/highhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fhigh%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.