Skip to content

Commit e9efd01

Browse files
kubafloCopilot
andcommitted
[net11.0] Use Helix job monitor for unit tests
Move Helix completion and test-result publication into the standalone job monitor so transient Azure DevOps reporting failures do not deadletter otherwise passing work items. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent bedd1b1 commit e9efd01

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

.config/dotnet-tools.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@
1616
],
1717
"rollForward": false
1818
},
19+
"microsoft.dotnet.helix.jobmonitor": {
20+
"version": "11.0.0-beta.26379.102",
21+
"commands": [
22+
"dotnet-helix-job-monitor"
23+
],
24+
"rollForward": false
25+
},
1926
"api-tools": {
2027
"version": "1.3.5",
2128
"commands": [

eng/pipelines/arcade/stage-helix-tests.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,15 @@ stages:
9191
DOTNET_TOKEN: $(dotnetbuilds-internal-container-read-token)
9292
PRIVATE_BUILD: $(PrivateBuild)
9393

94-
- script: $(_msbuildCommand) "${{ parameters.helixProject }}" -warnAsError 0 -restore /p:Configuration=${{ BuildConfiguration }} /p:HelixInternal="${{ parameters.helixInternal }}" /p:TestRunNameSuffix="_${{ BuildConfiguration }}" /p:SkipInitInternalTooling=true /bl:$(Build.Arcade.LogsPath)${{ BuildConfiguration }}/helix_tests.binlog ${{ parameters.extraHelixArguments }}
94+
- script: $(_msbuildCommand) "${{ parameters.helixProject }}" -warnAsError 0 -restore /p:Configuration=${{ BuildConfiguration }} /p:EnableHelixJobMonitor=true /p:HelixInternal="${{ parameters.helixInternal }}" /p:TestRunNameSuffix="_${{ BuildConfiguration }}" /p:SkipInitInternalTooling=true /bl:$(Build.Arcade.LogsPath)${{ BuildConfiguration }}/helix_tests.binlog ${{ parameters.extraHelixArguments }}
9595
displayName: Run Helix Tests
9696
env:
97-
SYSTEM_ACCESSTOKEN: $(System.AccessToken) # We need to set this env var to publish helix results to Azure Dev Ops
97+
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
9898
HelixAccessToken: ${{ parameters.HelixAccessToken }}
99-
99+
100+
- template: /eng/common/core-templates/job/helix-job-monitor.yml
101+
parameters:
102+
timeoutInMinutes: 360
103+
organization: dotnet
104+
repository: maui
105+
helixAccessToken: ${{ parameters.HelixAccessToken }}

0 commit comments

Comments
 (0)