Skip to content

tests/integration: add partitions.conf validator#119

Closed
GuanquanTian wants to merge 2 commits into
qualcomm-linux:mainfrom
GuanquanTian:add-partitions-check
Closed

tests/integration: add partitions.conf validator#119
GuanquanTian wants to merge 2 commits into
qualcomm-linux:mainfrom
GuanquanTian:add-partitions-check

Conversation

@GuanquanTian
Copy link
Copy Markdown

@GuanquanTian GuanquanTian commented May 27, 2026

Summary

Add a validator that catches duplicate partition names and missing required
fields in platforms/*/*/partitions.conf at integration-test time, wired into
make integration so PRs introducing the kind of bug fixed in #118 fail CI
before reaching review.

The check is scoped to:

  • duplicate --name within the same physical partition (LUN) — strict
  • --partition line missing --name or --size — strict

platforms/glymur-crd/spinor/partitions.conf is allowlisted because it
contains a pre-existing duplicate SYSFW_VERSION entry that needs a
separate fix.

Rename the second uefi_dtb_a partition to uefi_dtb_b to match the A/B
slot naming used elsewhere in this layout (dtb_a/dtb_b, uefisecapp_a/
uefisecapp_b, etc.).

Signed-off-by: guanquan <guanquan@qti.qualcomm.com>
Catch duplicate partition names and missing required fields in
platforms/*/*/partitions.conf at integration-test time. Wire it into
the existing make integration target so PRs that introduce a duplicate
fail CI before reaching review.

The check is intentionally limited to duplicate --name and missing
--name/--size — duplicate --type-guid within a LUN is widely (and
intentionally) used across A/B and primary/backup partitions, so
flagging it would generate noise without catching real bugs.

platforms/glymur-crd/spinor/partitions.conf is allowlisted because it
contains a pre-existing duplicate SYSFW_VERSION entry that requires a
separate fix.

Signed-off-by: guanquan <guanquan@qti.qualcomm.com>
@GuanquanTian GuanquanTian changed the title Add partitions check tests/integration: add partitions.conf validator May 27, 2026
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