Repository navigation
fix(test): improve capture reliability and runner cleanup - #609
Merged
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
darsrc
pushed a commit
to darsrc/rea
that referenced
this pull request
Oct 10, 2026
* test: make capture fixtures readiness-aware and strengthen assertions * fix(test): escalate child termination and report cleanup failures * perf(test): use runner concurrency and lock shared build outputs
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.
PTY tests assumed children were ready at fixed offsets, some MCP assertions accepted any successful payload, and cancellation could wait indefinitely for a child that ignored termination. This change makes the fixtures tolerate startup timing, checks meaningful result identities and evidence, and adds termination escalation with explicit cleanup failures.
The process-tree fixture now signals when its descendants are ready, provides a two-second sampling window, and exits normally so capture verifies descendant cleanup. Signal dispatch is tested separately from application handler readiness. A source-map recovery regression now preserves valid imports while excluding a dynamically shadowable
requireinsidewith.Tests use Vitest's existing worker budget rather than a broad command lock or serializing every project. The process-observation lane remains serial. Checkout-local locks protect shared build and documentation outputs; dist cleanup and compilation run under the same build lock. Runner escalation covers direct children, not arbitrary descendant trees.
Profiling on macOS showed the process-tree case falling from 10.7 seconds waiting for its deadline to 3.0 seconds in the final gate. Installer runs took 11–13 seconds, while fixture setup took only 1.5–3.2 ms per case; their coverage was retained. These measurements do not establish a general full-suite speedup.
Validation:
npm run check:pr: 369 files passed, 2,142 tests passed, two skipped; static and generated-document checks passed.npm run build:cachedandnpm run docs:check: passed after the final build-lock wiring.