Skip to content

Run new-SDK validation in the arcade PR build (2/3) - #17078

Merged
mmitche merged 2 commits into
dotnet:mainfrom
mmitche:dev/arcade-validation-removal/pr-build-validation
Jul 7, 2026
Merged

mmitche merged 2 commits into
dotnet:mainfrom
mmitche:dev/arcade-validation-removal/pr-build-validation

Conversation

@mmitche

@mmitche mmitche commented Jul 6, 2026 •

Copy link
Copy Markdown
Member

Part 2 of removing the arcade -> arcade-validation promotion/validation gate (#17046). Builds on #17066.

Runs the ported RepoTests in the PR build, on both Windows and Linux, against the Arcade SDK packages this build just produced.

Approach

The validation tests run inline as the non-Helix unit tests of the existing Test-stage build (cibuild) step. That step now passes /p:RunNonHelixTestsOnly=true instead of /p:Test=false:

  • A contained convention in Directory.Build.targets: when RunNonHelixTestsOnly=true, unit test projects default to SkipTests=true (their inline execution is skipped — they still run on Helix via tests/UnitTests.proj). The validation project opts back in with SkipTests=false.
  • So the Test-stage build runs only the non-Helix unit tests inline (currently just the validation RepoTests). Local build -test behavior is unchanged (the convention only applies when the flag is set).

Why this validates the new SDK

The test project (from #17066) defaults its Arcade SDK version and local package feed to the freshly built $(PackageVersion) / $(ArtifactsNonShippingPackagesDir). Credential-free — no Maestro/darc.

Validated locally: YAML parses; SkipTests evaluates to false for the validation project and true for a Helix-routed test project (e.g. SignTool.Tests) under the flag, and is unaffected without it; the project builds/packs cleanly.

Part of #17046. Official-build wiring follows in part 3.

Copilot AI review requested due to automatic review settings July 6, 2026 21:16

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

This PR wires the in-repo Arcade SDK validation “RepoTests” (ported in #17066) into the PR pipeline by adding an opt-out, queue-time parameter and a new Windows Test-stage step that runs Microsoft.DotNet.Arcade.Validation.Tests against the SDK packages produced by the same build. This supports the broader effort in #17046 to replace the arcade -> arcade-validation promotion/validation gate with in-pipeline validation.

Changes:

  • Add a runNewSdkValidation boolean pipeline parameter (default true) to control whether new-SDK RepoTests run.
  • Add a conditional Windows Test-stage step to run eng\common\build.ps1 -test for Microsoft.DotNet.Arcade.Validation.Tests and emit a dedicated binlog.

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

Comment thread azure-pipelines-pr.yml Resolved
Comment thread azure-pipelines-pr.yml Resolved
ViktorHofer
ViktorHofer previously approved these changes Jul 6, 2026
@mmitche

mmitche commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

Working through changes here. Going to downgrade this to draft first.

@mmitche
mmitche marked this pull request as draft July 6, 2026 21:27
Run the ported Arcade SDK validation tests (src/Microsoft.DotNet.Arcade.Validation.Tests)
as part of the PR pipeline's Test stage, on both Windows and Linux, against the packages
this build just produced. This is the PR-side replacement for the arcade -> arcade-validation
promotion/validation gate.

Rather than a separate Windows-only step, the validation tests run inline as the non-Helix
unit tests of the existing Test-stage build (cibuild) step: the step now passes
RunNonHelixTestsOnly=true instead of Test=false. A new contained convention in
Directory.Build.targets skips the inline execution of the Helix-routed unit tests (they run
on Helix via tests/UnitTests.proj) when RunNonHelixTestsOnly is set, while the validation
project opts back in with SkipTests=false. Local �uild -test behavior is unchanged.

The run is credential-free: the test project defaults its Arcade SDK version and local feed
to the freshly built $(PackageVersion) / $(ArtifactsNonShippingPackagesDir).

Builds on the validation test project added in dotnet#17066.

Co-authored-by: Copilot <[email protected]>
@mmitche
mmitche force-pushed the dev/arcade-validation-removal/pr-build-validation branch from 1aa6dc9 to 349e895 Compare July 6, 2026 21:41
@mmitche

mmitche commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

Updated to address review feedback:

  1. Removed the runNewSdkValidation opt-out parameter.
  2. No longer Windows-only — the validation now runs in both the Windows and Linux Test-stage jobs.
  3. Combined with the existing cibuild step — instead of /p:Test=false, that step now runs the non-Helix unit tests via /p:RunNonHelixTestsOnly=true. A contained Directory.Build.targets convention skips inline execution of the Helix-routed unit tests (they still run on Helix), while the validation project opts in with SkipTests=false. No separate step, no bespoke script.

Verified locally that SkipTests resolves correctly (validation=false, SignTool.Tests=true under the flag, unset without it) and the project still builds.

ViktorHofer
ViktorHofer previously approved these changes Jul 7, 2026
@mmitche
mmitche marked this pull request as ready for review July 7, 2026 16:42
Copilot AI review requested due to automatic review settings July 7, 2026 16:42

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Comment thread Directory.Build.targets Resolved
Enable enablePublishTestResults on the PR Test-stage Windows and Linux jobs so the inline
non-Helix unit test results (including the Arcade SDK validation RepoTests) are uploaded from
artifacts/TestResults via Arcade's built-in PublishTestResults step (condition: always()).
Helix test results continue to be published separately by the Helix Job Monitor.

Co-authored-by: Copilot <[email protected]>
@mmitche

mmitche commented Jul 7, 2026

Copy link
Copy Markdown
Member Author

Added test result upload for the non-Helix tests: set enablePublishTestResults: true on the Test-stage Windows and Linux jobs. This activates Arcade''s built-in PublishTestResults@2 step (in eng/common/.../job/job.yml), which uploads the .trx/.xml results from artifacts/TestResults/$(_BuildConfig) with condition: always(). That folder holds the inline non-Helix results (the Arcade SDK validation RepoTests); Helix results continue to be published by the Helix Job Monitor.

@mmitche
mmitche merged commit 9c97e51 into dotnet:main Jul 7, 2026
10 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview7 milestone Jul 13, 2026
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.

3 participants