Xuanwo opened a new pull request, #9456: URL: https://github.com/apache/opendal/pull/9456
# Which issue does this PR close? Related to #9452, which tracks the C binding’s live B2 nightly job. # Rationale for this change On both attempts, the C behavior test reported `OPENDAL_NOT_FOUND` at `stat` after the presigned POST. The test checked only that libcurl completed the transfer, so an HTTP error response could still lead to `stat`. Neither attempt recorded the upload’s HTTP status, and the cause of the live failure remains unknown. [Tier B C/B2 job](https://github.com/apache/opendal/actions/runs/46484181459/job/142094097386) # What changes are included in this PR? In `test_presign_write`, read the final HTTP status with `CURLINFO_RESPONSE_CODE` while the curl handle is valid. Release the handle, header list and presigned request before asserting that the transfer and status lookup succeeded. A non-2xx response now fails at the upload and reports the numeric status. After a 2xx, the test still checks stat, content length, exact readback bytes and deletion. On loopback, an adapted B2-style POST stopped before stat on HTTP 503 and 302. A 200 with exact bytes passed, a 200 with no object failed at stat, and a 200 with corrupt bytes of the same length failed at readback. A genuine S3 presigned PUT returned 201 and passed through deletion. # Are there any user-facing changes? None. This changes the C behavior test only. # Breaking changes # AI Usage Statement - Pi, `magpie/codex/gpt-6.2-sol`, max effort — investigated the nightly failures, implemented the status check and verified it on loopback. - Pi, `magpie/codex/gpt-6.2-sol`, high effort — independently reviewed `df3f4f942a`, rebuilt both test runners, and checked final status after redirects and error reporting on a truncated response. - Pi, `magpie/codex/gpt-6.2-astra`, high effort — checked the evidence and drafted the PR text. - Pi, `magpie/codex/gpt-6.2-astra`, xhigh effort — coordinated the investigation and 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]
