Repository navigation
perf(ci): rebalance test shards, parallelize typecheck, and skip apt when Chromium launches - #1078
Merged
Merged
Conversation
…when Chromium launches Recent CI runs averaged 7.7 minutes because 108 server test files and 49 browser test files were missing from the shard-weight maps, Browser Test hit 2.5 to 5 minute apt-get stalls on EC2 Ubuntu mirrors, Typecheck serialized apps/server behind apps/web at concurrency 2, and Release Smoke deleted pnpm-lock.yaml to query live registry.npmjs.org on every run. Refreshed both shard-weight files from recent green main runs, switched Browser Test to install Playwright Chromium without --with-deps and fall back to HTTPS apt only if a headless launch probe fails, ran Typecheck with --parallel --concurrency-limit 4, and changed Release Smoke to discover all workspace manifests and validate the bumped versions against the frozen lockfile offline.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully 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.
Problem
Recent CI runs take a median of 7.7 minutes and regularly stall or hit avoidable network delays:
playwright install --with-deps chromiumtriggered 2.5 to 5 minuteapt-getstalls on AWS EC2ubuntu-latestrunners (*.ec2.archive.ubuntu.combypassed theazure.mirror rewrite) even though all Chromium shared libraries are already preinstalled and apt only fetched optional fonts.Typecheckran at--concurrency-limit 2in topological order, leavingapps/server(58s) idle behindapps/web(32s).scripts/release-smoke.tshad a hardcoded manifest list missingapps/relay-worker/package.json, deletedpnpm-lock.yaml, and re-resolved the workspace against liveregistry.npmjs.orgon every run.Fix
apps/server/vitest.shard-weights.json(400 files, projected 3-shard loads 278.7 / 278.8 / 278.7s) andapps/web/vitest.browser.shard-weights.json(118 files, projected 2-shard loads 626.5 / 626.4s) from the three newest green runs onmain.Browser Testin.github/workflows/ci.ymlto runplaywright install chromiumand verify a headless launch probe via Node, only rewriting all Ubuntu mirrors (([a-z0-9.-]+\.)?archive.ubuntu.com/ubuntu) to HTTPS and runningplaywright install-deps chromiumif launch fails.Typechecktovp exec vp run -r --parallel --concurrency-limit 4 --filter '!@threadlines/monorepo' typecheck.scripts/release-smoke.tsto discover workspace manifests dynamically, assert the bumped version on every manifest inreleasePackageFiles, and verify lockfile compatibility offline withvp install --frozen-lockfile --lockfile-only --ignore-scripts --offline.