Skip to content

[tests] Fix ApplicationRunsWithDebuggerAndBreaks flakiness#11398

Open
jonathanpeppers wants to merge 1 commit into
mainfrom
jonathanpeppers/flaky-debugger-attach-inconclusive
Open

[tests] Fix ApplicationRunsWithDebuggerAndBreaks flakiness#11398
jonathanpeppers wants to merge 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
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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).

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.

2 participants