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

   # Which issue does this PR close?
   
   No tracking issue. The failure is recorded in two [Nightly Tier 
B](https://github.com/apache/opendal/actions/runs/44917495956/job/136886198928) 
[AWS S3 
jobs](https://github.com/apache/opendal/actions/runs/44935054494/job/136939856138).
   
   # Rationale for this change
   
   The negative case sends `If-Modified-Since` one second after the newly 
written object's `Last-Modified`. When the cutoff is still in the future on S3, 
S3 serves the object and `get_opts` returns `Ok`. The passing core test waits 
one second before sending that cutoff.
   
   A read-only probe against a public AWS S3 object returned HTTP 200 for a 
future cutoff and HTTP 304 when the cutoff matched `Last-Modified`. A probe 
through `OpendalStore::get_opts` on that object also returned a successful read 
for the future cutoff and `object_store::Error::Precondition` for the matching 
timestamp.
   
   # What changes are included in this PR?
   
   Use the object's `Last-Modified` as the cutoff in the negative case. The 
test still checks the bytes returned for an earlier cutoff and the exact 
`Precondition` variant when the object has not changed since the cutoff. The 
write/read behavior tests passed against Silo. The full write/read test on the 
private AWS S3 fixture remains to be verified by Nightly Tier B.
   
   # Are there any user-facing changes?
   
   None.
   
   # Breaking changes
   
   # AI Usage Statement
   
   - Harness: pi
   - Model: codex/gpt-6.2-sol
   - Effort: xhigh
   - Role: Diagnosed the nightly failure, ran the real AWS S3 read probes, and 
implemented and validated 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]

Reply via email to