Repository navigation
ci: use blobless checkout for lint jobs - #15365
Merged
Merged
Conversation
Contributor
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
lqiu96
force-pushed
the
ci/blobless-checkout-lint
branch
from
December 2, 2026 16:27
5e759e5 to
5254895
Compare
lqiu96
marked this pull request as ready for review
December 2, 2026 16:28
lqiu96
enabled stacked auto-merge (squash)
December 2, 2026 16:28
jinseopkim0
approved these changes
Dec 2, 2026
lqiu96
force-pushed
the
ci/blobless-checkout-lint
branch
from
December 2, 2026 18:04
5254895 to
3e83771
Compare
lqiu96
disabled stacked auto-merge
December 2, 2026 18:47
lqiu96
force-pushed
the
ci/blobless-checkout-lint
branch
from
December 2, 2026 19:04
3e83771 to
7d18af5
Compare
lqiu96
enabled stacked auto-merge (squash)
December 2, 2026 19:07
stacked auto-merge was automatically disabled
December 2, 2026 19:08
Replaced by a newer auto-merge request
lqiu96
enabled stacked auto-merge (squash)
December 2, 2026 19:08
stacked auto-merge was automatically disabled
December 2, 2026 20:21
Auto-merge was disabled for another pull request in the stack
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.
Add
filter: blob:nonealongsidefetch-depth: 0on thelintjob inside 8 workflows (ci.yaml,java-bigquery-jdbc-ci.yaml,java-firestore-ci.yaml,java-pubsub-ci.yaml,java-shared-config-ci.yaml,java-shared-config-downstream-maven-plugins.yaml,java-spanner-jdbc-ci.yaml, andjava-storage-nio-ci.yaml).Why
filter: blob:noneis neededlintjob runs.kokoro/build.sh(JOB_TYPE=lint), which callsgit diff --name-only "${BASE_SHA}...${HEAD_SHA}"to find changed.javafiles. That three-dot diff requires the git merge base, which is why these 8lintjobs setfetch-depth: 0(all other jobs in these workflows use default shallowfetch-depth: 1).fetch-depth: 0downloads the full git history including every historical file blob ever committed in the monorepo, causinglintcheckouts to take 109s to 144s compared to ~25s for shallowfetch-depth: 1jobs.filter: blob:noneperforms a blobless partial clone: Git downloads the complete commit and tree graph (sogit diff --name-only BASE_SHA...HEAD_SHAstill resolves the exact merge base across any branch age) while downloading file blobs only for the checked-outHEADcommit, skipping gigabytes of historical file contents.