Files
supabase/.github/workflows
2b7f5ace51 chore(ci): run independent workflow steps in parallel (#51398)
Uses GitHub Actions' new [parallel / background
steps](https://github.blog/changelog/2026-06-25-actions-steps-can-now-be-run-in-parallel/)
to overlap independent CI steps. It works on Blacksmith runners, and
zizmor accepts the new keys.

**Changed:**
- **Studio E2E:** Chromium install, `supabase start` and the Studio
build now run concurrently. The build only inlines `NEXT_PUBLIC_*` vars,
and the only one that comes from `supabase status` is the API URL, which
`e2e/studio/supabase/config.toml` fixes. So the build runs against that
URL, and the real runtime env is written once supabase is up. A `diff`
fails the job if the inlined values don't match the real ones.
- **Docs and www E2E:** deps and Chromium install while the Vercel
preview poll runs in the background, instead of after it.
- **Typecheck:** typecheck and lint run side by side on a 4 vCPU runner
(up from 2), so a typecheck failure no longer hides lint errors.
- **Docs tests:** the three prep steps run as a parallel group, and the
workflow is added to its own `paths` filter so edits to it get
validated.

**Timings:** the baseline is the 10 most recent successful PR runs.
"After" comes from this PR's runs, so the sample is small.

| Workflow | Measured | Before (median) | After | Change |
|---|---|---|---|---|
| Studio E2E, next | setup (deps installed → tests start) | 162s | 112s,
138s | −23% |
| Studio E2E, tanstack | setup (deps installed → tests start) | 110s |
59s, 66s | −43% |
| Typecheck | job total | 168s | 68s, 110s | −47% |
| Docs / www E2E | deps + Chromium | 20s / 30s | hidden behind the
preview wait | ~6–7% of the job |
| Docs tests | prep steps | ~4s | ~2s | negligible |

On Studio E2E that's about 40–50s off each of the 4 shards. Whole-job
totals are dominated by how long the Playwright run takes (±100s between
runs), so the setup segment is the fair comparison. Typecheck numbers
depend heavily on turbo cache hits, so treat them as directional.

## To test

- [x] All Studio E2E shards pass on both frameworks, including the
`NEXT_PUBLIC_*` env `diff` check
- [x] Docs and www E2E go through the background wait. A temporary
commit touching a docs page and a www page (now dropped) showed installs
finishing during the wait, and `Resolve base URL` picked up the
deployment output after the `wait`. The docs E2E failure on that run
came from a11y violations on the probe page, not from this change
- [x] Typecheck log shows both steps starting together ("Waiting for
background step(s) to complete: Run TypeScript type check, Run Lint")
- [x] Docs tests pass with the parallel prep group
- [ ] After merge, check that the first Studio E2E runs on master stay
green

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
Co-authored-by: Ali Waseem <waseema393@gmail.com>
2026-10-19 12:36:31 +02:00
..