Xuanwo opened a new pull request, #9424:
URL: https://github.com/apache/opendal/pull/9424

   # Which issue does this PR close?
   
   Test maintenance inspired by 
[apache/datasketches-rust#419](https://github.com/apache/datasketches-rust/pull/419).
   
   # Rationale for this change
   
   A test earns its place when it catches a failure that another test would 
miss. Several suites repeat the same storage operation to check different parts 
of its result, or assert the spelling of generated code already exercised 
through a binding. Meanwhile, two `Buffer` tests pass with a broken iterator 
because their loops never run on non-empty input.
   
   # What changes are included in this PR?
   
   - Consolidate repeated storage operations across core, services, layers, 
integrations and bindings. For example, one append sequence now checks the 
final bytes and compares the write metadata with `stat`. The read behavior 
tests still exercise both stream interfaces and both default and concurrent 
reads.
   - Replace the two ineffective `Buffer` cases with a segmented input that is 
advanced and truncated across chunk boundaries. In a local mutation experiment, 
making the iterator return the rest of the last chunk left both old tests 
green. The replacement failed with `fgh` where it expected `f`.
   - Trim checks of private fields and generated source where the public API or 
ABI exercises the same contract. The retained cases include request-header 
redaction in `Debug`, conditional arguments passed through Python `open()`, and 
Java `DeleteOptions.toBuilder()` preserving recursive deletion. Record the 
criteria in `AGENTS.md` for future test reviews.
   
   Local behavior runs covered Memory, the filesystem, a read-only HTTP 
fixture, and the affected OPFS cases in Chromium on the main thread and in a 
dedicated worker. After integrating the latest Node.js and Python option 
changes, the generator suite passed and regenerating both bindings reproduced 
the checked-in files after formatting. Local validation did not include the 
full live cloud-service matrix.
   
   # Are there any user-facing changes?
   
   No. The changes are confined to tests and contributor guidance.
   
   # Breaking changes
   
   # AI Usage Statement
   
   Pi via T3 Code, `magpie/codex/gpt-6.2-astra`, `xhigh`. The agent and its 
delegates audited coverage, edited and reviewed tests, ran the local checks and 
mutation experiment, and drafted this PR. Xuanwo requested the change and is 
the accountable contributor.


-- 
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]

Reply via email to