Skip to content
This repository was archived by the owner on Oct 11, 2026. It is now read-only.

fix(build): drain entrypoint formatter pipes - #173

Merged
KyleJune merged 2 commits into
mainfrom
codex/172-formatter-pipes
Oct 3, 2026
Merged

KyleJune merged 2 commits into
mainfrom
codex/172-formatter-pipes

Conversation

@KyleJune

@KyleJune KyleJune commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

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

  • Actual public Builder regression: both 512-route-pair cases failed on the original pipeline; both small controls passed. Fixed cases check completion, first/last routes, route counts, and server/client artifacts with sanitizers enabled.
  • Real malformed input, scoped write/close failures, and derived actual-pipe stdout/stderr read failures check diagnostics, caller rejection, live-child termination, existing-artifact preservation, and joined child/stream cleanup. A kill-removal negative control failed all four read-failure cases while six positive controls passed.
  • Final Windows and Ubuntu deno task check: passed; the changed Windows formatter failure suite passed 10 steps.
  • Byte-identical final Ubuntu DENO_JOBS=8 deno task test --parallel --reporter=dot: 64 tests/869 steps passed; actual Ubuntu CI deno task test --coverage: same totals passed.
  • Earlier Windows parallel run encountered an uncaught development-server 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.
  • Independent final pinned source/error/compatibility and test/resource reviews found no blocker at 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

@KyleJune

KyleJune commented Oct 3, 2026

Copy link
Copy Markdown
Member Author

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.

@KyleJune

KyleJune commented Oct 3, 2026

Copy link
Copy Markdown
Member Author

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.

@KyleJune
KyleJune merged commit 46bf9c8 into main Oct 3, 2026
11 checks passed
@KyleJune
KyleJune deleted the codex/172-formatter-pipes branch October 3, 2026 05:25
KyleJune pushed a commit that referenced this pull request Oct 3, 2026
## [0.17.5](0.17.4...0.17.5) (2026-10-03)

### Bug Fixes

* **build:** drain entrypoint formatter pipes ([#173](#173)) ([46bf9c8](46bf9c8)), closes [#172](#172)
@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 0.17.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(build): drain formatter pipes while generating entrypoints

1 participant