Skip to content

ci: use shallow clones in test pipelines to speed up checkout#26193

Closed
tylerbutler wants to merge 1 commit into
microsoft:mainfrom
tylerbutler:shallow-clone-pipelines
Closed

ci: use shallow clones in test pipelines to speed up checkout#26193
tylerbutler wants to merge 1 commit into
microsoft:mainfrom
tylerbutler:shallow-clone-pipelines

Conversation

@tylerbutler
Copy link
Copy Markdown
Member

Summary

Adds fetchDepth settings 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 with fetchDepth: 1 (only needs current file state for policy checks)
  • include-conditionally-run-stress-tests.yml: Add checkout with fetchDepth: 2 (uses git diff HEAD~1 to detect changed packages)
  • include-test-perf-benchmarks.yml: Add fetchDepth: 1 to ff_pipeline_host checkout (runs pre-built test artifacts)
  • include-test-real-service.yml: Add fetchDepth: 1 to both ff_pipeline_host and self checkouts (runs pre-built test artifacts)

Not changed: Build pipelines that use flub generate buildVersion are intentionally unchanged since they require full git tag history for version detection.

…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 tylerbutler changed the title perf(pipelines): use shallow clones in test pipelines to speed up checkout ci: use shallow clones in test pipelines to speed up checkout Jan 13, 2026
Comment on lines +67 to +69
- checkout: self
clean: true
fetchDepth: 1
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skip tags too.

@microsoft-github-policy-service
Copy link
Copy Markdown
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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant