Skip to content

[tests] Fix ApplicationRunsWithDebuggerAndBreaks flakiness - #11398

Merged
jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers/flaky-debugger-attach-inconclusive
May 19, 2026
Merged

jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers/flaky-debugger-attach-inconclusive

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

The timeout TimeSpan variable in ApplicationRunsWithDebuggerAndBreaks is shared between two consecutive wait loops. The first loop (wait for initial breakpoints to be hit) decrements it; the second loop (wait for the post-button-click breakpoint) then starts with whatever time is left, which on a slow CI machine can be near zero — causing a spurious assertion failure.

Reset timeout to 60 seconds before the second loop so each phase has a full budget.

Addresses #11320.

The `timeout` TimeSpan is shared between two consecutive wait loops.
The first loop (wait for initial breakpoints) decrements it; the
second loop (wait for the post-button-click breakpoint) then starts
with whatever time is left, which on a slow CI machine can be near
zero. Reset timeout to 60 seconds before the second loop so each
phase has a full budget.

Addresses #11320.

Co-authored-by: Copilot <[email protected]>
Copilot AI review requested due to automatic review settings May 18, 2026 21:23

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 fixes a source of flakiness in the ApplicationRunsWithDebuggerAndBreaks device integration test by ensuring each of two sequential “wait for breakpoint” phases gets its own full timeout budget, instead of sharing a decremented TimeSpan.

Changes:

  • Reset timeout to 60 seconds immediately before the second wait loop (post-button-click breakpoint wait).

@jonathanpeppers jonathanpeppers added the ready-to-review This PR is ready to review/merge, I think any CI failures are just flaky (ignorable). label May 19, 2026
@jonathanpeppers
jonathanpeppers merged commit 61731c0 into main May 19, 2026
6 of 7 checks passed
@jonathanpeppers
jonathanpeppers deleted the jonathanpeppers/flaky-debugger-attach-inconclusive branch May 19, 2026 21:25
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

ready-to-review This PR is ready to review/merge, I think any CI failures are just flaky (ignorable).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants