ci: persist credentials in checkout to fix intermittent auth failures#3646
Open
Alexandr-Solovev wants to merge 1 commit into
Open
ci: persist credentials in checkout to fix intermittent auth failures#3646Alexandr-Solovev wants to merge 1 commit into
Alexandr-Solovev wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds explicit checkout: self steps with fetchTags: false and persistCredentials: true to nine Azure DevOps jobs in .ci/pipeline/ci.yml and to the .ci/pipeline/docs.yml pipeline. The stated goal is to make the implicit self-checkout explicit, skip unnecessary tag fetches, and persist credentials for follow-up Git operations.
Changes:
- Add explicit checkout block (
self, no tags, persist credentials) to 9 jobs in the main CI pipeline. - Add the same checkout block to the docs build pipeline.
- The two
sklearnexjobs are intentionally left withcheckout: noneand manual clones.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
.ci/pipeline/ci.yml |
Adds explicit checkout step (self / no tags / persist credentials) at the start of 9 jobs. |
.ci/pipeline/docs.yml |
Adds the same explicit checkout step to the documentation pipeline. |
| steps: | ||
| - checkout: self | ||
| fetchTags: false | ||
| persistCredentials: true |
| steps: | ||
| - checkout: self | ||
| fetchTags: false | ||
| persistCredentials: true |
Contributor
|
@Alexandr-Solovev Looks like it's still fetching all branches: |
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.

Description
Updated the CI/CD workflow configuration for the job by explicitly configuring the
checkoutstep parameters.The following settings were added to optimize the repository checkout process:
self: Ensures the pipeline checks out the current repository.fetchTags: false: Disables fetching all tags, which helps speed up the checkout process and saves bandwidth.persistCredentials: true: Ensures that the credentials used during the checkout are persisted, allowing subsequent steps to perform Git operations (e.g., pushing changes or fetching dependencies) without re-authentication.Changes
checkout: selffetchTags: falsepersistCredentials: trueto the job definition.Checklist:
Completeness and readability
Testing
Performance