René's URL Explorer Experiment


Title: fix(ci): scope the Next.js build cache sticky disk per branch by waleedlatif1 · Pull Request #6072 · simstudioai/sim · GitHub

Open Graph Title: fix(ci): scope the Next.js build cache sticky disk per branch by waleedlatif1 · Pull Request #6072 · simstudioai/sim

X Title: fix(ci): scope the Next.js build cache sticky disk per branch by waleedlatif1 · Pull Request #6072 · simstudioai/sim

Description: Summary The Turbopack persistent build cache sticky disk was keyed on github.event_name alone, so every open PR shared one mutable volume. Per Blacksmith's docs a sticky disk mount clones the last committed snapshot and the job commits back last-write-wins — so each PR build restored a Turbopack cache produced by a different branch. Keys it per branch, reports whether the cache was actually warm, and deletes a branch's disk when its PR closes. Evidence Same staging commit, two runs minutes apart, identical runner — the only variable is which disk was mounted: run event disk compile 30500234987 push …-nextjs-cache-push 9.3 min 30500235932 pull_request …-nextjs-cache-pull_request 14.0 min Across 22 recent runs the split is clean: push builds 3.5–11 min, PR builds 13.5–17.8 min. Why this is the correctness fix, not just a perf tweak turbopackFileSystemCacheForBuild is beta, and restoring a cache built at a different commit is not a documented-supported mode. In vercel/next.js#87283 a user reports stale HTML in production from exactly that — the same commit producing different output depending on which cache was restored — and asks maintainers whether cross-build restore is supported at all. Unanswered. Others report build errors and 404s after branch switches. Sharing one mutable Turbopack build cache across ~10 concurrent PR branches with last-write-wins is precisely that configuration, which means Build App may not faithfully reflect the branch under test. Per-branch keying is also the documented pattern, not a workaround. Next.js's own CI-caching guide uses key: \${CI_COMMIT_REF_SLUG} (per-branch) in its GitLab example, and its GitHub Actions example only looks shared — GHA cache is branch-scoped by design ("cannot restore caches created for child branches or sibling branches"; PR caches are scoped to the merge ref). Blacksmith's own cache product branch-scopes by default too. This key was the only layer in the stack with no branch isolation. What this does NOT fix This will not get Build App back to 3 minutes. On the single-writer push disk — genuinely warm — compile has itself roughly doubled today: date compile (staging push) Jul 27–28 3.5–6.2 min Jul 29 morning 4.9–6.9 min Jul 29 ~14:50 PT onward 9.3–11.1 min The inflection sits between the 11:54 PT and 14:50 PT builds. That regression is real and separate; it needs a bisect and is not addressed here. Trade-offs Sticky disks have no restore-keys fallback, so the first build on a new branch is fully cold. Given cross-commit restore is dubious anyway, cold-first is the safe behavior — and the new reporting gives us the actual cold number instead of a guess. One-time cost: every currently-open PR gets one cold build on its next push. Storage: per-branch disks at ~5 GB each are bounded by ci-cache-cleanup.yml on PR close. continue-on-error: true because PRs that skipped Build App via paths-ignore have no disk to delete. Fork PRs are keyed by the fork's branch name, so two forks with the same branch name still share. Strictly better than today (all forks shared one disk), not perfect isolation. Type of Change Bug fix Improvement Testing actionlint clean on both workflows (only the pre-existing unknown-blacksmith-*-label false positive). stickydisk-delete pinned to the real v1 commit SHA with its delete-key input verified against the action's action.yml. This PR's own Build App run is the first check: it should report PRE_BUILD_CACHE=cold (new branch, new key), and a second push to this branch should report PRE_BUILD_CACHE=warm with a faster compile. That is the direct verification of the whole premise — worth confirming before merge.

Open Graph Description: Summary The Turbopack persistent build cache sticky disk was keyed on github.event_name alone, so every open PR shared one mutable volume. Per Blacksmith's docs a sticky disk mount clones the l...

