Skip to content

Use global.json SDK for VMR license scan - #8664

Merged
ViktorHofer merged 1 commit into
mainfrom
dsplaisted-fix-main-license-scan-sdk
Aug 26, 2026
Merged

ViktorHofer merged 1 commit into
mainfrom
dsplaisted-fix-main-license-scan-sdk

Conversation

@dsplaisted

Copy link
Copy Markdown
Member

Internal pipeline 1301 build 3055600 repeatedly failed the LicenseScan tasks with Bash exit 155. The shared stage invoked bare dotnet test inside azurelinuxSourceBuildTestContainer, whose system dotnet does not guarantee the preview SDK pinned by the root global.json.

Invoke the tests through ./eng/common/dotnet.sh so InitializeDotNetCli acquires the pinned SDK. All existing test arguments, including SkipPrepareSdkArchive, 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 and eng/common/dotnet.sh is tracked as executable.

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]>
Copilot AI lite review requested due to automatic review settings August 26, 2026 00:32
@dsplaisted
dsplaisted requested review from a team as code owners August 26, 2026 00:32
@azure-pipelines

Copy link
Copy Markdown
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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 LicenseScan job’s test invocation from dotnet test to ./eng/common/dotnet.sh test so InitializeDotNetCli acquires 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
ViktorHofer merged commit 0c2a668 into main Aug 26, 2026
12 checks passed
@ViktorHofer
ViktorHofer deleted the dsplaisted-fix-main-license-scan-sdk branch August 26, 2026 06:30
@akoeplinger

Copy link
Copy Markdown
Member

/backport to release/11.0.1xx

@akoeplinger

Copy link
Copy Markdown
Member

/backport to release/10.0.4xx

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/10.0.4xx (link to workflow run)

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/11.0.1xx (link to workflow run)

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.

4 participants