Sync eng/common directory with azure-sdk-tools for PR 16644 - #50034
Open
azure-sdk-automation[bot] wants to merge 2 commits into
Open
Sync eng/common directory with azure-sdk-tools for PR 16644#50034azure-sdk-automation[bot] wants to merge 2 commits into
azure-sdk-automation[bot] wants to merge 2 commits into
Conversation
The regeneration jobs do not read repository history. Fetch only the checked-out commit and skip tags to reduce checkout time and aggregate agent consumption. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot could not run the full agentic suite for this review because it was automatically requested on a bot-authored pull request. Request a review from Copilot under Reviewers to retry with the full agentic suite. Improved support for bot-authored pull requests is coming soon.
This PR updates the Azure Pipelines archetype for the TypeSpec emitter to use shallow checkouts (and skip tags) to reduce fetch time and avoid unnecessary repository history during regeneration.
Changes:
- Configure
checkout: selfto usefetchDepth: 1in the Initialize job. - Configure
checkout: selfto usefetchDepth: 1in the emitter job. - Disable tag fetching during checkout (
fetchTags: false).
Comment on lines
+306
to
+311
| # Regeneration does not read repository history, so fetch only the | ||
| # checked-out commit. git-branch-push.ps1's retry path diffs the branch | ||
| # tip against its parent, which stays inside the depth-1 boundary. | ||
| - checkout: self | ||
| fetchDepth: 1 | ||
| fetchTags: false |
Comment on lines
406
to
+408
| - checkout: self | ||
| fetchDepth: 1 | ||
| fetchTags: false |
|
Azure Pipelines: Successfully started running 1 pipeline(s). 34 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
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.
Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#16644 See eng/common workflow