test: fix fullstack shutdown assertion race on macOS

Merged
MA
2mo ago
+8-15

The macOS shutdown test can observe the launcher after it has already exited successfully and report launcher exited early: 0, as in this main run.

Wait for completion before checking the recorded frontend PID, exit status, and frontend termination. Capture stderr for failure diagnostics and drain it during timeout cleanup. This only changes the test.

Type of change

  • Bug fix (test-only)

Validation

  • Reproduced the failure by waiting for launcher completion before the original polling assertion; the revised test passes.
  • Affected CLI and workflow test modules: 882 passed, 5 skipped on macOS/Python 3.14 with Node 22.
  • Ruff lint and formatting checks passed.
  • Commit hooks passed, including codespell, stub generation, Pyright, and ty.
  • Adversarial review found no actionable issues.

No news fragment: test-only change.