Skip to content

test: bound on-disk byte assertions so CI passes on Unix (0.6.2) - #6

Merged
kingchenc merged 1 commit into
mainfrom
fix/ci-onethird-tests
Jul 17, 2026
Merged

kingchenc merged 1 commit into
mainfrom
fix/ci-onethird-tests

Conversation

@kingchenc

Copy link
Copy Markdown
Owner

The 0.6.1 on-disk-size change made scan/remove totals report allocated bytes, which round up to the block size on ext4/apfs. Four tests still asserted exact logical byte counts and failed on the Linux/macOS CI runners (Windows normal files report logical == on-disk, so it passed locally and the release built fine).

Fix: switch those four assertions to lower-bound / file-count checks that hold on every filesystem. Logical exactness is still verified via logical_size. Release binaries are unchanged — test-only fix plus a 0.6.1 → 0.6.2 version bump.

The 0.6.1 on-disk-size change made scan/remove totals report allocated
bytes, which round up to the block size on ext4/apfs. Four tests still
asserted exact logical byte counts and failed on the Linux/macOS CI
runners (Windows normal files report logical == on-disk, so it passed
locally). Switch those to lower-bound / file-count assertions, which hold
on every filesystem; logical exactness is still checked via logical_size.
Release binaries are unchanged; this is a test-only fix plus a version bump.
@kingchenc
kingchenc merged commit 359756b into main Jul 17, 2026
7 checks passed
@kingchenc
kingchenc deleted the fix/ci-onethird-tests branch July 17, 2026 23:48
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