René's URL Explorer Experiment


Title: improvement(ci): measure where the layer-cache disk actually goes by waleedlatif1 · Pull Request #7521 · simstudioai/sim · GitHub

Open Graph Title: improvement(ci): measure where the layer-cache disk actually goes by waleedlatif1 · Pull Request #7521 · simstudioai/sim

X Title: improvement(ci): measure where the layer-cache disk actually goes by waleedlatif1 · Pull Request #7521 · simstudioai/sim

Description: The problem The layer-cache cap is enforced against buildctl du, and on the busiest disk that number no longer describes the disk. From a single real job (app image, amd64): before prune -> Total: 65.87GB after prune -> Total: 65.87GB (keep-storage 102400 MB) The prune is behaving correctly — 65.87 GB is already under the 100 GB cap, so there is nothing to trim. Meanwhile that sticky disk reports 224.9 GB. The control is the same Dockerfile on the other architecture: disk buildctl du actual disk gap app.Dockerfile/linux-amd64 65.87 GB ~241 GB 3.7× app.Dockerfile/linux-arm64 88.04 GB ~93 GB ~1× Same image, same 100 GB cap, both disks created 2026-08-29. The only difference is build frequency — amd64 builds on every push to main and staging, arm64 only on main. So the divergence tracks write churn, not image content. Why this is a diagnostic and not a fix Two causes fit the symptom, and they need opposite fixes: Thin-provisioned volume not releasing freed blocks. Sticky disks are Ceph block volumes cloned and committed per job, so a filesystem that deletes files without discard would grow monotonically. Fix would be fstrim. Real files du's total does not cover. The RUN --mount=type=cache dirs (apt ×2, bun, npm, next, turbo) are a different record class from the layer cache --keep-storage trims. Fix would be bounding or dropping specific mounts. One log line argues against (1) — Filesystem free space after mount: 527497363456 bytes (491.27 GiB) implies the filesystem really is holding those bytes — but that is a single indirect reading, not proof, and shipping fstrim or deleting a cache mount on it would be guessing. So this adds the three readings that separate the cases: df — the filesystem's own view, versus buildkit's. buildctl du --verbose summarised by record type — whether cache mounts are accounted for at all. a bounded du -x -d1 walk — where the bytes actually live, if they are not. One or two builds of output settles it, and the follow-up fix is then evidenced rather than assumed. Safety Composite steps run under bash -e -o pipefail, where a failing command inside an assignment or pipeline aborts the step and fails the build — the bug that broke a real app image build in #7252. Every command here is guarded, and the directory walk is bounded by timeout 120. Verified rather than assumed: the block was run under bash --noprofile --norc -e -o pipefail with every command failing (no buildkitd, no /var/lib/buildkit locally). It reaches the end and exits 0. Shellcheck clean. This step already could not fail a deploy by design — that property is preserved. Type of Change Improvement Testing Executed the block under the exact composite-step shell flags with all commands failing (exit 0, reached end marker). Shellcheck clean. No behaviour change to the prune itself — this is additive output after the existing before/after readings. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: The problem The layer-cache cap is enforced against buildctl du, and on the busiest disk that number no longer describes the disk. From a single real job (app image, amd64): before prune -> Tota...

X Description: The problem The layer-cache cap is enforced against buildctl du, and on the busiest disk that number no longer describes the disk. From a single real job (app image, amd64): before prune -> ...

Opengraph URL: https://github.com/simstudioai/sim/pull/7521

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:45906c36-1d9d-a0f3-638b-afcf77df6e33
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE166:3988A1:1A72051:240209A:6AFB9128
html-safe-nonce4790a2dba09daf95fc6b464fe78ac5f37a81c42928eb3d241f54cf139a0ccde0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTY2OjM5ODhBMToxQTcyMDUxOjI0MDIwOUE6NkFGQjkxMjgiLCJ2aXNpdG9yX2lkIjoiMTk1MjkwNjEwNDk3OTI5NjU1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5b0bea61930d26f530bc49eb3bc407d7d69a5b23e47e760fc4cd8d3da97642cd
hovercard-subject-tagpull_request:4451965771
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/7521/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altThe problem The layer-cache cap is enforced against buildctl du, and on the busiest disk that number no longer describes the disk. From a single real job (app image, amd64): before prune -> Tota...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4f01efe06174a5ba6342fd58e42d02295e0675bedbb465d6bef2dbaec8e46556
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasea52db8866b6543b4e83730cd6a6b1360f1a9e4dc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/7521/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F7521%2Ffiles
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%2Fsimstudioai%2Fsim%2Fpull%2F7521%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/7521/files
Reloadhttps://github.com/simstudioai/sim/pull/7521/files
Reloadhttps://github.com/simstudioai/sim/pull/7521/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests198 (198)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
ci/diagnose-layer-cache-disk-gaphttps://github.com/simstudioai/sim/tree/ci/diagnose-layer-cache-disk-gap
Conversation 4 https://github.com/simstudioai/sim/pull/7521
Commits 1 https://github.com/simstudioai/sim/pull/7521/commits
Checks 31 https://github.com/simstudioai/sim/pull/7521/checks
Files changed https://github.com/simstudioai/sim/pull/7521/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7521/files
improvement(ci): measure where the layer-cache disk actually goes https://github.com/simstudioai/sim/pull/7521/files#top
Show all changes 1 commit https://github.com/simstudioai/sim/pull/7521/files
6597f8e improvement(ci): measure where the layer-cache disk actually goes waleedlatif1 Sep 5, 2026 https://github.com/simstudioai/sim/pull/7521/commits/6597f8e0518d5baa638ab3f9d0e05d14433f6f61
Clear filters https://github.com/simstudioai/sim/pull/7521/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7521/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7521/files
.github/actions/docker-build/action.ymlhttps://github.com/simstudioai/sim/pull/7521/files#diff-f1d084efa26a0f0f45c8ba872e6dc750a73daca60a47dfa42121b28eda7e32b3
View file https://github.com/simstudioai/sim/blob/6597f8e0518d5baa638ab3f9d0e05d14433f6f61/.github/actions/docker-build/action.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7521/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7521/files#diff-f1d084efa26a0f0f45c8ba872e6dc750a73daca60a47dfa42121b28eda7e32b3
greptile-appshttps://github.com/apps/greptile-apps
Sep 5, 2026https://github.com/simstudioai/sim/pull/7521/files#r3941420169
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://github.com/simstudioai/sim/pull/7521/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7521/files
greptile-appshttps://github.com/apps/greptile-apps
Sep 5, 2026https://github.com/simstudioai/sim/pull/7521/files#r3941420165
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://github.com/simstudioai/sim/pull/7521/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7521/files
https://github.com/simstudioai/sim/pull/7521/files#diff-f1d084efa26a0f0f45c8ba872e6dc750a73daca60a47dfa42121b28eda7e32b3
Please reload this pagehttps://github.com/simstudioai/sim/pull/7521/files
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

Viewport: width=device-width


URLs of crawlers that visited me.