Skip to content

Updated artifactJson input to artifacts input for set-test-pipeline-version pipeline#13267

Merged
raych1 merged 5 commits intomainfrom
user/raych1/set-test-pipeline-version-change
Dec 9, 2025
Merged

Updated artifactJson input to artifacts input for set-test-pipeline-version pipeline#13267
raych1 merged 5 commits intomainfrom
user/raych1/set-test-pipeline-version-change

Conversation

@raych1
Copy link
Member

@raych1 raych1 commented Dec 8, 2025

To allow iterating artifact array and filter on the value in the callers.

Copilot AI review requested due to automatic review settings December 8, 2025 23:32
@raych1 raych1 requested a review from a team as a code owner December 8, 2025 23:32
@raych1 raych1 self-assigned this Dec 8, 2025
@raych1 raych1 requested a review from weshaggard December 8, 2025 23:33
@raych1 raych1 moved this from 🤔 Triage to 🔬 Dev in PR in Azure SDK EngSys 📆🎇 Dec 8, 2025
Copy link
Contributor

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 test pipeline version setting mechanism by replacing a JSON string parameter with a structured array of artifact objects, enabling callers to iterate and filter artifacts more effectively.

  • Replaces ArtifactsJson string parameter with Artifacts object array for better type safety and usability
  • Adds comprehensive validation for artifact properties (name, groupId for Java, ServiceDirectory)
  • Enables per-artifact ServiceDirectory configuration while maintaining backward compatibility with the PackageNames parameter

Reviewed changes

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

File Description
eng/common/scripts/SetTestPipelineVersion.ps1 Refactored to accept structured artifact objects instead of JSON string, added property validation, and support for per-artifact ServiceDirectory
eng/common/pipelines/templates/steps/set-test-pipeline-version.yml Updated parameter type from string to object and adjusted the parameter passing to use convertToJson for the new Artifacts array

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

azure-sdk added a commit to Azure/azure-sdk-for-js that referenced this pull request Dec 9, 2025
Sync eng/common directory with azure-sdk-tools for PR
Azure/azure-sdk-tools#13267 See [eng/common
workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow)

---------

Co-authored-by: ray chen <raychen@microsoft.com>
azure-sdk added a commit to Azure/azure-sdk-for-rust that referenced this pull request Dec 9, 2025
Sync eng/common directory with azure-sdk-tools for PR
Azure/azure-sdk-tools#13267 See [eng/common
workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow)

---------

Co-authored-by: ray chen <raychen@microsoft.com>
@raych1 raych1 merged commit 72efe36 into main Dec 9, 2025
10 checks passed
@raych1 raych1 deleted the user/raych1/set-test-pipeline-version-change branch December 9, 2025 01:45
@raych1 raych1 changed the title Updated artifactJson input to artifacts input Updated artifactJson input to artifacts input for set-test-pipeline-version pipeline Dec 9, 2025
@kurtzeborn kurtzeborn moved this from 🔬 Dev in PR to 🎊 Closed in Azure SDK EngSys 📆🎇 Dec 9, 2025
@raych1 raych1 linked an issue Dec 9, 2025 that may be closed by this pull request
JiaqiZhang-Dev pushed a commit that referenced this pull request Dec 22, 2025
* Updated artifactJson input to artifacts input

* Prioritized service directory from artifact object over the parameter input

* Returned error when service directory is not provided for the old usage

* Removed redudant line

* Initilized the variable in a loop
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.

Support template-v2 projects testing in all the pipelines

3 participants