Xuanwo opened a new pull request, #8941: URL: https://github.com/apache/opendal/pull/8941
# Which issue does this PR close? Closes #8880. # Rationale for this change Follow-up to #8931, which introduced `opendal_core::raw::HttpTransportCache` and `raw::WeakHttpTransporter` and migrated `s3`, `gcs-grpc`, and `cos`. The remaining reqsign-backed services still called `Signer::with_context` on every request to attach `OperationContext::http_transport()`, adding per-operation overhead and relying on `reqsign`'s signer/cache ownership semantics across `reqsign 0.20.x` and `0.21`. Migrating these services removes all remaining per-request `Signer::with_context` calls while keeping `raw::Service`, `raw::Layer`, and public service APIs unchanged. # What changes are included in this PR? - Migrated **`gcs`**, **`oss`**, **`tos`**, **`obs`**, **`azblob`**, **`azdls`**, and **`azfile`** cores from storing a template `Signer<Credential>` and calling `Signer::with_context` per request to storing `sign_ctx`, `credential_provider`, `request_signer`, and `HttpTransportCache<Signer<Credential>>`, constructing a fresh `Signer::new(self.sign_ctx.clone().with_http_send(transport), ...)` per transport on cache miss. - Updated **`ghac`** (`GhacWriter`) to initialize `AzblobCore` with the updated signer cache fields. - Updated existing unit tests across the migrated services and added OSS unit tests verifying transport-scoped signer reuse, credential refresh on expiry, cross-transport isolation, and entry pruning when a transport is dropped without strong reference cycles. # Are there any user-facing changes? None. `Operator`, `raw::Service`, `raw::Layer`, and public service builder/config APIs are unchanged. # Breaking changes # AI Usage Statement - Harness: pi - Model: Gemini 4 Neon - Effort: high - Role: Migrated the remaining reqsign-backed services (`gcs`, `oss`, `tos`, `obs`, `azblob`, `azdls`, `azfile`, and `ghac`) to `raw::HttpTransportCache` and updated/added unit tests following the design established in #8931 for #8880. Verification covered local formatting, unit tests across all eight service crates, clippy, rustdoc, and `wasm32-unknown-unknown` compilation; no live cloud service integration tests were 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]
