Repository navigation
testing: the reaper test reads the reaper's stderr through a pipe - #14829
Merged
Merged
Conversation
Collaborator
Author
|
/evidence platforms=["windows_x86_64"] task=test scope=//tools/testing/nested/... |
Contributor
|
Evidence started on |
On Windows, ReadDirectoryChangesW reports a size or last-write change only once the cached write reaches the disk, so appending the waiting line to reaper.log through the reaper's open handle raised no notify event and the_reaper_stops_servers_after_the_owner_is_killed timed out after 30s. spawn_reaper now takes the reaper's stderr; the server keeps logging to reaper.log, and the tests pipe it and block on the waiting line, which a read returns as soon as the reaper writes it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hyBydsMejdwk6QdKus
Collaborator
Author
|
/evidence platforms=["windows_x86_64"] task=test scope=//tools/testing/nested/... |
TrapsterDK
force-pushed
the
fix-reaper-windows
branch
from
November 24, 2026 10:11
747a1dc to
ae4f6fd
Compare
Contributor
|
Evidence started on |
TrapsterDK
added a commit
that referenced
this pull request
Nov 24, 2026
…#14830) #14829 merged before its Windows evidence finished. dx_nested_test_upstream fails to compile there: drop(waiting.try_send(())) trips dropping_copy_types under -D warnings, since the Result is Copy. Claude-Session: https://claude.ai/code/session_01Xut2hyBydsMejdwk6QdKus Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
portable_tests::the_reaper_stops_servers_after_the_owner_is_killedfailed on Windows (evidence run 45370306679) withthe reaper waiting did not happen within 30s.Root cause: #14818 waits for the reaper's "waiting for owner" line with
watch_untilonreaper.log, which uses notify. On Windows, ReadDirectoryChangesW reports a size or last-write change only after the cached write reaches the disk. The reaper appends that line through a handle it already holds open, so no event arrives and the wait times out even though the line is in the file.Fix:
spawn_reapernow takes the reaper's stderr.Server::acquirestill passesreaper.log. The tests pass a pipe, and a reader thread blocks on it and signals when the waiting line shows up. It keeps draining the pipe so later reaper output can't hit a broken pipe, and it returns the full log for failure messages. The wait is still event-driven and adds no sleeps.The 7
nested_bazel_harness_testfailures caused by the stale nested lock are out of scope here.🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hyBydsMejdwk6QdKus