René's URL Explorer Experiment


Title: fix(ci): actually prune the BuildKit layer cache by waleedlatif1 · Pull Request #7249 · simstudioai/sim · GitHub

Open Graph Title: fix(ci): actually prune the BuildKit layer cache by waleedlatif1 · Pull Request #7249 · simstudioai/sim

X Title: fix(ci): actually prune the BuildKit layer cache by waleedlatif1 · Pull Request #7249 · simstudioai/sim

Description: Summary The max-cache-size-mb input I added in 8fa7f0cc4e never did anything. Every Docker build since has logged: ##[warning]Unexpected input(s) 'max-cache-size-mb', valid inputs are ['cache-key', 'buildx-version', 'platforms', 'nofallback', 'github-token', 'buildkit-version', 'skip-integrity-check', 'driver-opts', 'max-parallelism'] setup-docker-builder v1 accepted that input and pruned in its own post step. The v2 rewrite dropped it, and we pin v2.1.0. GitHub only warns on an unknown composite input, so it failed silently — the app disk sat above 200 GB for a full day while the config looked correct. Scanned every tag rather than infer: Tag has max-cache-size-mb v2.1.0 (pinned), v2.0.1, v2.0.0 no v1.12.0, v1.11.0, v1.10.0, v1.9.0, v1.8.0 yes The fix Rather than downgrade a builder rewrite to reach a config knob, run the prune ourselves — v1's command verbatim (from its dist/index.js pruneBuildkitCache), against the fixed address v2 itself uses for buildctl du and debug workers: sudo buildctl --addr tcp://127.0.0.1:1234 prune --all --keep-storage Both flags verified against BuildKit master, not assumed buildctl's --all is not docker buildx prune --all. It means "Include internal/frontend references". cache/manager.go shows the only records skipped without it: if !opt.all { if recordType == UsageRecordTypeInternal || recordType == UsageRecordTypeFrontend || shared { continue } } It does not wipe the cache. (I initially justified --all as being required to reclaim RUN --mount=type=cache dirs — that was wrong. Those are typed exec.cachemount and are reclaimed either way. --all is kept because it's what v1 used and it prunes strictly more.) --keep-storage is not deprecated. In cmd/buildctl/prune.go it maps straight onto the modern MaxUsedSpace field — it is buildctl's spelling of --max-used-space, and the only size flag buildctl exposes. Why a foreground command Turborepo's equivalent eviction runs on a detached thread that is never joined, and on a 206 GB cache it makes no measurable progress inside a 150s job (measured: the disk moved 206.2 → 206.7 GB across 17h of builds). A blocking buildctl prune either completes or reports why not. Warns rather than fails — an oversized cache isn't worth failing a deploy over — but prints buildctl du either side, because a silent no-op is precisely the failure mode that hid this for a day. Verification Extracted v1's and v2's bundled dist/index.js; confirmed v1's exact command and that v2 hardcodes tcp://127.0.0.1:1234 and already shells out to buildctl, so binary and address are both present at that point in the job. Flag semantics read from BuildKit master source (cmd/buildctl/prune.go, client/prune.go, cache/manager.go, client/diskusage.go). actionlint output identical to the staging baseline; shellcheck clean on the new run block. bun run lint and all 39 check:audits pass. Effect is not yet measurable — it applies from the first build after merge. I'll report the real du deltas from build logs rather than assume. Type of Change Bug fix Testing As above. The real verification is the before prune -> / after prune -> lines this adds to every Docker build log. 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: Summary The max-cache-size-mb input I added in 8fa7f0cc4e never did anything. Every Docker build since has logged: ##[warning]Unexpected input(s) 'max-cache-size-mb', valid inputs are ['...

X Description: Summary The max-cache-size-mb input I added in 8fa7f0cc4e never did anything. Every Docker build since has logged: ##[warning]Unexpected input(s) 'max-cache-size-mb', valid inputs a...

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

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:dde749d1-dcb8-0d2d-0d36-edbd5dfa9247
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id91C4:3C556:157C885:1D595FE:6AFB7897
html-safe-noncefa529bf105a806663148d1983614ea251421b4f8a82198d7d62cf419e62f03c1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUM0OjNDNTU2OjE1N0M4ODU6MUQ1OTVGRTo2QUZCNzg5NyIsInZpc2l0b3JfaWQiOiIxMTMzMTQ2MDcyNTE2NjIyNDg3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac7b2f9c972df880cae848732f8adf43c52894694b4f774e8713c85b2017d2c3ef
hovercard-subject-tagpull_request:4389418635
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/7249/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:altSummary The max-cache-size-mb input I added in 8fa7f0cc4e never did anything. Every Docker build since has logged: ##[warning]Unexpected input(s) 'max-cache-size-mb', valid inputs are ['...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None0e29e7974fdda2feeaf5c891efd4b23b0734b23480232b62c7bdef13f40b5b48
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
release2e8872b770cc4d5d0cc1f2026afab747a268e2ce
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/7249/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F7249%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%2F7249%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/7249/files
Reloadhttps://github.com/simstudioai/sim/pull/7249/files
Reloadhttps://github.com/simstudioai/sim/pull/7249/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests201 (201)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/prune-buildkit-layer-cache-explicitlyhttps://github.com/simstudioai/sim/tree/ci/prune-buildkit-layer-cache-explicitly
Conversation 2 https://github.com/simstudioai/sim/pull/7249
Commits 1 https://github.com/simstudioai/sim/pull/7249/commits
Checks 26 https://github.com/simstudioai/sim/pull/7249/checks
Files changed https://github.com/simstudioai/sim/pull/7249/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7249/files
fix(ci): actually prune the BuildKit layer cache https://github.com/simstudioai/sim/pull/7249/files#top
Show all changes 1 commit https://github.com/simstudioai/sim/pull/7249/files
753e3b0 fix(ci): actually prune the BuildKit layer cache waleedlatif1 Aug 29, 2026 https://github.com/simstudioai/sim/pull/7249/commits/753e3b01aeb043ff8f923adc6817a75a87ed589c
Clear filters https://github.com/simstudioai/sim/pull/7249/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7249/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7249/files
.github/actions/docker-build/action.ymlhttps://github.com/simstudioai/sim/pull/7249/files#diff-f1d084efa26a0f0f45c8ba872e6dc750a73daca60a47dfa42121b28eda7e32b3
View file https://github.com/simstudioai/sim/blob/753e3b01aeb043ff8f923adc6817a75a87ed589c/.github/actions/docker-build/action.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7249/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7249/files#diff-f1d084efa26a0f0f45c8ba872e6dc750a73daca60a47dfa42121b28eda7e32b3
https://github.com/simstudioai/sim/pull/7249/files#diff-f1d084efa26a0f0f45c8ba872e6dc750a73daca60a47dfa42121b28eda7e32b3
https://github.com/simstudioai/sim/pull/7249/files#diff-f1d084efa26a0f0f45c8ba872e6dc750a73daca60a47dfa42121b28eda7e32b3
https://github.com/simstudioai/sim/pull/7249/files#diff-f1d084efa26a0f0f45c8ba872e6dc750a73daca60a47dfa42121b28eda7e32b3
Please reload this pagehttps://github.com/simstudioai/sim/pull/7249/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.