Xuanwo opened a new pull request, #9073: URL: https://github.com/apache/opendal/pull/9073
# Which issue does this PR close? This fixes the Node.js behavior failures reported by [run 45616453981](https://github.com/apache/opendal/actions/runs/45616453981). They reproduce on `main` after #9064 and #9065. # Rationale for this change After abort starts, the writer rejects `close()` before it reaches the backend. The Node.js tests expected the older diagnostic from the underlying writer's closed state. The binding exposes the formatted OpenDAL error as a JavaScript error with a generic code. The documented contract is the lifecycle of the writer and stream. # What changes are included in this PR? Both tests check for the `Unexpected` kind and the abort-specific part of the diagnostic. The assertions still require an unfinished stream to leave the Memory object absent and the pending-write case to wait for the write without calling `close()`. A writer that already committed also rejects `close()` with `Unexpected`, so checking the kind alone would miss the difference. The same two tests failed locally on Memory, FS, and the CI Silo image before this change. All three suites passed with the updated assertions. Separate CommonJS and ESM runs against MinIO confirmed that destroying during a pending multipart write removed the upload and preserved the previous object. # Are there any user-facing changes? The change is limited to test assertions. # Breaking changes # AI Usage Statement - Pi running `magpie/codex/gpt-6.2-sol` at `xhigh` reproduced the regression, checked the released API, changed the test assertions, and verified the result on local fixtures. - Pi running `magpie/devin/swe-2` at `high` independently checked error propagation and verified that both regular expressions distinguish abort from a second close after commit. - Pi running `magpie/codex/gpt-6.2-astra` at `high` investigated the hosted failures and scoped the test change. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
