terminal/build/Helix
Michael Niksa 817f598e20
Move PGO Helix pools (#11028)
Moves PGO runs to supported Helix pools. We need to match Microsoft-UI-XAML on which Helix pools we used for each type of activities.

## PR Checklist
* [x] Closes #10850
* [x] I work here
* [x] If it builds, it sits.

## Validation Steps Performed
* [x] Run PGO build against this branch
2021-08-25 22:58:06 +00:00
..
AzurePipelinesHelperScripts.ps1 Implement PGO in pipelines for AMD64 architecture; supply training test scenarios (#10071) 2021-05-13 21:12:30 +00:00
ConvertWttLogToXUnit.ps1 Helix Testing (#6992) 2020-08-18 18:23:24 +00:00
EnsureMachineState.ps1 Helix Testing (#6992) 2020-08-18 18:23:24 +00:00
GenerateTestProjFile.ps1 Helix Testing (#6992) 2020-08-18 18:23:24 +00:00
HelixTestHelpers.cs Helix Testing (#6992) 2020-08-18 18:23:24 +00:00
InstallTestAppDependencies.ps1 Helix Testing (#6992) 2020-08-18 18:23:24 +00:00
OutputFailedTestQuery.ps1 Helix Testing (#6992) 2020-08-18 18:23:24 +00:00
OutputSubResultsJsonFiles.ps1 Helix Testing (#6992) 2020-08-18 18:23:24 +00:00
OutputTestResults.ps1 Move PGO Helix pools (#11028) 2021-08-25 22:58:06 +00:00
PrepareHelixPayload.ps1 Enable /Zc:preprocessor (#10593) 2021-07-13 23:00:11 +00:00
ProcessHelixFiles.ps1 Move PGO Helix pools (#11028) 2021-08-25 22:58:06 +00:00
RunTestsInHelix.proj Implement PGO in pipelines for AMD64 architecture; supply training test scenarios (#10071) 2021-05-13 21:12:30 +00:00
UpdateUnreliableTests.ps1 Move PGO Helix pools (#11028) 2021-08-25 22:58:06 +00:00
global.json Helix Testing (#6992) 2020-08-18 18:23:24 +00:00
packages.config Enable /Zc:preprocessor (#10593) 2021-07-13 23:00:11 +00:00
readme.md Helix Testing (#6992) 2020-08-18 18:23:24 +00:00
runtests.cmd Implement PGO in pipelines for AMD64 architecture; supply training test scenarios (#10071) 2021-05-13 21:12:30 +00:00

readme.md

This directory contains code and configuration files to run WinUI tests in Helix.

Helix is a cloud hosted test execution environment which is accessed via the Arcade SDK. More details:

WinUI tests are scheduled in Helix by the Azure DevOps Pipeline: RunHelixTests.yml.

The workflow is as follows:

  1. NuGet Restore is called on the packages.config in this directory. This downloads any runtime dependencies that are needed to run tests.
  2. PrepareHelixPayload.ps1 is called. This copies the necessary files from various locations into a Helix payload directory. This directory is what will get sent to the Helix machines.
  3. RunTestsInHelix.proj is executed. This proj has a dependency on Microsoft.DotNet.Helix.Sdk which it uses to publish the Helix payload directory and to schedule the Helix Work Items. The WinUI tests are parallelized into multiple Helix Work Items.
  4. Each Helix Work Item calls runtests.cmd with a specific query to pass to TAEF which runs the tests.
  5. If a test is detected to have failed, we run it again, first once, then eight more times if it fails again. If it fails all ten times, we report the test as failed; otherwise, we report it as unreliable, which will show up as a warning, but which will not fail the build. When a test is reported as unreliable, we include the results for each individual run via a JSON string in the original test's errorMessage field.
  6. TAEF produces logs in WTT format. Helix is able to process logs in XUnit format. We run ConvertWttLogToXUnit.ps1 to convert the logs into the necessary format.
  7. RunTestsInHelix.proj has EnableAzurePipelinesReporter set to true. This allows the XUnit formatted test results to be reported back to the Azure DevOps Pipeline.
  8. We process unreliable tests once all tests have been reported by reading the JSON string from the errorMessage field and calling the Azure DevOps REST API to modify the unreliable tests to have sub-results added to the test and to mark the test as "warning", which will enable people to see exactly how the test failed in runs where it did.