JobMonitor: route warnings/errors through AzDO timeline issue logging and remove log emojis#16952
Conversation
|
@mmitche, I think we should maybe remove the emojis? It's red enough:
|
|
@copilot resolve the merge conflicts in this pull request |
Resolved by merging latest |
|
@copilot resolve the merge conflicts in this pull request |
Resolved by merging latest |
|
@copilot can you remove the emojis like ❌ from the log statements in the job monitor? Also make sure tests still pass |
This reverts commit 50bfbe6.
|
@copilot can you remove the ❌ emojis from the error/warning log statements in the job monitor? Also make sure tests still pass |
This reverts commit 0879cfb.
Done in commit |
There was a problem hiding this comment.
Pull request overview
Standardizes JobMonitor warning/error logging so failures surface as Azure DevOps timeline issues via ##vso[task.logissue ...], and updates tests to assert the new prefixes on key failure paths.
Changes:
- Add centralized AzDO warning/error prefix helpers in
JobMonitorRunnerand route multiple failure paths through them. - Update
Programto emit unhandled exceptions via an AzDO-prefixed error helper. - Update
JobMonitorRunnerTestsassertions to expect the new warning/error prefixes on timeout and failed work-item logs.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/Microsoft.DotNet.Helix/Sdk.Tests/Microsoft.DotNet.Helix.Sdk.Tests/JobMonitorRunnerTests.cs | Updates assertions to expect AzDO task.logissue prefixes on timeout and failure logs. |
| src/Microsoft.DotNet.Helix/JobMonitor/Program.cs | Routes unhandled exception logging through an AzDO-prefixed error helper. |
| src/Microsoft.DotNet.Helix/JobMonitor/JobMonitorRunner.cs | Introduces AzDO warning/error helpers and uses them in failure/timeout/cancellation-related logging paths. |
This reverts commit 2f142c9.


JobMonitor failures were not consistently emitted in a timeline-ingestible format, so key work item failure details could be missed in AzDO build timeline diagnostics. This change standardizes warning/error emission through prefixed logger helpers and applies it to failure-critical monitor paths.
AzDO issue-prefix logging helpers
JobMonitorRunnerthat prepend:##vso[task.logissue type=warning]##vso[task.logissue type=error]Programfor unhandled monitor exceptions.Failure paths now emit timeline issues
Emoji cleanup for JobMonitor logs
❌) from JobMonitor log statements to reduce visual noise; AzDO timeline coloring and##[warning]/##[error]rendering already provide sufficient visual prominence.Focused test updates
JobMonitorRunnerTestsassertions to verify warning/error prefixes are present for failed work-item and timeout/error logs../eng/common/dotnet.sh test src/Microsoft.DotNet.Helix/Sdk.Tests/Microsoft.DotNet.Helix.Sdk.Tests/Microsoft.DotNet.Helix.Sdk.Tests.csproj --filter FullyQualifiedName~JobMonitorRunnerTests(47/47 passing).To double check: