Fatorin opened a new pull request, #8518: URL: https://github.com/apache/opendal/pull/8518
# Which issue does this PR close? <!-- We generally require a GitHub issue to be filed for all bug fixes and enhancements. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123. --> None. This fixes a behavior test failure on B2: https://github.com/apache/opendal/actions/runs/43499599299/job/132157281956 # Rationale for this change <!-- Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed. Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes. --> `WriteBehavior_OptionsLargerThanStackBuffer_RoundTripAsync` writes a content type of about 1 KB to push the options past the 512-byte stack buffer. It ran on every service that declares `write_with_content_type`, and B2 rejects a content type that long: 415 unsupported_media_type: content type exceeds maximum allowed length The capability says a service accepts a content type, not how long it may be. The test covers the binding's fallback to native memory, which does not depend on the service. # What changes are included in this PR? Run the test on `memory` only, like `WriteBehavior_ConcurrentWrites_KeepEachCallsOptionsAsync`. <!-- There is no need to duplicate the description in the issue here but it is sometimes worth providing a summary of the individual changes in this PR. --> # Are there any user-facing changes? None. <!-- If there are user-facing changes then we may require documentation to be updated before approving the PR. --> # Breaking changes None. <!-- Leave this section empty for compatible changes. For breaking changes, add the breaking-changes label and use the following format outside this comment: Affected packages: core, bindings/java Migration: - Replace `old_api()` with `new_api()`. Use package names from dev/src/release/package.rs. Include bindings affected by behavior changes even when their source files are unchanged. Explain how users can migrate, or explain the removal and available alternatives. --> # AI Usage Statement - Harness: Claude Code - Model: Claude Fable 5.2 (claude-fable-5-2) - Effort: Medium - Role: Diagnosed the CI failure from the job log and the B2 service code, and wrote the test change. Verified locally with `OPENDAL_TEST=memory dotnet test` (126 passed). Not run against B2. <!-- If AI materially assisted this PR, list each harness/model/effort combination that materially contributed, and briefly describe its role: - Harness: Application or agent framework used to run the model. - Model: Model name or identifier shown by the harness, with version if available. - Effort: Reasoning effort setting as named by the harness. - Role: AI's contribution and any assumptions or unknowns that affect review. Do not include routine command output or repeat information provided elsewhere. The author remains responsible for every submitted claim and change. If AI did not materially assist this PR, write "None". --> -- 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]
