You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "suyanhanx (via GitHub)" <gi...@apache.org> on 2026/04/15 08:34:03 UTC

[PR] fix(services/gdrive): stabilize behavior CI semantics [opendal]

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

   # Which issue does this PR close?
   
   Closes #6684.
   Closes #7384.
   
   # Rationale for this change
   
   Google Drive behavior tests have been unstable because the backend could observe stale path-to-id mappings and stale listings after recent mutations. In addition, Drive can contain duplicate names under the same parent, so blindly taking the first search hit makes path resolution unstable across requests.
   
   # What changes are included in this PR?
   
   - replace the shared `PathCacher` usage with a gdrive-local path index that supports canonical directory paths, subtree invalidation, and ancestor refresh before re-resolution
   - keep a short-lived recent-mutation view so `stat` and `list` stay read-after-write consistent within the same operator session
   - harden `read`, `write`, `copy`, `rename`, and `delete` to refresh stale path mappings and retry after `404` from old file ids
   - teach recursive listing to stop traversing tombstoned directories, reset stale page tokens after directory-id refresh, and merge recent entries without duplicates
   - re-enable gdrive behavior planning in CI
   - when duplicate names exist under the same parent, prefer the most recently modified match (falling back to the newer creation time) instead of relying on arbitrary response order
   
   # Are there any user-facing changes?
   
   Users should see more stable gdrive behavior for recursive delete/remove-all flows and for read-after-write/list-after-write cases. If duplicate names exist under the same parent in Google Drive, OpenDAL will now resolve the most recently modified match instead of an arbitrary first result.
   
   # AI Usage Statement
   
   This PR was prepared with OpenAI Codex in the desktop app.
   


-- 
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: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(services/gdrive): stabilize behavior CI semantics [opendal]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #7388:
URL: https://github.com/apache/opendal/pull/7388#issuecomment-4250861101

   <!-- ci-bot:full-ci -->
   Maintainer triggered full CI with repository secrets.
   Please monitor the mirrored CI PR for results: https://github.com/apache/opendal/pull/7389
   Workflows dispatched: test_behavior.yml.
   Re-applying the label will refresh this mirror.


-- 
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: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(services/gdrive): stabilize behavior CI semantics [opendal]

Posted by "suyanhanx (via GitHub)" <gi...@apache.org>.
suyanhanx closed pull request #7388: fix(services/gdrive): stabilize behavior CI semantics
URL: https://github.com/apache/opendal/pull/7388


-- 
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: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org