ci: use shallow clones in test pipelines to speed up checkout#26193
Closed
tylerbutler wants to merge 1 commit into
Closed
ci: use shallow clones in test pipelines to speed up checkout#26193tylerbutler wants to merge 1 commit into
tylerbutler wants to merge 1 commit into
Conversation
…ckout Add fetchDepth settings to checkout steps in pipelines that don't require git history or version detection. This reduces checkout time and network bandwidth for test and policy check pipelines. - repo-policy-check.yml: fetchDepth: 1 (only needs current file state) - include-conditionally-run-stress-tests.yml: fetchDepth: 2 (uses git diff HEAD~1) - include-test-perf-benchmarks.yml: fetchDepth: 1 (runs pre-built test artifacts) - include-test-real-service.yml: fetchDepth: 1 (runs pre-built test artifacts) Build pipelines that use flub generate buildVersion are intentionally unchanged since they require full git tag history for version detection.
tylerbutler
commented
Jan 13, 2026
Comment on lines
+67
to
+69
| - checkout: self | ||
| clean: true | ||
| fetchDepth: 1 |
Contributor
|
This PR has been automatically marked as stale because it has had no activity for 60 days. It will be closed if no further activity occurs within 8 days of this comment. Thank you for your contributions to Fluid Framework! |
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
Adds
fetchDepthsettings to checkout steps in ADO pipelines that don't require git history or version detection. This reduces checkout time and network bandwidth.Changes:
repo-policy-check.yml: Add explicit checkout withfetchDepth: 1(only needs current file state for policy checks)include-conditionally-run-stress-tests.yml: Add checkout withfetchDepth: 2(usesgit diff HEAD~1to detect changed packages)include-test-perf-benchmarks.yml: AddfetchDepth: 1toff_pipeline_hostcheckout (runs pre-built test artifacts)include-test-real-service.yml: AddfetchDepth: 1to bothff_pipeline_hostandselfcheckouts (runs pre-built test artifacts)Not changed: Build pipelines that use
flub generate buildVersionare intentionally unchanged since they require full git tag history for version detection.