Repository navigation
perf(ci): add 4th server test shard and skip duplicate push CI after merge queue - #1080
Merged
Merged
Conversation
…merge queue After PR #1078 rebalanced shards and skipped unnecessary apt installs, Server Test (5.5 to 6.2 min) remained the only job above 4.3 minutes, and every merged PR still ran full CI a third time on push to main (wasting ~35 runner-minutes per merge and allowing post-merge flakes to block nightlies). Added a 4th server_test shard (and updated DEFAULT_REQUIRED_CHECKS in scripts/verify-release-ci.ts), added a push-only precheck job that skips duplicate main runs when a green main merge_group run already verified all required checks on the exact SHA (while warming the main pnpm cache if pnpm-lock.yaml changed and failing open to full CI on errors or direct pushes), updated verify-release-ci.ts to query filter=all and treat skipped runs as non-verdicts while ordering queued runs properly, and updated update-test-shard-weights.ts to sample landed merge_group runs.
|
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
Server Test(3 shards, 5.5 to 6.2 min) is the only CI job taking longer than 4.3 minutes.pushtomainfor the exact same commit SHA, wasting ~35 runner-minutes per merge and occasionally failing nightly releases when a duplicatepushrun flakes aftermerge_grouppassed.Fix
server_testfrom 3 to 4 shards in.github/workflows/ci.ymland updatedDEFAULT_REQUIRED_CHECKSinscripts/verify-release-ci.ts.push-onlyprecheckjob (skipped instantly onpull_request,merge_group, andworkflow_dispatchwith no runner startup delay) that verifies whether a greenmerge_grouprun ofci.ymltargetingmainalready passed all required checks ongithub.sha:warm_cacheonly if thepnpm-lock.yamlblob SHA changed (or could not be confirmed).deploy_web_appexplicit on its direct needs so manual dispatches still deploy.scripts/verify-release-ci.ts(andscripts/verify-release-ci.test.ts) to queryfilter=all, treatskippedalongsidecancelledas non-verdicts, and orderqueuedruns with null timestamps above older completed runs.scripts/update-test-shard-weights.tsto sample greenmerge_groupruns whose commits landed onorigin/mainas well aspushruns onmain.