Repository navigation
test(process): record which AppProcess cleanup wait hangs (diagnostic, Refs #669) - #683
agenteinstinct1-max wants to merge 2 commits into
Conversation
Co-authored-by: arena-agent <[email protected]>
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
Co-authored-by: arena-agent <[email protected]>
|
Automated PR Cleanup Thank you for contributing to silvercode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Refs #669
Type of change
What does this PR do?
Extends the existing #672 stage-line diagnostic, rewriting that mechanism as a shared event log rather than adding a parallel diagnostic. Both cleanup tests now record stage timings, including separate interrupt and settled waits, assertion stages, and outer directory cleanup. Output is silent on a pass. Budgets and assertions are unchanged.
Recorded file observations are limited to facts established by each test; a test-finished snapshot checks file existence and reads Linux /proc for the test child when its PID is known. No signals are sent by the instrumentation. The run API does not expose exit code or signal, so these are reported as unavailable. Timeout cleanup may change the snapshot before it is taken.
What is and is not shown
There was one historical Linux occurrence on the draft #668 head. These diagnostics do not establish a cause; a green local run does not reproduce the failure.
How did you verify your code works?
Linux:
bun test test/process/process.test.ts --timeout 30000in packages/core: 26 pass, 0 fail, 62 assertions. Temporarily forced readiness assertions to fail and directory cleanup to hang in both tests; diagnostic output identified the assertion and cleanup stages. Temporary changes were reverted.Screenshots / recordings
Not applicable.
Checklist