Skip to content

Fix a flaky Helix Job Monitor test - #16882

Merged
premun merged 2 commits into
dotnet:mainfrom
premun:prvysoky/fix-a-flaky-test
May 25, 2026
Merged

premun merged 2 commits into
dotnet:mainfrom
premun:prvysoky/fix-a-flaky-test

Conversation

@premun

@premun premun commented May 25, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings May 25, 2026 09:55

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.

Pull request overview

This PR addresses flakiness in the Helix JobMonitorRunner test suite by making the MonitorTimesOut_CancelsLatestInFlightHelixJobs test wait until the fake AzDO upload has actually completed before triggering cancellation, aligning the test’s timing with the runner’s asynchronous upload behavior.

Changes:

  • Updated the timeout/cancellation test to await FakeAzureDevOpsService.UploadCompleted (with a bounded timeout) before cancelling the monitor run.
  • Removed the immediate cancellation in the injected delay callback to avoid racing the asynchronous upload.

@premun
premun merged commit 8fb9e6a into dotnet:main May 25, 2026
10 checks passed
@premun
premun deleted the prvysoky/fix-a-flaky-test branch May 25, 2026 14:24
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview6 milestone May 27, 2026
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