Skip to content
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

Merged
merged 1 commit into from
Mar 27, 2025
Merged

Conversation

scbedd
Copy link
Member

@scbedd scbedd commented Mar 27, 2025

Reduce duplication by half. FYI @benbp this is in response to your comment on that other PR 👍

EDIT: a run of the new code

@scbedd scbedd self-assigned this Mar 27, 2025
@Copilot Copilot bot review requested due to automatic review settings March 27, 2025 18:55
@scbedd scbedd requested a review from weshaggard as a code owner March 27, 2025 18:55
@scbedd scbedd requested a review from benbp as a code owner March 27, 2025 18:55
Copy link
Contributor

@Copilot Copilot AI left a 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')  }}:

@scbedd scbedd moved this from 🤔 Triage to 🔬 Dev in PR in Azure SDK EngSys 🥧📅 Mar 27, 2025
Copy link
Member

@benbp benbp left a comment

Choose a reason for hiding this comment

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

Thank you!

@scbedd scbedd merged commit 44be9c3 into Azure:main Mar 27, 2025
23 checks passed
@kurtzeborn kurtzeborn moved this from 🔬 Dev in PR to 🎊 Closed in Azure SDK EngSys 🥧📅 Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants