Repository navigation
perf(ci): parallelize Next.js E2E Webpack builds - #26966
Draft
nicohrubec wants to merge 2 commits into
Draft
nicohrubec wants to merge 2 commits into
nicohrubec wants to merge 2 commits into
Conversation
Co-Authored-By: OpenAI Codex <codex@openai.com>
Contributor
size-limit report 📦Compared: 8df43ef (PR test merge using develop at 6dab20b) Against: 6dab20b (develop) · base run #68250 ✅ Baseline matches: this diff contains only this PR's changes.
|
Contributor
Optional E2E testsAll optional checks were successful. 6 successful. See the run. Successful checks
|
Co-Authored-By: OpenAI Codex <codex@openai.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Benchmark Webpack production builds across 11 Next.js E2E apps with build workers, parallel server compilation and parallel server tracing. Print successful Webpack build output to identify the expensive phases.
Why
The current app build takes about 55s, plus 13s installing dependencies, while tests take 34s. Build parallelism may use the four-core runners better without reducing test coverage. This experiment uses the same develop baseline as #26964 and leaves that PR unchanged.
next build --webpackwall timeBoth pinned and latest Webpack production jobs passed. The pinned variant retained all 85 active tests without retries. Installation and SDK preparation were also faster in this run, so the full 42s job reduction cannot be attributed solely to build parallelism. These are single-run measurements; the three build options are benchmarked together.
Before · Parallel build.
Expanded to Next.js 14, Supabase, 15, basepath, intl, 16, cache components, OTLP, source maps, standalone and tunnel apps. The expanded run passed all required checks. A targeted cache-components repeat also passed. No tests or dependencies were changed.
Wider rollout
App installation + build step, compared with the same-base full run before and expanded run:
Single-run figures include dependency installation and runner variability; they are not isolated compiler timings. The cache-components production outlier spent about 65s in the build itself; a targeted repeat reduced the install/build step from 89s to 42s, versus 43s before. Smaller regressions in intl and OTLP remain inconclusive. No framework or dependency versions were changed. SDK builds already run four Nx tasks concurrently; no worker-count changes were made there. The Nuxt 4.6 schema does not expose the newer parallel-build switch, so no Nuxt builder migration was included.