review-tools needs to add padding for small snaps

Bug #2049093 reported by Sheng Yu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
review-tools
Fix Released
Undecided
Paulo Flabiano Smorigo

Bug Description

Snapd `snap pack` added an enforced a minimum snap size (16kb):

https://github.com/snapcore/snapd/commit/5bae3c14accb039b9fec5d2522dc5c71b90244a3

But for very small snap packages (like https://github.com/canonical/checkbox/actions/runs/7478965380), the check_squashfs_resquash() test will fail because the resquash snap does not have the padding zeros.

review-tools needs to also add padding / truncate to increase the file size to 16kb or the hash will be different.

Related branches

Changed in review-tools:
assignee: nobody → Paulo Flabiano Smorigo (pfsmorigo)
Changed in review-tools:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.