Repository navigation
Conversation
Signed-off-by: Rudy Celekli <[email protected]>
|
Reviewed against Verification
The fix is correctly targetedI confirmed the hang is where you say it is. Two things I particularly like: passing Non-blocking notes
Test qualityUsing a real 2 MiB stored entry and the real filesystem is the right call — a MergeIndependent of the other five PRs. No conflicts. |
Signed-off-by: Rudy Celekli <[email protected]>
|
Thanks for verifying the production backpressure case and listener ordering. I clarified the body: caller abort is the reproduced production path, while consumer-close handling is defensive for the current fully-draining caller. The typed output failure is established before the shared controller is aborted; normal close runs after producer completion. The suggested inline comments and additional ordering control remain recorded as non-blocking follow-up notes. |
|
Thanks, @rudycelekli, for your work on “fix(artifacts): interrupt ZIP extraction under backpressure.” I appreciate your contribution to REA. |
Summary
Cancel ZIP extraction promptly when an unread consumer applies backpressure.
No issue is linked: this is a newly reproduced correctness defect found while reviewing current upstream; the regression and affected production seam are included for review.
Problem and expected behavior
Opening a large stored ZIP entry and aborting after its readable buffer fills leaves the producer waiting for drain. A caller cancellation must close the stream and release the producer.
Change and scope
Connect the caller signal and stream close to the extraction controller and make the drain wait abortable. Preserve the typed cancelled adapter failure.
Contract and boundary impact
docs/product-catalog.json), package, or installation impact: no metadata or dependency changes required.Evidence and regression coverage
tests/boundary/providers/native/zipBackpressureCancellation.test.ts.For evidence-bearing changes:
Validation performed
npm run check:pr— passednpm run check:ci— passednpm run verify:package— passednpm pack --dry-run— passedFocused regression and reproduction commands ran with the outcomes described above.
Compatibility, safety, and release
Review checklist
type(scope): outcome.AI assistance was used to investigate, implement, and test this change. Commits are signed and include a DCO sign-off.
Review clarification
The caller-abort path is reproduced through real ZIP backpressure. The sole production caller, ArtifactExtraction, fully drains the reader; the consumer-close branch is defensive cleanup. The abort callback destroys the output with its typed cancelled failure before aborting the internal controller. Abort listeners dispatch synchronously, and zip.js cannot settle getData inside that dispatch. Successful stream close also aborts the controller after extraction completion, which is currently benign.