Skip to content

Include Helix console links when only tests fail - #17610

Merged
premun merged 1 commit into
dotnet:mainfrom
premun:fix/helix-test-failure-console-links
Sep 22, 2026
Merged

premun merged 1 commit into
dotnet:mainfrom
premun:fix/helix-test-failure-console-links

Conversation

@premun

@premun premun commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Include the work-item console URI in the final failure summary when Helix exits successfully but its tests fail, retaining the Failed (AzDO tests) label.
  • Handle either arrival order of test results and Helix outcomes, with the existing fallback when no console URI is available.
  • Add six regression cases and extend the monitor runner test to verify the logged summary.

Copilot AI lite review requested due to automatic review settings September 22, 2026 11:58
@premun
premun requested a review from mmitche September 22, 2026 11:59

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.

Copilot review overview

🟢 Approval recommended

No unresolved issues were identified that would block approval.

Review effort: Lite
Findings: None

What changed in this PR

Updates Helix failure aggregation to include console links for test-only failures, regardless of result arrival order.

Changes:

  • Stores work-item console URIs for later test-result reconciliation.
  • Preserves the Failed (AzDO tests) state and fallback behavior.
  • Adds regression coverage for six ordering/link scenarios and final logging.
File Description
src/​Microsoft.DotNet.Helix/​Sdk.Tests/​Microsoft.DotNet.Helix.Sdk.Tests/​JobMonitorRunnerTests.cs Updated as part of this pull request.
src/​Microsoft.DotNet.Helix/​JobMonitor/​MonitorState.cs Updated as part of this pull request.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@premun
premun merged commit 4770a8b into dotnet:main Sep 22, 2026
12 checks passed
@premun
premun deleted the fix/helix-test-failure-console-links branch September 22, 2026 14:12
@premun

premun commented Sep 22, 2026

Copy link
Copy Markdown
Member Author

/backport to release/10.0

@premun

premun commented Sep 22, 2026

Copy link
Copy Markdown
Member Author

/backport to release/11.0

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/10.0 (link to workflow run)

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/11.0 (link to workflow run)

if (!_failedWorkItemConsoleInfo.ContainsKey(key))
{
_workItemConsoleOutputUris.TryGetValue(entry.Key, out string consoleOutputUri);
_failedWorkItemConsoleInfo[key] = new FailedWorkItemConsoleInfo(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: This is no longer just failed work items, consider renaming to match purpose.

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.

4 participants