Repository navigation
Use global.json SDK for VMR license scan - #8664
Merged
Merged
Conversation
Invoke the license scan tests through eng/common/dotnet.sh so the container acquires the SDK pinned by global.json instead of relying on its system dotnet. Co-authored-by: Copilot App <[email protected]>
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the VMR license scan pipeline stage to run the SourceBuild license-scan test using the SDK pinned by the repo’s global.json, avoiding reliance on the container’s system dotnet (which can be a different preview SDK and cause dotnet test to fail with exit 155).
Changes:
- Switch the
LicenseScanjob’s test invocation fromdotnet testto./eng/common/dotnet.sh testsoInitializeDotNetCliacquires the pinned SDK. - Keep all existing test arguments/properties (including
SkipPrepareSdkArchive) unchanged.
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
ViktorHofer
approved these changes
Aug 26, 2026
Member
|
/backport to release/11.0.1xx |
Member
|
/backport to release/10.0.4xx |
Contributor
|
Started backporting to |
Contributor
|
Started backporting to |
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.
Internal pipeline 1301 build 3055600 repeatedly failed the
LicenseScantasks with Bash exit 155. The shared stage invoked baredotnet testinsideazurelinuxSourceBuildTestContainer, whose systemdotnetdoes not guarantee the preview SDK pinned by the rootglobal.json.Invoke the tests through
./eng/common/dotnet.shsoInitializeDotNetCliacquires the pinned SDK. All existing test arguments, includingSkipPrepareSdkArchive, remain unchanged.This applies the pattern proven by #8063 for the same root cause tracked by dotnet/source-build#5623.
Validation:
git diff --check; confirmed the patch is a one-line command substitution andeng/common/dotnet.shis tracked as executable.