Skip to content

fix: prevent run-with-env shutdown grace test race - #108787

Merged
steipete merged 1 commit into
mainfrom
codex/run-with-env-ready-signal
Jul 16, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/run-with-env-ready-signal

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where the run-with-env shutdown-grace regression test could intermittently fail when it observed a grandchild readiness marker before that process had installed its SIGTERM handler.

Why This Change Was Made

The grandchild now publishes readiness only after registering the signal handler that the test exercises. Production runtime behavior is unchanged.

User Impact

No user-visible runtime change. Maintainers get deterministic CI coverage for graceful descendant shutdown.

Evidence

  • Observed hosted failure: checks-node-compact-small-6 reported ENOENT for the expected graceful-shutdown marker after the readiness marker had already appeared.
  • Focused test passed 85/85 assertions across five runs after the ordering fix.
  • oxfmt --check and git diff --check passed.
  • Structured autoreview: clean, 0.99 confidence.
  • AI-assisted: yes. The change and signal/readiness ordering were reviewed and understood.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Jul 16, 2026
@steipete
steipete merged commit b8a6341 into main Jul 16, 2026
163 of 167 checks passed
@steipete
steipete deleted the codex/run-with-env-ready-signal branch July 16, 2026 09:00
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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

Labels

maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant