Skip to content

verifier_tools: Support multi-file leaf publications in legacy shard. - #17

Merged
billy-lau merged 1 commit into
android:mainfrom
billy-lau:verifier_tools/usability
Sep 10, 2026
Merged

billy-lau merged 1 commit into
android:mainfrom
billy-lau:verifier_tools/usability

Conversation

@billy-lau

Copy link
Copy Markdown
Member

cmd/verifier/verifier.go:

  • added PackageInfo2Filename constant (package_info2.txt).
  • refactored logTarget to support a slice of binary info filenames (binaryInfoFilenames []string).
  • configured google_1p_apk (2026/01) to search package_info2.txt before package_info.txt, enabling verification of leaves 1,714,861 - 1,797,151 while prioritizing the smaller file for recent entries.
  • updated non-Tessera verification loop to search each configured info file.

internal/checkpoint/checkpoint_test.go:

  • added test case in TestValidCheckpointFormat for the updated google_1p_apk 2026/01 checkpoint (tree size 1,797,152).

internal/tiles/reader_test.go:

  • added test case in TestParsePackageInfosIndex validating parsing of entries with higher sequence indices from package_info2.txt.

cmd/verifier/verifier.go:
- added PackageInfo2Filename constant (`package_info2.txt`).
- refactored logTarget to support a slice of binary info filenames
  (`binaryInfoFilenames []string`).
- configured google_1p_apk (2026/01) to search `package_info2.txt` before
  `package_info.txt`, enabling verification of leaves 1,714,861 - 1,797,151
  while prioritizing the smaller file for recent entries.
- updated non-Tessera verification loop to search each configured info file.

internal/checkpoint/checkpoint_test.go:
- added test case in TestValidCheckpointFormat for the updated
  google_1p_apk 2026/01 checkpoint (tree size 1,797,152).

internal/tiles/reader_test.go:
- added test case in `TestParsePackageInfosIndex` validating parsing of
  entries with higher sequence indices from `package_info2.txt`.

Change-Id: I8c78e2ad9ae9542e8c6e64ee81c395b7adb05d2d
@billy-lau
billy-lau merged commit 395b0de into android:main Sep 10, 2026
7 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.

1 participant