Repository navigation
Conversation
There was a problem hiding this comment.
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
runNewSdkValidationboolean pipeline parameter (defaulttrue) to control whether new-SDK RepoTests run. - Add a conditional Windows Test-stage step to run
eng\common\build.ps1 -testforMicrosoft.DotNet.Arcade.Validation.Testsand emit a dedicated binlog.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Working through changes here. Going to downgrade this to draft first. |
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]>
1aa6dc9 to
349e895
Compare
|
Updated to address review feedback:
Verified locally that |
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]>
|
Added test result upload for the non-Helix tests: set |
Part 2 of removing the
arcade -> arcade-validationpromotion/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=trueinstead of/p:Test=false:Directory.Build.targets: whenRunNonHelixTestsOnly=true, unit test projects default toSkipTests=true(their inline execution is skipped — they still run on Helix viatests/UnitTests.proj). The validation project opts back in withSkipTests=false.build -testbehavior 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;
SkipTestsevaluates tofalsefor the validation project andtruefor 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.