Title: fix(ci): unblock @next/swc, lockfile-keyed node_modules, per-image runner sizing by waleedlatif1 · Pull Request #5945 · simstudioai/sim · GitHub
Open Graph Title: fix(ci): unblock @next/swc, lockfile-keyed node_modules, per-image runner sizing by waleedlatif1 · Pull Request #5945 · simstudioai/sim
X Title: fix(ci): unblock @next/swc, lockfile-keyed node_modules, per-image runner sizing by waleedlatif1 · Pull Request #5945 · simstudioai/sim
Description: Summary Three CI fixes, all traced to real telemetry rather than guesswork. 1. The @next/swc-* binaries were blocked by the supply-chain age gate Every Build App run logged: ⚠ Mismatching @next/swc version, detected: 16.2.6 while Next.js is on 16.2.11 16.2.6 appears nowhere in bun.lock or any package.json, so CI was compiling production bundles with an SWC binary the lockfile does not reference. Root cause: #5890 bumped next 16.2.6 → 16.2.11 for the July 2026 security advisories and added next + @next/env to minimumReleaseAgeExcludes so they could install — but not the @next/swc-* platform binaries, which ship in lockstep with next and were published the same day. They stayed blocked by the 7-day gate, so bun install has been silently installing no compiler at all since that bump (they are optional deps, so the failure is silent). Reproduced directly: adding @next/swc-linux-x64-gnu@16.2.11 errored published within minimum release age of 604800 seconds; with the exclude added it resolves. Fix, in two parts (the first alone is not enough — verified by a CI run that still tried to download the compiler): Add the four @next/swc-* binaries to minimumReleaseAgeExcludes, alongside the next entry that should have carried them. Declare them as root optionalDependencies so they get resolved entries in bun.lock. Without an entry, bun install --frozen-lockfile cannot install a package at all — next's inline optional-dependency metadata is not sufficient. Each package carries os/cpu constraints, so only the matching one installs per platform; the lockfile records all four. 1b. node_modules sticky disk was shared across branches The disk was keyed only on github.event_name, so every branch shared one mutable node_modules volume. A sticky disk is a persistent mutable volume, not a content-addressed cache, and bun install --frozen-lockfile adds what the lockfile needs without pruning what it dropped — so the pre-bump 16.2.6 binary survived on the shared disk and was served to every 16.2.11 build. That is why the missing-compiler bug above stayed hidden: the stale disk was masking it. Fix: add the bun.lock hash to that key. The bun download cache and Turbo cache are content/hash-addressed and stay shared, which keeps a fresh node_modules disk cheap to fill. Note these two are coupled: fixing the cache key alone gives a clean disk with no SWC binary, at which point next tries to download one at build time and dies on registry detection. Both fixes are required together. 2. Per-image Blacksmith runner sizing (bs_runner) All three Docker matrices pinned every image to 8 vCPU on Blacksmith, even though the existing gh_runner column already documents that only the app image needs a big runner. The non-app builds idle at 12–15% CPU and under 10% memory. Added a bs_runner field mirroring gh_runner so the sizing lives with the image and can't drift back: app 8 vCPU, migrations 2, realtime 4, PII 4 (same for ARM). Also dropped docs-embeddings 8 → 2 vCPU — it's network-bound on the embeddings API at ~9% CPU. 3. Cold-build memory warning Running out of RAM kills the whole VM and surfaces only as The runner has received a shutdown signal — no mention of memory, after ~12 minutes of work. That's what made the OOM fixed in #5944 hard to diagnose. The build job now reports MemTotal up front and emits a ::warning:: with the real numbers when the runner is under 40 GB. Warning-only on purpose: warm builds peak ~12 GB and partial ~28 GB, so a 32 GB runner still completes many builds, and hard-failing them would degrade the break-glass GitHub path rather than protect it. This also addresses the P1 left open on #5944: the GitHub fallback (linux-x64-8-core, 32 GB) is still below the ~51 GB cold peak. Rather than guess a larger label — hosted-runners reports total_count: 0 for the org, so no GitHub larger runners appear provisioned, and an unresolvable runs-on label queues forever — the preflight turns that path into an immediate, explanatory failure on any provider. Not included: .next/cache The ~5 GB Turbopack FS cache shares the same event+fork key, but keying it on the lockfile would be redundant: NEXT_TURBOPACK_BUILD_CACHE already hashes on config/deps/module content, so a lockfile bump invalidates those slices on its own. The way that cache could be corrupted was a mismatched compiler writing entries into it — which fix 1 removes at the source. Type of Change Bug fix (CI correctness + reliability + cost) Testing Tested manually — all three workflows parse; preflight verified under bash -n; every matrix referencing bs_runner defines it on all 12 entries. 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 CI fixes, all traced to real telemetry rather than guesswork. 1. The @next/swc-* binaries were blocked by the supply-chain age gate Every Build App run logged: ⚠ Mismatching @next/swc...
X Description: Summary Three CI fixes, all traced to real telemetry rather than guesswork. 1. The @next/swc-* binaries were blocked by the supply-chain age gate Every Build App run logged: ⚠ Mismatching @next/swc...
Opengraph URL: https://github.com/simstudioai/sim/pull/5945
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,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-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:9e5c5b5b-da17-dcb3-44ec-f533e1656554 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 835E:EA1A8:4F400D:6DACE7:6AFB3BD6 |
| html-safe-nonce | 41f63cba4333add0a57c18c3443f617265b950da813419726efddc7fa27b197e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzVFOkVBMUE4OjRGNDAwRDo2REFDRTc6NkFGQjNCRDYiLCJ2aXNpdG9yX2lkIjoiMzgxNTY3Nzg4Mjc1NTkyMjkwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b985327c1cc2cc7a1103b1d04d06d81cfb691313c4ab910a2590b4a2be32f355 |
| hovercard-subject-tag | pull_request:4129836089 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/5945/files |
| twitter:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| og:image:alt | Summary Three CI fixes, all traced to real telemetry rather than guesswork. 1. The @next/swc-* binaries were blocked by the supply-chain age gate Every Build App run logged: ⚠ Mismatching @next/swc... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2169b0dfbef67ed6b128074a5ed45bb7d5d1859783b10178b09a7765ad5f3693 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3b4fc8df5ef1c6757e733a23e6b81b6725021823 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width