Skip to content

Conversation

@julien-lang
Copy link
Member

@julien-lang julien-lang commented Dec 12, 2025

Simplify the os_version/python_version combination for calling the test template.

No longer use a matrix strategy because only work with one dimension.
Define and use parameter for each version dimension and use the each operator for looping over both parameters.

Replicated changes on multiple repositories

@julien-lang julien-lang changed the title Tests SG-40980 Simplify Azure Pipeline CI pipeline Dec 12, 2025
@julien-lang julien-lang requested a review from Copilot December 16, 2025 19:15
Copy link

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 refactors the Azure Pipeline CI configuration to simplify test execution across multiple OS and Python version combinations. The changes replace a repetitive, manually-defined job structure with a more maintainable loop-based approach using Azure DevOps' each operator.

Key Changes:

  • Introduced parameterized VFX Reference Platform versions (CY2022-2024) with associated Python and Qt wrapper configurations
  • Consolidated OS version definitions into a single parameter with VM image mappings
  • Replaced 9 individual job template invocations with nested loops that dynamically generate test jobs

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
internal/run-tests.yml Refactored from explicit job definitions to parameterized loops using VFX platform and OS version parameters
internal/run-tests-with.yml Updated default parameter values and simplified job display name to accommodate dynamic generation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

image_name: ""
# Name of the Qt wrapper to pip install. Should be PySide or PySide2
qt_wrapper: PySide2==5.15.2.1
qt_wrapper: ''
Copy link

Copilot AI Dec 16, 2025

Choose a reason for hiding this comment

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

Changing the default value from 'PySide2==5.15.2.1' to an empty string could break existing callers that don't explicitly pass qt_wrapper. Consider keeping the original default or documenting that this parameter is now required.

Copilot uses AI. Check for mistakes.
Copy link
Member Author

Choose a reason for hiding this comment

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

Invalid. I control who calls internal/run-tests-with.yml. It's only in this repository.

qt_wrapper: ''
# Python version to use.
python_version: 3.7
python_version: ''
Copy link

Copilot AI Dec 16, 2025

Choose a reason for hiding this comment

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

Changing the default value from '3.7' to an empty string could break existing callers that don't explicitly pass python_version. Consider keeping the original default or documenting that this parameter is now required.

Copilot uses AI. Check for mistakes.
Copy link
Member Author

Choose a reason for hiding this comment

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

Invalid. I control who calls internal/run-tests-with.yml. It's only in this repository.

@julien-lang julien-lang requested a review from a team December 16, 2025 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants