Repository navigation
ci: fetch only the history the format and runtime scope jobs need - #8198
Merged
Merged
Conversation
Both jobs checked out with fetch-depth: 0, which fetches every branch in the repo. That fetch sometimes stalls on GitHub's side past the jobs' 5-minute limit, and the jobs are then cancelled at checkout. format now checks out only the head commit (blobless) and fetches the base branch with --unshallow --filter=blob:none, with a 90-second limit and 3 attempts. The runtime scope job uses depth 2 on pull_request (the merge commit and its parents) and keeps the full history for push and merge_group. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review: 1
Please check the settings in the CodeRabbit UI or the
|
Contributor
|
Size Change: 0 B Total Size: 2.21 MB ℹ️ View Unchanged
|
AlemTuzlak
added a commit
that referenced
this pull request
Nov 4, 2026
Brings in the lint gate (#8172), the inspector feed fixture (#8187) and the CI checkout fix (#8198). The Angular copy buttons keep the stack's core copy feedback, which already voids its promise. Core lists jsdom as a devDependency, so knip no longer flags its jsdom tests as unlisted. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
The
formatjob (static / quality) and theRuntime change scopejob (test / intelligence runtimes) check out withfetch-depth: 0. That fetches every branch in the repo, about 675 branches.Usually the fetch takes about 25 seconds. Sometimes it stalls on GitHub's side, and the job is cancelled at checkout when it reaches its 5-minute limit. On #8181 both jobs were cancelled this way on two runs.
commitlintdid the same full fetch on the same run in 42 seconds.Intelligence runtime conformancethen failed, because the scope job never gave it a result. The same timeout failedformaton #8172.Fix
formatfilter: blob:none.--unshallow --filter=blob:none. This gets the commits and trees of both branches but no file contents, so the merge-base exists andgit diff --name-onlyworks.Runtime change scopepull_request, the checkout usesfetch-depth: 2.gate.mjsdiffs GitHub's merge commit against its first parent, so it needs only the merge commit and its two parents.pushandmerge_groupkeepfetch-depth: 0, because they diff againstBASE_SHA, which can be any older commit.Verification
I ran the new fetch step in bash against the real repo, from a shallow, blobless checkout of
alem/pe-1069-tighten-static-analysis.git diff --name-only origin/2.0.0...HEADlisted 84 files. That is the same list a full clone gives.oxfmt --checkpasses on them.This PR changes both workflows, so its own CI runs the new steps.
mainhas the samefetch-depth: 0checkouts. This fix will reachmainwith the 2.0.0 merge, or it can be cherry-picked there.🤖 Generated with Claude Code