Skip to content

test(s3): cover Aliyun bucket lookup fallbacks#152

Merged
overtrue merged 1 commit intomainfrom
codex/test-gap-detection-20260423
Apr 23, 2026
Merged

test(s3): cover Aliyun bucket lookup fallbacks#152
overtrue merged 1 commit intomainfrom
codex/test-gap-detection-20260423

Conversation

@overtrue
Copy link
Copy Markdown
Contributor

Related issue(s)

None. This is automation-driven test gap coverage for the recent Aliyun OSS bucket lookup change.

Background

PR #151 changed the S3 client so bucket_lookup = auto keeps path-style addressing for most S3-compatible endpoints, but switches to virtual-hosted style for Aliyun OSS service endpoints. The merged change covered the main Aliyun and custom-endpoint paths, but a few fallback branches remained untested.

Solution

Add focused rc-s3 unit coverage for the new bucket lookup helper:

  • Non-OSS aliyuncs.com services keep path-style addressing.
  • Invalid endpoint strings keep path-style addressing.
  • Unknown bucket_lookup values keep the conservative path-style fallback.

Test status

  • cargo test -p rc-s3 bucket_lookup --lib
  • make pre-commit

@overtrue overtrue marked this pull request as ready for review April 22, 2026 17:11
@overtrue overtrue merged commit 8a0a324 into main Apr 23, 2026
15 checks passed
@overtrue overtrue deleted the codex/test-gap-detection-20260423 branch April 23, 2026 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant