Skip to content

test: wait for the parent's ack before utility children exit - #55124

Merged
MarshallOfSound merged 1 commit into
44-x-yfrom
trop/44-x-y-bp-test-wait-for-the-parent-s-ack-before-utility-children-exit-1792455099442
Oct 20, 2026
Merged

MarshallOfSound merged 1 commit into
44-x-yfrom
trop/44-x-y-bp-test-wait-for-the-parent-s-ack-before-utility-children-exit-1792455099442

Conversation

@trop

@trop trop Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Backport of #55082

See that PR for details.

Notes: none

process.exit() does not wait for pending postMessage() writes, so a
utility child that exits right after posting can lose its message.
Restore the acknowledgement handshake that #54924 removed from the
api-net fixture and helper, and add it to the env-app and
js2c-code-cache fixtures, so those children only exit once the parent
has acknowledged their message.

The #54924 test no longer posts right before exiting. The child posts
its parentPort messages, then posts on a transferred MessagePortMain and
exits only when the parent replies there. parentPort and the port share
the same ordered Mojo channel, so all of the parentPort messages have
reached the parent when the port message does.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LPMvJBQiyP6b7QjatACmnS

Co-authored-by: Claude <noreply@anthropic.com>
@trop trop Bot added 44-x-y backport This is a backport PR semver/none labels Oct 20, 2026
@MarshallOfSound
MarshallOfSound enabled auto-merge (squash) October 20, 2026 07:49
@MarshallOfSound
MarshallOfSound merged commit 093af96 into 44-x-y Oct 20, 2026
85 checks passed
@MarshallOfSound
MarshallOfSound deleted the trop/44-x-y-bp-test-wait-for-the-parent-s-ack-before-utility-children-exit-1792455099442 branch October 20, 2026 07:50
@release-clerk

release-clerk Bot commented Oct 20, 2026

Copy link
Copy Markdown

No Release Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

No open projects
Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant