[Build] Fix Nuget Test Pipeline AAR Testing with ReleaseVersionSuffix#27347
Open
[Build] Fix Nuget Test Pipeline AAR Testing with ReleaseVersionSuffix#27347
Conversation
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
This PR fixes failures in the Android Java API AAR testing stages of the NuGet packaging pipeline.
Background
The Android test stages in
c-api-noopenmp-test-pipelines.ymlwere failing for two reasons:ReleaseVersionSuffix(e.g.,-rc.1) was not being correctly passed between stages, causing bash script errors.VERSION_NUMBERfile, which often mismatched the version used to build the packaged artifact, causingcpfailures.Changes
ReleaseVersionSuffixoutput variable from theSetupstage to theAndroid_Java_API_AAR_Testing_FullandFinal_AAR_Testing_Android_QNNstages.templates/android-java-api-aar-test.ymlto use wildcard matching (*.aar) and select the first available file..aarfile exists in the artifact directory, providing a clear error message and failing early if it's missing.Files Modified
tools/ci_build/github/azure-pipelines/c-api-noopenmp-test-pipelines.yml: Added stage variables forReleaseVersionSuffix.tools/ci_build/github/azure-pipelines/templates/android-java-api-aar-test.yml: Updated AAR copy command with check/wildcard.Testing
$(ReleaseVersionSuffix)resolves correctly in the bash environment.cpcommand correctly finds and rename-copies the AAR even when local version files differ from artifact versions.