X Description: Summary The Turbopack persistent build cache sticky disk was keyed on github.event_name alone, so every open PR shared one mutable volume. Per Blacksmith's docs a sticky disk mount clones t...

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

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:70de5298-5e17-0fe2-04af-f30c29cf9822
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA55E:3FAE84:511CB8:706CEC:6AFB3BC9
html-safe-nonce1e0775ad44de58637bf3a4f3db336266b00bc1a88263397d3c23864e16f107f7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTVFOjNGQUU4NDo1MTFDQjg6NzA2Q0VDOjZBRkIzQkM5IiwidmlzaXRvcl9pZCI6IjMxNDQ5MDE4NzM0MjUzOTg3MjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac5c5f4301413636479cd059052fcd59378cd3aeb041e6d7d01252cdebc553d6c9
hovercard-subject-tagpull_request:4165109402
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/6072/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 Turbopack persistent build cache sticky disk was keyed on github.event_name alone, so every open PR shared one mutable volume. Per Blacksmith's docs a sticky disk mount clones the l...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None2169b0dfbef67ed6b128074a5ed45bb7d5d1859783b10178b09a7765ad5f3693
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3b4fc8df5ef1c6757e733a23e6b81b6725021823
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/6072/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6072%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%2F6072%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/6072/files
Reloadhttps://github.com/simstudioai/sim/pull/6072/files
Reloadhttps://github.com/simstudioai/sim/pull/6072/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests199 (199)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
fix/ci-nextjs-cache-branch-scopehttps://github.com/simstudioai/sim/tree/fix/ci-nextjs-cache-branch-scope
Conversation 8 https://github.com/simstudioai/sim/pull/6072
Commits 2 https://github.com/simstudioai/sim/pull/6072/commits
Checks 27 https://github.com/simstudioai/sim/pull/6072/checks
Files changed https://github.com/simstudioai/sim/pull/6072/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6072/files
fix(ci): scope the Next.js build cache sticky disk per branch https://github.com/simstudioai/sim/pull/6072/files#top
Show all changes 2 commits https://github.com/simstudioai/sim/pull/6072/files
0fc251f fix(ci): scope the Next.js build cache sticky disk per branch waleedlatif1 Jul 30, 2026 https://github.com/simstudioai/sim/pull/6072/commits/0fc251fd2c5e6888e3c3fc231a07b5c3ed8c371d
cb77e1e refactor(ci): trim the cache-key comments to the load-bearing facts waleedlatif1 Jul 30, 2026 https://github.com/simstudioai/sim/pull/6072/commits/cb77e1eebe012c3ea2c7637c1aeae0030aded762
Clear filters https://github.com/simstudioai/sim/pull/6072/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6072/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6072/files
ci-cache-cleanup.yml https://github.com/simstudioai/sim/pull/6072/files#diff-bdb25fe587582f43383089aee49d9dfada0e0c91023b2e37c2558757a85c1976
test-build.yml https://github.com/simstudioai/sim/pull/6072/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
.github/workflows/ci-cache-cleanup.ymlhttps://github.com/simstudioai/sim/pull/6072/files#diff-bdb25fe587582f43383089aee49d9dfada0e0c91023b2e37c2558757a85c1976
View file https://github.com/simstudioai/sim/blob/cb77e1eebe012c3ea2c7637c1aeae0030aded762/.github/workflows/ci-cache-cleanup.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6072/{{ revealButtonHref }}
cursorhttps://github.com/apps/cursor
Jul 30, 2026https://github.com/simstudioai/sim/pull/6072/files#r3678994738
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://cursor.com/open?link=eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoiQlVHQk9UX0ZJWF9JTl9DVVJTT1IiLCJkYXRhIjp7InJlZGlzS2V5IjoiYnVnYm90OjQzN2MyZDgwLWRkMDAtNDIwYS04NTczLWE4MjZlNjBiYjc2YiIsImVuY3J5cHRpb25LZXkiOiJqSkJybERFMlI0b2RMTTBSZENkZWpkX3BBd2JlMG1DYVlpdE83Y0ZqOVJJIiwiYnJhbmNoIjoiZml4L2NpLW5leHRqcy1jYWNoZS1icmFuY2gtc2NvcGUiLCJyZXBvT3duZXIiOiJzaW1zdHVkaW9haSIsInJlcG9OYW1lIjoic2ltIn19
https://cursor.com/agents?link=eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoiQlVHQk9UX0ZJWF9JTl9XRUIiLCJkYXRhIjp7InJlZGlzS2V5IjoiYnVnYm90OjQzN2MyZDgwLWRkMDAtNDIwYS04NTczLWE4MjZlNjBiYjc2YiIsImVuY3J5cHRpb25LZXkiOiJqSkJybERFMlI0b2RMTTBSZENkZWpkX3BBd2JlMG1DYVlpdE83Y0ZqOVJJIiwiYnJhbmNoIjoiZml4L2NpLW5leHRqcy1jYWNoZS1icmFuY2gtc2NvcGUiLCJyZXBvT3duZXIiOiJzaW1zdHVkaW9haSIsInJlcG9OYW1lIjoic2ltIiwicHJOdW1iZXIiOjYwNzIsImNvbW1pdFNoYSI6ImNiNzdlMWVlYmUwMTJjM2VhMmM3NjM3YzFhZWFlMDAzMGFkZWQ3NjIiLCJwcm92aWRlciI6ImdpdGh1YiJ9fQ
Cursor Bugbothttps://cursor.com/bugbot
cb77e1ehttps://github.com/simstudioai/sim/commit/cb77e1eebe012c3ea2c7637c1aeae0030aded762
herehttps://www.cursor.com/dashboard/bugbot
Please reload this pagehttps://github.com/simstudioai/sim/pull/6072/files
cursorhttps://github.com/apps/cursor
Jul 30, 2026https://github.com/simstudioai/sim/pull/6072/files#r3678994741
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
.github/workflows/test-build.yml#L281-L282https://github.com/simstudioai/sim/blob/cb77e1eebe012c3ea2c7637c1aeae0030aded762/.github/workflows/test-build.yml#L281-L282
https://cursor.com/open?link=eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoiQlVHQk9UX0ZJWF9JTl9DVVJTT1IiLCJkYXRhIjp7InJlZGlzS2V5IjoiYnVnYm90OmQ4NGJmNDE4LTQ3ZmQtNDcxNy1hMDNmLTE5YmYwNDg2YzU5YiIsImVuY3J5cHRpb25LZXkiOiJmUlVqb0p4UWQ5X1FtVkNMd2UzSzlEb3c0WlhkbUVYNENYNC1meTd1S25JIiwiYnJhbmNoIjoiZml4L2NpLW5leHRqcy1jYWNoZS1icmFuY2gtc2NvcGUiLCJyZXBvT3duZXIiOiJzaW1zdHVkaW9haSIsInJlcG9OYW1lIjoic2ltIn19
https://cursor.com/agents?link=eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoiQlVHQk9UX0ZJWF9JTl9XRUIiLCJkYXRhIjp7InJlZGlzS2V5IjoiYnVnYm90OmQ4NGJmNDE4LTQ3ZmQtNDcxNy1hMDNmLTE5YmYwNDg2YzU5YiIsImVuY3J5cHRpb25LZXkiOiJmUlVqb0p4UWQ5X1FtVkNMd2UzSzlEb3c0WlhkbUVYNENYNC1meTd1S25JIiwiYnJhbmNoIjoiZml4L2NpLW5leHRqcy1jYWNoZS1icmFuY2gtc2NvcGUiLCJyZXBvT3duZXIiOiJzaW1zdHVkaW9haSIsInJlcG9OYW1lIjoic2ltIiwicHJOdW1iZXIiOjYwNzIsImNvbW1pdFNoYSI6ImNiNzdlMWVlYmUwMTJjM2VhMmM3NjM3YzFhZWFlMDAzMGFkZWQ3NjIiLCJwcm92aWRlciI6ImdpdGh1YiJ9fQ
Cursor Bugbothttps://cursor.com/bugbot
cb77e1ehttps://github.com/simstudioai/sim/commit/cb77e1eebe012c3ea2c7637c1aeae0030aded762
herehttps://www.cursor.com/dashboard/bugbot
Please reload this pagehttps://github.com/simstudioai/sim/pull/6072/files
.github/workflows/test-build.ymlhttps://github.com/simstudioai/sim/pull/6072/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
View file https://github.com/simstudioai/sim/blob/cb77e1eebe012c3ea2c7637c1aeae0030aded762/.github/workflows/test-build.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6072/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6072/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
https://github.com/simstudioai/sim/pull/6072/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
https://github.com/simstudioai/sim/pull/6072/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
Please reload this pagehttps://github.com/simstudioai/sim/pull/6072/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.