Skip to content

test(bindings/dotnet): run large options test on memory only - #8518

Open
Fatorin wants to merge 1 commit into
apache:mainfrom
Fatorin:dotnet-large-options-test-memory-only
Open

Fatorin wants to merge 1 commit into
apache:mainfrom
Fatorin:dotnet-large-options-test-memory-only

Conversation

@Fatorin

@Fatorin Fatorin commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

None.

This fixes a behavior test failure on B2: https://github.com/apache/opendal/actions/runs/43499599299/job/132157281956

Rationale for this change

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.

Are there any user-facing changes?

None.

Breaking changes

None.

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.

@github-actions github-actions Bot added bindings/dotnet releases-note/fix The PR fixes a bug or has a title that begins with "fix" size:XS This PR changes 0-9 lines, ignoring generated files. labels Nov 14, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bindings/dotnet releases-note/fix The PR fixes a bug or has a title that begins with "fix" size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant