Skip to content

JobMonitor: Fix more flaky tests - #16957

Merged
premun merged 1 commit into
dotnet:mainfrom
premun:jobmonitor/flaky-tests
Jun 3, 2026
Merged

premun merged 1 commit into
dotnet:mainfrom
premun:jobmonitor/flaky-tests

Conversation

@premun

@premun premun commented Jun 3, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings June 3, 2026 09:52

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 reduces flakiness in JobMonitorRunnerTests by ensuring test-triggered cancellation doesn’t interrupt in-flight Azure DevOps result uploads, making the timeout/relaunch scenarios more deterministic.

Changes:

  • Updates timeout simulation to wait for FakeAzureDevOpsService.UploadCompleted before cancelling in two relaunch-related tests.
  • Adjusts the injected delay callback to be async to support awaiting upload completion.

@premun
premun enabled auto-merge (squash) June 3, 2026 09:55
@premun
premun disabled auto-merge June 3, 2026 10:06
@premun
premun merged commit 38f680a into dotnet:main Jun 3, 2026
5 of 10 checks passed
@premun
premun deleted the jobmonitor/flaky-tests branch June 3, 2026 10:06
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview6 milestone Jun 4, 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.

3 participants