Skip to content

Harden EventPipe stop-capture tests against writer wakeups. - #137622

Merged
lateralusX merged 1 commit into
dotnet:mainfrom
lateralusX:lateralusX/harden-eventpipe-stop-capture-tests
Nov 16, 2026
Merged

lateralusX merged 1 commit into
dotnet:mainfrom
lateralusX:lateralusX/harden-eventpipe-stop-capture-tests

Conversation

@lateralusX

Copy link
Copy Markdown
Member

A capacity signal issued before the reader reaches its gate can wake the writer while capture completes. The writer then republishes WRITE_BUFFER_IN_USE, making the exact session-use-state assertion fail even though capture completed correctly and the reader remains gated.

Remove that transient-state assertion while retaining checks that capture completes with its marker, the writer remains unfinished, and the other session is not aborted. Continue verifying that all writes and teardown complete after releasing the reader.

Add pre-stop state checks and phase-specific failure messages to make future failures easier to diagnose.

Fixes #137316

A capacity signal issued before the reader reaches its gate can wake the
writer while capture completes. The writer then republishes
WRITE_BUFFER_IN_USE, making the exact session-use-state assertion fail
even though capture completed correctly and the reader remains gated.

Remove that transient-state assertion while retaining checks that capture
completes with its marker, the writer remains unfinished, and the other
session is not aborted. Continue verifying that all writes and teardown
complete after releasing the reader.

Add pre-stop state checks and phase-specific failure messages to make
future failures easier to diagnose.
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

@lateralusX
lateralusX merged commit 764c6fd into dotnet:main Nov 16, 2026
75 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Test failure: test_stop_capture_state_does_not_block_on_other_session

2 participants