René's URL Explorer Experiment


Title: perf(ci): build the app image on 16 vCPU, pin node-gyp, and keep the toolchain out of the runtime image by waleedlatif1 · Pull Request #6500 · simstudioai/sim · GitHub

Open Graph Title: perf(ci): build the app image on 16 vCPU, pin node-gyp, and keep the toolchain out of the runtime image by waleedlatif1 · Pull Request #6500 · simstudioai/sim

X Title: perf(ci): build the app image on 16 vCPU, pin node-gyp, and keep the toolchain out of the runtime image by waleedlatif1 · Pull Request #6500 · simstudioai/sim

Description: Summary Three independently-verified changes to the app image build. Each measured, none dependent on the others. 1. The app image builds on 16 vCPU instead of 8. Its two dominant steps — bun install (~300-465s) and next build (~262s) — both scale with cores, and this build gates every deploy because nothing ships until the image is pushed. The same next build already runs on 16 vCPU in the Build App verification job, which gates nothing. ARM64 stays at 8: that job is off the deploy path and the workflow warns an unprovisioned runner label hangs a release in queued. 2. node-gyp comes from the lockfile, not npx. npx node-gyp resolved from the registry during every production image build, which pulled 13.x over the pinned 12.4.0 and bypassed the minimumReleaseAge supply-chain gate in bunfig.toml. It has to be an apps/sim devDependency because the only other copy is transitive through @electron/rebuild, which turbo prune sim strips. 3. base splits into base + build-base. The 390 MB compiler toolchain (measured: 1.21 GB vs 1.6 GB) exists only to compile isolated-vm against Node. The runner copies the finished binary, so shipping the toolchain inflated every ECS task pull. ffmpeg and python3 stay — fluent-ffmpeg is a serverExternalPackage. Type of Change Improvement Testing Verified against real image builds, not by inspection: Check Result Full image build ✅ succeeds g++ / make / pip3 in runtime ✅ absent node / bun / python3 / ffmpeg ✅ present isolated-vm native module ✅ loads and evaluates (1+1 → 2) lib0 / yjs / y-protocols + lib0/logging.js ✅ intact (the collab-doc 500) sharp + libvips (compatibility with #6499) ✅ loads and encodes a PNG in the slimmed image Container boot ✅ Next.js Ready, no module errors Dependency hoisting ✅ root which@6.0.1, fluent-ffmpeg keeps its own 1.3.1 Full suite ✅ 21,250 passed, 0 failed Audits / type-check ✅ 22 audits, 23 workspaces Interaction with #6499 was checked explicitly, since that PR ships sharp/@img into the same runtime image this PR slims. libvips' shared-library dependencies (libstdc++.so.6, libgcc_s.so.1, libm.so.6, libz.so.1) come from the base image and nodejs, not from g++, and sharp was confirmed to load and encode against the slimmed image. No conflict. What this does NOT do It does not change time-to-live for a deploy. That is ~15 min (≈10 min build + ~40s pipeline + ~185s Install/AllowTraffic) and stays that way. A dead end, recorded so nobody repeats it This branch briefly carried a change adding cache-key to useblacksmith/setup-docker-builder, on the theory that the app's dependency layer re-runs every build (286s / 465s observed) because all five Dockerfiles shared one unkeyed layer cache. It was reverted — the input does not exist, at the pinned SHA or on main, and Actions silently ignores unknown inputs. The key is not configurable: // src/setup_builder.ts:409 const stickyDiskKey = process.env.GITHUB_REPO_NAME || ""; The real CI log also disproves the eviction theory — the disk is obtained successfully, with prior state, no fallback: Getting sticky disk for simstudioai/sim Sticky disk parent snapshot: commit-01KZP43K3QNJ04JYYGQS7H1MMG Successfully obtained sticky disk So the cache is present and the deps layer still re-runs. That cause remains unidentified and is not addressed here. Verified separately that the Dockerfile is not at fault: a local source-only change rebuilds with the deps layer CACHED, and turbo prune's out/json is byte-identical across runs. 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 Three independently-verified changes to the app image build. Each measured, none dependent on the others. 1. The app image builds on 16 vCPU instead of 8. Its two dominant steps — bun insta...

X Description: Summary Three independently-verified changes to the app image build. Each measured, none dependent on the others. 1. The app image builds on 16 vCPU instead of 8. Its two dominant steps — bun insta...

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

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:d53665bb-6c44-9802-99e8-bb85192431f1
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA582:1EFDE9:6FA152:9A72CD:6AFB42E4
html-safe-nonce7226712d78e3e842a0dd3e269283b551794f550f6d0315dc97d5591a43f3dac0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTgyOjFFRkRFOTo2RkExNTI6OUE3MkNEOjZBRkI0MkU0IiwidmlzaXRvcl9pZCI6IjQyNTgxMDM4MDM5NDY2ODEwNjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacdb6899d68d0d367b468ecd7ece20df6c419ccbb8b820c99dbff28474372a3978
hovercard-subject-tagpull_request:4247566039
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/6500/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 Three independently-verified changes to the app image build. Each measured, none dependent on the others. 1. The app image builds on 16 vCPU instead of 8. Its two dominant steps — bun insta...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noned849b928f455c800985398e7f1b659425adb312a5fa14fba5d9a14e62e9fe5dd
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
releasea6c2f87cbcb6414452377b4967858ed6a66f1109
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/6500/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6500%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%2F6500%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/6500/files
Reloadhttps://github.com/simstudioai/sim/pull/6500/files
Reloadhttps://github.com/simstudioai/sim/pull/6500/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests200 (200)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
perf/docker-build-optimizationshttps://github.com/simstudioai/sim/tree/perf/docker-build-optimizations
Conversation 12 https://github.com/simstudioai/sim/pull/6500
Commits 1 https://github.com/simstudioai/sim/pull/6500/commits
Checks 30 https://github.com/simstudioai/sim/pull/6500/checks
Files changed https://github.com/simstudioai/sim/pull/6500/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6500/files
perf(ci): build the app image on 16 vCPU, pin node-gyp, and keep the toolchain out of the runtime image https://github.com/simstudioai/sim/pull/6500/files#top
Show all changes 1 commit https://github.com/simstudioai/sim/pull/6500/files
499a4d2 perf(ci): build the app image on 16 vCPU and keep the toolchain out o… waleedlatif1 Aug 10, 2026 https://github.com/simstudioai/sim/pull/6500/commits/499a4d228d5b0a2dd206d6e898e83ba15567f205
Clear filters https://github.com/simstudioai/sim/pull/6500/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6500/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6500/files
ci.yml https://github.com/simstudioai/sim/pull/6500/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
package.json https://github.com/simstudioai/sim/pull/6500/files#diff-43a1bb37ce68ac536b0a4ed9e973d9d52da3975d74b37865f591bb37e191be64
bun.lock https://github.com/simstudioai/sim/pull/6500/files#diff-bfd0ef82a01108fa1e836c2500b98b7de8a92bb1ae352a8efcbd9d6ffcaabd60
app.Dockerfile https://github.com/simstudioai/sim/pull/6500/files#diff-c77b184581d79618e626c89460b0899fbdd892d86049e0aa634c8b1c3b4cab8d
.github/workflows/ci.ymlhttps://github.com/simstudioai/sim/pull/6500/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
View file https://github.com/simstudioai/sim/blob/499a4d228d5b0a2dd206d6e898e83ba15567f205/.github/workflows/ci.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6500/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6500/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
https://github.com/simstudioai/sim/pull/6500/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
https://github.com/simstudioai/sim/pull/6500/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
https://github.com/simstudioai/sim/pull/6500/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
https://github.com/simstudioai/sim/blob/staging/.github/CODEOWNERS#L36
apps/sim/package.jsonhttps://github.com/simstudioai/sim/pull/6500/files#diff-43a1bb37ce68ac536b0a4ed9e973d9d52da3975d74b37865f591bb37e191be64
View file https://github.com/simstudioai/sim/blob/499a4d228d5b0a2dd206d6e898e83ba15567f205/apps/sim/package.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6500/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6500/files#diff-43a1bb37ce68ac536b0a4ed9e973d9d52da3975d74b37865f591bb37e191be64
https://github.com/simstudioai/sim/pull/6500/files#diff-43a1bb37ce68ac536b0a4ed9e973d9d52da3975d74b37865f591bb37e191be64
https://github.com/simstudioai/sim/blob/staging/.github/CODEOWNERS#L38
bun.lockhttps://github.com/simstudioai/sim/pull/6500/files#diff-bfd0ef82a01108fa1e836c2500b98b7de8a92bb1ae352a8efcbd9d6ffcaabd60
View file https://github.com/simstudioai/sim/blob/499a4d228d5b0a2dd206d6e898e83ba15567f205/bun.lock
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/simstudioai/sim/pull/6500/files
docker/app.Dockerfilehttps://github.com/simstudioai/sim/pull/6500/files#diff-c77b184581d79618e626c89460b0899fbdd892d86049e0aa634c8b1c3b4cab8d
View file https://github.com/simstudioai/sim/blob/499a4d228d5b0a2dd206d6e898e83ba15567f205/docker/app.Dockerfile
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6500/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6500/files#diff-c77b184581d79618e626c89460b0899fbdd892d86049e0aa634c8b1c3b4cab8d
https://github.com/simstudioai/sim/pull/6500/files#diff-c77b184581d79618e626c89460b0899fbdd892d86049e0aa634c8b1c3b4cab8d
https://github.com/simstudioai/sim/pull/6500/files#diff-c77b184581d79618e626c89460b0899fbdd892d86049e0aa634c8b1c3b4cab8d
Please reload this pagehttps://github.com/simstudioai/sim/pull/6500/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.