Skip to content

feat: More detailled exception message for users - #1955

Open
linkdotnet wants to merge 1 commit into
mainfrom
fix/wait-for-better-messages
Open

linkdotnet wants to merge 1 commit into
mainfrom
fix/wait-for-better-messages

Conversation

@linkdotnet

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI balanced review requested due to automatic review settings October 23, 2026 13:00
@linkdotnet
linkdotnet force-pushed the fix/wait-for-better-messages branch from f170c28 to 32881e4 Compare October 23, 2026 13:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The sequence documentation materially misrepresents the implemented timeout behavior and claims fixes that are not present.

No open issues 🎉

What changed in this PR

This PR improves bUnit’s wait-timeout diagnostics by distinguishing checks that never started from checks that started but did not complete.

Changes:

  • Adds targeted timeout explanations and troubleshooting guidance.
  • Adds regression tests and raises the test assembly’s minimum worker-thread count.
  • Includes a sequence-diagram specification and generation receipts.
File Description
tests/​bunit.tests/​Extensions/​WaitForHelpers/​RenderedComponentWaitForHelperExtensions.cs Tests the new timeout diagnostics.
tests/​bunit.tests/​Assembly.cs Raises minimum worker threads to reduce test starvation.
src/​bunit/​Extensions/​WaitForHelpers/​WaitForHelper.cs Tracks check startup and selects timeout details.
src/​bunit/​Extensions/​WaitForHelpers/​WaitForFailedException.cs Defines diagnostic messages and troubleshooting guidance.
.archify/​sequence-waitfor-races-20261023-140532/​waitfor-races.finalize.json Records diagram validation and generation results.
.archify/​sequence-waitfor-races-20261023-140532/​waitfor-races.finalize-summary.json Summarizes diagram validation results.
.archify/​sequence-waitfor-races-20261023-140532/​waitfor-races.delivery.json Records diagram provenance and hashes.
.archify/​sequence-waitfor-races-20261023-140532/​waitfor-races.browser-check.json Records diagram browser checks.
.archify/​sequence-waitfor-races-20261023-140532/​candidate.json Defines the wait-helper sequence diagram.

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 23, 2026 13:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Concurrent count reads can produce contradictory timeout diagnostics when the first check finishes near the timeout boundary.

1 open issue

Review effort: Balanced

Comment thread src/bunit/Extensions/WaitForHelpers/WaitForHelper.cs Outdated
@linkdotnet
linkdotnet force-pushed the fix/wait-for-better-messages branch from 32881e4 to d4f5483 Compare October 23, 2026 13:52
Copilot AI balanced review requested due to automatic review settings October 23, 2026 13:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

Static review found no blocking issues, and focused regression tests cover the new diagnostics; tests were not executed.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@linkdotnet
linkdotnet force-pushed the fix/wait-for-better-messages branch from d4f5483 to 13e32f9 Compare October 23, 2026 17:02
Copilot AI balanced review requested due to automatic review settings October 23, 2026 17:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

Static review found no blocking issues in the focused diagnostic changes or regression coverage; builds and tests were not run.

No open issues 🎉

Review effort: Balanced

This branch has not been deployed

No deployments
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