Repository navigation
fix(build): drain entrypoint formatter pipes - #173
Conversation
|
test(build): cover formatter read failures — eb6aa41 adds actual-child stdout/stderr rejection controls with live-child termination, joined forwarding/status/generation, and existing-artifact preservation. Production code and dependencies are unchanged. A bounded kill-removal negative control failed all four intended cases while six positives passed. Final Windows and Ubuntu checks pass; supported Ubuntu exact parallel and CI coverage tasks pass 64 tests/869 steps, and changed Windows failure controls pass 10 steps. The earlier Windows full-run AddrInUse remains disclosed with cause unverified. Working reviews are clear; final pinned reviews and updated PR CI are pending. |
|
Final pinned reviews are CLEAR at eb6aa41 against published 0.17.4 base 364e4dc: independent OAuth source/error/compatibility, Services test/resource, and root whole-change/preservation reviews. Committed source and test match the final validated fingerprints; only the original two package paths change and the lock is unchanged. Final configured checks and supported exact parallel/CI coverage tasks pass 64 tests/869 steps; changed native failure controls pass 10 steps. The earlier native full-run AddrInUse retains cause UNVERIFIED. Actual PR checks now pass on all three operating systems and the PostgreSQL template, with Codecov patch/project SUCCESS and merge state CLEAN. Root owns merge, release and later consumer adoption. |
|
🎉 This PR is included in version 0.17.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Why
Server and client entrypoint generation could hang when a supported route corpus produced enough formatter output to fill its stdout pipe. Both paths waited for process exit before draining stdout and did not await stdin writes or closure. Drain stdout and stderr concurrently with the awaited input feed, and join every owned operation before returning.
Formatter failures retain their method-specific error prefix and genuine diagnostics; existing artifacts remain untouched. Stderr is forwarded after settlement rather than streamed live. Input failures abort and release the writer, and output-read failures terminate the owned formatter.
Verification
deno task check: passed; the changed Windows formatter failure suite passed 10 steps.DENO_JOBS=8 deno task test --parallel --reporter=dot: 64 tests/869 steps passed; actual Ubuntu CIdeno task test --coverage: same totals passed.AddrInUse; cause remains unverified. An unchanged baseline focused development-server run passed 2 suites/48 steps; that comparison does not establish baseline intermittency or a full Windows pass.eb6aa4191ce14ec38a217346062df9f0637c32fb.Risk
Two-way door: reverting restores the previous formatter pipeline. The change is confined to entrypoint formatting and its actual-process regression tests; generated route contents, options, artifact paths, dependencies, and watch behavior are unchanged. Diagnostics are buffered until the formatter settles.
Closes
Closes #172