Repository navigation
improvement(ci): check out same-repo pull requests through a git mirror - #8768
Merged
Merged
Conversation
A clone from GitHub took a minute or more for 1 in 10 checks jobs (up to 4 min), and with ~19 parallel jobs per run one slow clone set the run's pace. Same-repo pull requests now check out with useblacksmith/checkout, which keeps a git mirror on a sticky disk and fetches only new objects. Fork pull requests and pushes keep actions/checkout: the mirror is one disk per repository that job steps can write to, and Git does not re-hash objects read through alternates, so only runs that already share the pull_request caches share it.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 1 file
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
Contributor
|
This branch had an error being 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.
Summary
useblacksmith/checkout(pinned v1.8.1). It keeps a git mirror on a sticky disk and fetches only what is new; on a non-Blacksmith runner, or if the mirror is unavailable, it falls back to a normal cloneactions/checkout. The mirror is one disk per repository that job steps can write to, and Git doesn't re-hash objects read through alternates, so it's shared only by runs that already share thepull_requestcaches. The deploy-gating push checks never read itchecks.ymlchanges. Release, signing, publish and image jobs keepactions/checkout. Each job's mirror/plain pair is written once per fetch depth with YAML anchorsType of Change
Testing
desktop-changesstill checks out only on pull requests)bun run lint, block registry check,check:audits(58),type-check,docs-manifest:check, rootbun run testChecklist
test-auditauthoring gate)