From 026a00ecc1e41312327a367b632f7565de62f434 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Fri, 20 Nov 2026 11:05:06 -0800 Subject: [PATCH 1/2] improvement(ci): drop the e2e build's persistent compiler cache --- .github/workflows/checks.yml | 39 ++---------------------------------- 1 file changed, 2 insertions(+), 37 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 7e4d4502862..ec8f3c29dc7 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -970,9 +970,6 @@ jobs: if: needs.changes.outputs.e2e_build == 'true' runs-on: ${{ (vars.CI_PROVIDER == '' || vars.CI_PROVIDER == 'blacksmith') && 'blacksmith-16vcpu-ubuntu-2404' || 'linux-x64-8-core' }} timeout-minutes: 25 - env: - NEXT_BUILD_PERSISTENT_CACHE: ${{ (vars.CI_PROVIDER == '' || vars.CI_PROVIDER == 'blacksmith') && (github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork) && 'true' || 'false' }} - steps: - *checkout-mirror - *checkout-plain @@ -991,10 +988,8 @@ jobs: echo "::warning::Runner has ${TOTAL_GB} GB. A cold-cache build peaks ~51 GB, so this run may be OOM-killed (reported only as 'the runner has received a shutdown signal'). Warm/partial builds should still fit." fi - - name: Plan incremental compiler state - id: compiler-cache-plan - if: env.NEXT_BUILD_PERSISTENT_CACHE == 'true' - env: &e2e-build-env + - name: Build application + env: NODE_OPTIONS: '--no-warnings --max-old-space-size=8192' NEXT_PUBLIC_APP_URL: 'http://localhost:3000' DATABASE_URL: 'postgresql://postgres:postgres@localhost:5432/simstudio' @@ -1009,38 +1004,8 @@ jobs: # already enforce. NEXT_BUILD_SKIP_TYPE_CHECK: 'true' NEXT_BUILD_SKIP_SOURCE_MAPS: 'true' - run: | - echo "toolchain=bun$(bun --version)-node$(node --version)" >> "$GITHUB_OUTPUT" - if bunx turbo run build --filter=@sim/app --dry=json > "$RUNNER_TEMP/e2e-build-plan.json" && - jq -e 'type == "object" and (.tasks | type) == "array" and ([.tasks[] | select(.taskId == "@sim/app#build")] | length == 1 and .[0].cache.status == "HIT")' "$RUNNER_TEMP/e2e-build-plan.json" > /dev/null; then - echo 'restore=false' >> "$GITHUB_OUTPUT" - else - echo 'restore=true' >> "$GITHUB_OUTPUT" - fi - - - name: Mount incremental compiler state - id: compiler-cache - if: steps.compiler-cache-plan.outputs.restore == 'true' - uses: ./.github/actions/cache - with: - provider: ${{ vars.CI_PROVIDER }} - key: ${{ github.repository }}-next-build-e2e-v1-${{ runner.os }}-${{ runner.arch }}-${{ github.event_name }}-${{ steps.compiler-cache-plan.outputs.toolchain }}-${{ hashFiles('bun.lock', 'package.json', 'patches/**', 'apps/sim/package.json', 'apps/sim/next.config.ts', 'apps/sim/lib/core/config/env.ts', '.github/workflows/checks.yml', '.github/actions/setup/action.yml') }} - path: ./apps/sim/.next/cache - - - name: Bound restored compiler state - if: steps.compiler-cache.outcome == 'success' - working-directory: apps/sim - run: node ../../scripts/prune-turbopack-cache.mts --build - - - name: Build application - env: *e2e-build-env run: bunx turbo run build --filter=@sim/app - - name: Bound compiler state before persistence - if: always() && !cancelled() && steps.compiler-cache.outcome == 'success' - working-directory: apps/sim - run: node ../../scripts/prune-turbopack-cache.mts --build - # Everything `next start` reads, including the spreadsheet parse worker it spawns (named, so a # missing bundle fails packaging as it fails docker/app.Dockerfile); node_modules and the source # tree come from e2e-production's own checkout and setup, at the same workspace path and From 1635325d10d26df270dda0a0ff4011c074d4887b Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Fri, 20 Nov 2026 11:05:41 -0800 Subject: [PATCH 2/2] chore(ci): temporary forced build to measure compile time --- .github/workflows/checks.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index ec8f3c29dc7..e9802e45987 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -1004,6 +1004,7 @@ jobs: # already enforce. NEXT_BUILD_SKIP_TYPE_CHECK: 'true' NEXT_BUILD_SKIP_SOURCE_MAPS: 'true' + TURBO_FORCE: 'true' run: bunx turbo run build --filter=@sim/app # Everything `next start` reads, including the spreadsheet parse worker it spawns (named, so a