Test restoring per-command CLI shutdown handling#4070
Open
gavande1 wants to merge 11 commits into
Open
Conversation
…tween sessions Every session's quit-time 'site stop --all' hangs past its 20s timeout on Windows CI, leaving that session's site servers running in the machine-global process-manager daemon. Playground sites weigh 6 capacity units, so six leaked sites exhaust the 36-unit cap; every later createSite then fails by timeout, stretching the suite past the 180-minute job limit, and leaked php.exe processes block session cleanup and runner exit. - SocketRequestClient now times out waiting for a response, so a wedged daemon can no longer hang CLI commands forever - The daemon's stopProcess settles even if a child never reports exit, so kill-daemon always completes and capacity is freed - E2E cleanup reaps any surviving daemon tree between sessions and no longer aborts when the app failed to launch - The quit-time stop logs CLI progress events for future diagnosis - Re-enable Windows E2E in CI to verify (AINFRA-2588) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
On Windows the `site stop --all` CLI stops the sites and reports success within a few hundred ms, but its process can linger without self-exiting — so stopAllServers waited out the full quit timeout (20s in E2E) and force-killed it on every session, adding ~20s per session to the suite. Act on the CLI's reported completion event and reap the process then, instead of waiting for it to exit. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vfk7xXMfsABh5JMYX51wiS
Collaborator
📊 Performance Test ResultsComparing e28d40a vs trunk app-size
site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff) |
…o test-revert-cli-runner-shutdown # Conflicts: # .buildkite/pipeline.yml
1 task
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.
Related issues
How AI was used in this PR
AI helped compare Windows E2E logs, identify the shutdown-ordering hypothesis, and prepare this small diagnostic branch. The code change was reviewed locally before opening the PR.
Proposed Changes
Testing Instructions
Local checks:
Pre-merge Checklist