Skip to content

AB update: fix ACL verity tests for partition layout changes - #26

Closed
bfjelds (bfjelds) wants to merge 1 commit into
microsoft:aclmainfrom
bfjelds:user/bfjelds/adjust-acl-verity-tests-for-abupdate-20260708
Closed

AB update: fix ACL verity tests for partition layout changes#26
bfjelds (bfjelds) wants to merge 1 commit into
microsoft:aclmainfrom
bfjelds:user/bfjelds/adjust-acl-verity-tests-for-abupdate-20260708

Conversation

@bfjelds

Copy link
Copy Markdown
Member

Updates the kola test harness and verity tests to work with the ab-update partition layout, where the usr data device and hash device are separate (rather than hash appended at an offset within the same device).

Validation

TBD

Changes

kola/tests/util/update.go

  • GetUsrDeviceNode: Use veritysetup status to discover the data device instead of dmsetup info, which doesn't reflect the new partition layout.
  • Add new GetUsrHashDeviceNode helper that extracts the hash device from veritysetup status for ACL.

kola/tests/misc/verity.go

  • ACL path: verify using separate data and hash devices via veritysetup verify.
  • Non-ACL path: retain the existing hash-offset verification against a single device.
  • Remove the now-unnecessary btrfs inspect-internal fallback for computing offset on ACL.

kola/harness.go

  • Add skipIfMatch field to the "Dependency failed" emergency-shell check so that verity-related dependency failures are handled by a dedicated rule with NoVerityCorruptionCheck instead of the generic NoEmergencyShellCheck.

For ab-update, ACL uses separate data and hash partitions for dm-verity
instead of appending hash data after the filesystem. This changes:

- GetUsrDeviceNode: use veritysetup status parsing instead of dmsetup
  (which returned comma-separated devices like vda3,vda2)
- Add GetUsrHashDeviceNode to get the hash partition separately
- VerityVerify: use separate hash device for ACL instead of hash-offset
- harness.go: add skipIfMatch for verity dependency failures and
  separate verity-specific dependency check with NoVerityCorruptionCheck

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bfjelds

Copy link
Copy Markdown
Member Author

move from fork, replace with #27

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