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

   # Which issue does this PR close?
   
   Part of #8764.
   
   # Rationale for this change
   
   Dependabot #8764 upgrades `suppaftp` from 10 to 13. This PR applies the 
migration for the FTP service while keeping this dependency upgrade isolated 
from the other updates tracked by that issue.
   
   # What changes are included in this PR?
   
   - Bump `suppaftp` to `13.0.0` in `core/services/ftp`.
   - Replace `finalize_put_stream` with `TransferStream::finish()` and preserve 
the cancel-safe `CloseState` state machine from #8740: `Failed` is set before 
awaiting `flush`/`finish`, `Rename` is entered only after `finish` succeeds, 
and a failed transfer cannot reopen `APPE` or commit partial data.
   - Read from `TransferStream` directly, enforce the requested range locally, 
and finish the transfer at EOF or when the range is satisfied.
   - Update `core/Cargo.lock` only for `suppaftp` (`10.0.2` -> `13.0.0`). 
`suppaftp` 13 uses `jiff` 1.0.1, which `opendal-core` already uses, so no 
duplicate `jiff` 0.2/1.0 is introduced.
   
   # Are there any user-facing changes?
   
   No. `suppaftp` types are not part of the FTP service's public API.
   
   # Breaking changes
   
   None.
   
   # Validation
   
   - `cargo fmt --all -- --check`
   - `cargo clippy --workspace --all-targets --all-features -- -D warnings`
   - `python3 scripts/dependencies.py check`
   - `taplo format --check`
   - `cargo deny --locked check licenses`
   - `OPENDAL_TEST=ftp cargo test --locked --features services-ftp,tests --test 
behavior` against `fauria/vsftpd`: 113 passed. Five list tests fail on 
`origin/main` as well because vsftpd's `LIST` response does not include the 
directory itself; they were excluded from the passing run.
   
   # AI Usage Statement
   
   - Harness: Pi coding agent (T3 Code orchestration)
   - Model: group/deepseek
   - Effort: max
   - Role: Implemented the dependency upgrade and API migration, ran the 
verification suite, and kept the lockfile change scoped to `suppaftp`.


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