Skip to content

composefs: Fix test that only fails with fs-verity - #2552

Merged
Johan-Liebert1 merged 1 commit into
bootc-dev:mainfrom
jeckersb:fix-sneaky-broken-test
Oct 7, 2026
Merged

Johan-Liebert1 merged 1 commit into
bootc-dev:mainfrom
jeckersb:fix-sneaky-broken-test

Conversation

@jeckersb

@jeckersb jeckersb commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

test_fresh_policy_replacement_preserves_objects wrote a sentinel to
objects/ without creating the directory, but composefs-rs creates
objects/ lazily. On filesystems without fs-verity (e.g. tmpfs/overlay
in CI) the test returned early before reaching this point, so the bug
went unnoticed until the Fedora Koji %check ran on a verity-capable
filesystem and failed with ENOENT.

Create the directory before writing the sentinel.

Assisted-by: AI
Signed-off-by: John Eckersberg dev@eckersberg.com

test_fresh_policy_replacement_preserves_objects wrote a sentinel to
objects/ without creating the directory, but composefs-rs creates
objects/ lazily. On filesystems without fs-verity (e.g. tmpfs/overlay
in CI) the test returned early before reaching this point, so the bug
went unnoticed until the Fedora Koji %check ran on a verity-capable
filesystem and failed with ENOENT.

Create the directory before writing the sentinel.

Assisted-by: AI
Signed-off-by: John Eckersberg <dev@eckersberg.com>
@bootc-bot
bootc-bot Bot requested a review from henrywang October 6, 2026 21:42
@Johan-Liebert1
Johan-Liebert1 merged commit eba4990 into bootc-dev:main Oct 7, 2026
54 checks passed
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.

4 participants