Repository navigation
Conversation
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.