Xuanwo commented on PR #8532: URL: https://github.com/apache/opendal/pull/8532#issuecomment-7048543125
AI-generated review: Thanks for reproducing the Google Drive `stat`/`list` issue and cleaning up the metadata parsing, @phatina! We caught one blocking issue on the `copy` path: - **Default `Operator::copy` still fails on files without `size`**: `gdrive`'s one-shot copy now returns `EntryMode::Unknown`, which `CompleteCopier::complete_metadata` (`core/core/src/layers/complete.rs:168-194`) rejects with `Unexpected` when there is no copy progress or `source_content_length_hint`. Because the Google Drive copy request has already succeeded, Drive may have created the target file even though the caller receives an error. - **Post-fix real-Drive validation**: The PR notes real-Drive reproduction for `list`/`stat`, while the 3 new unit tests cover the helper directly without exercising `Operator::copy` or verifying `copy`/`rename` against real Google Drive after the fix. Could you either split `copy` out of this PR (focusing on `stat`/`rename` with post-fix real-Drive validation), or address the `CompleteCopier` contract with an `Operator::copy` regression test and real-Drive validation? Note that changing `CompleteCopier` touches a core contract and will need maintainer direction. -- 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]
