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

   # Which issue does this PR close?
   
   Closes #8714
   
   # Rationale for this change
   
   `test_remove_all_basic` (rewritten in #8637) checks 
`!op.exists("{base}/a/")` immediately after `remove_all`. On COS, `create_dir` 
is unsupported, so a directory existence check is simulated by listing the 
prefix with `ListObjects`. COS `ListObjects` is eventually consistent, so a 
deleted prefix can remain visible briefly.
   
   `core/cos` failed deterministically at `tests/behavior/async_delete.rs:226` 
in both Nightly Tier B runs after #8637, while it passed in both runs before 
and all other services passed.
   
   # What changes are included in this PR?
   
   Poll the removed directory's existence check with a 5 second deadline and 
250 ms interval, following the bounded polling already used in 
`core/tests/behavior/async_list.rs` for COS listing consistency (#7502, #7508). 
The assertion is preserved: the test still fails with `{directory} should be 
removed` if the directory remains visible past the deadline.
   
   The descendant and sibling checks use file `stat` (`HEAD` on COS), which is 
strongly consistent, so they are unchanged.
   
   Live COS credentials are unavailable locally; the next Nightly Tier B 
`core/cos` run will verify the fix against the service. Local `memory` and `fs` 
behavior tests, clippy, and formatting pass.
   
   # Are there any user-facing changes?
   
   No.
   
   # Breaking changes
   
   # AI Usage Statement
   
   - Harness: pi coding agent
   - Model: group/deepseek
   - Effort: max
   - Role: Investigated the nightly failure, implemented the bounded retry in 
the behavior test, and ran local validation. Live service verification is left 
to the next Nightly Tier B run.


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