-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re-use analyze-weekly
templates
#40253
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR aims to reduce duplication in pipeline definitions by re-using the analyze‑weekly templates.
- Removed the inline weekly stage definition from the standalone template
- Replaced the duplicated stage logic with a template reference in the standalone pipeline
- Added a conditional inclusion of the analyze‑weekly stage in the archetype‑sdk‑tests pipeline
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
File | Description |
---|---|
eng/pipelines/templates/stages/python-analyze-weekly.yml | Minor adjustments to the conditional block for weekly tests |
eng/pipelines/templates/stages/python-analyze-weekly-standalone.yml | Removed extensive inline stage definition and replaced it with a template reference |
eng/pipelines/templates/stages/archetype-sdk-tests.yml | Added conditional logic to include the new analyze‑weekly template |
Comments suppressed due to low confidence (2)
eng/pipelines/templates/stages/python-analyze-weekly-standalone.yml:17
- Ensure that the template invocation includes all required parameters from the removed inline stage definition. Double-check that replacing the inline configuration with a template call does not omit any necessary settings.
- template: /eng/pipelines/templates/stages/python-analyze-weekly.yml
eng/pipelines/templates/stages/archetype-sdk-tests.yml:165
- Verify that the added conditional block is correctly indented within the YAML structure to ensure proper parsing of the pipeline definition.
- ${{ if contains(variables['Build.DefinitionName'], 'tests-weekly') }}:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Reduce duplication by half. FYI @benbp this is in response to your comment on that other PR 👍
EDIT: a run of the new code