Skip to content

CI: build sandbox static output inside the create job#35352

Draft
valentinpalkovic wants to merge 1 commit into
valentin/ci-nx-remote-cachefrom
valentin/ci-merge-sandbox-build
Draft

CI: build sandbox static output inside the create job#35352
valentinpalkovic wants to merge 1 commit into
valentin/ci-nx-remote-cachefrom
valentin/ci-merge-sandbox-build

Conversation

@valentinpalkovic

Copy link
Copy Markdown
Contributor

Follow-up to #35343; stacked on #35350. Removes one full job level from every sandbox template's static chain.

Why

After the Playwright-workers win (#35347), the workflow tail shifts to the four-level chain build-linux → create → build → {e2e, chromatic, vitest}. The standalone (build) job is ~90s, of which ~55s is fixed setup (spin-up, checkout, attach, unpack) around a ~25-45s actual build - and every downstream job waits for it plus another workspace round-trip.

What

  • yarn task build runs at the end of the (create) job, before the sandbox is packed, so storybook-static travels inside the existing per-template sandbox tarball (CI: pack sandboxes into gzipped workspace tarballs #35348).
  • (e2e), (chromatic), (vitest) and (test-runner) depend on (create) directly - they start ~1.5 min earlier.
  • 15 standalone build jobs disappear from the normal workflow (~15 × 55s ≈ 14 summed minutes of pure setup overhead).
  • Windows sandbox jobs / daily test-runner referenced flow jobs by array index; they use named references now.

Coverage unchanged: the same yarn task build runs with the same inputs and assertions, one job earlier. saveBench('build') records identical data (it runs inside the task, not the job), and no generated workflow consumed the bench task output.

Expected effect (to be replaced with measured numbers from this PR's pipeline)

Chain Before (workers branch, decontended estimate) After
create ends ~7.5 min ~8.0 min (+build step)
build ends ~9.2 min (job removed)
e2e/chromatic/vitest start ~9.2-10 min ~8.0 min
summed job-time - ~-14 min

Measured tables will be updated from the CI run on this PR.

The standalone (build) job per template was ~90s of which ~55s was fixed
setup (spin-up, checkout, workspace attach and unpack) around a ~25-45s
build - and it sat between (create) and the e2e/chromatic/vitest jobs on
the workflow critical path, adding a full job hop plus a workspace
round-trip to those chains.

The static build now runs at the end of the create job, before the sandbox
is packed, so storybook-static travels inside the existing sandbox tarball
and downstream jobs need no extra restore step. e2e, chromatic, vitest and
test-runner depend on create directly.

The Windows sandbox jobs and the daily test-runner job referenced flow
jobs by array index; they now use named references, since the build job no
longer exists. saveBench('build') records identical data - it runs inside
'yarn task build' regardless of which CI job hosts it, and no job in the
generated workflows consumed the bench task output.
@valentinpalkovic valentinpalkovic added build Internal-facing build tooling & test updates ci:normal Run our default set of CI jobs (choose this for most PRs). labels Jul 2, 2026
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor
Fails
🚫

PR is not labeled with one of: ["qa:needed","qa:skip","qa:success"]

🚫 PR title must be in the format of "Area: Summary", With both Area and Summary starting with a capital letter Good examples: - "Docs: Describe Canvas Doc Block" - "Svelte: Support Svelte v4" Bad examples: - "add new api docs" - "fix: Svelte 4 support" - "Vue: improve docs"
🚫 PR description is missing the mandatory "#### Manual testing" section. Please add it so that reviewers know how to manually test your changes.
Warnings
⚠️

This PR targets valentin/ci-nx-remote-cache. The default branch for contributions is next. Please make sure you are targeting the correct branch.

Generated by 🚫 dangerJS against b942760

@nx-cloud

nx-cloud Bot commented Jul 2, 2026

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit b942760

Command Status Duration Result
nx run-many -t compile -c production --parallel=8 ✅ Succeeded 1m 4s View ↗

💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-07-02 12:26:12 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Internal-facing build tooling & test updates ci:normal Run our default set of CI jobs (choose this for most PRs).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant