Skip to content

test(core): remove assert_size tests#7167

Merged
tisonkun merged 1 commit intomainfrom
fix/remove-assert-size-tests
Jan 28, 2026
Merged

test(core): remove assert_size tests#7167
tisonkun merged 1 commit intomainfrom
fix/remove-assert-size-tests

Conversation

@Xuanwo
Copy link
Member

@Xuanwo Xuanwo commented Jan 28, 2026

Which issue does this PR close?

Closes #7158.

Rationale for this change

assert_size was intended as a development-only guard, but hard-coded struct sizes can legitimately vary across toolchains/platforms. This makes downstream packaging (e.g. Fedora) fail without any impact on correctness or user-facing behavior.

What changes are included in this PR?

  • Remove tests::assert_size from opendal-core crate root.
  • Remove types::error::tests::assert_size.

Are there any user-facing changes?

No.

How was this tested?

  • cd core && cargo fmt
  • cd core && cargo test --lib
  • cd core && cargo clippy --all-targets --all-features -- -D warnings

AI Usage Statement

This PR was authored with assistance from OpenAI Codex CLI (GPT-5.2).

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. releases-note/fix The PR fixes a bug or has a title that begins with "fix" labels Jan 28, 2026
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 28, 2026
@tisonkun tisonkun merged commit dd67846 into main Jan 28, 2026
384 checks passed
@tisonkun tisonkun deleted the fix/remove-assert-size-tests branch January 28, 2026 11:15
@tisonkun tisonkun changed the title fix(core): remove assert_size tests test(core): remove assert_size tests Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer releases-note/fix The PR fixes a bug or has a title that begins with "fix" size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: tests:assert_size fails on Fedora

3 participants