lifecycle: use the -no-fragments mksquashfs option
Metadata
Current evaluation
Merged PR disabling Squashfs fragments in mksquashfs via the -no-fragments flag. This prevents unpredictable snap composition from threaded compression, enabling reliable validation. Approved and passed CI checks.
Suggested action: —
No scores available.
Issue body
Use of the Squashfs fragments feature results in unpredictable snap
composition due to how fragments are gathered and compressed using a
separate thread in mksquashfs. Disable fragments entirely so that the
review tools can perform validation of snaps.
https://forum.snapcraft.io/t/proposal-to-disable-squashfs-fragments-in-snaps/3103
LP: #1576763
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
- [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] If this is a bugfix. Have you checked that there is a bug report open for the issue you are trying to fix on [bug reports](https://bugs.launchpad.net/snapcraft)?
- [x] If this is a new feature. Have you discussed the design on the [forum](https://forum.snapcraft.io)?
- [x] Have you successfully run `./runtests.sh static`?
- [x] Have you successfully run `./runtests.sh unit`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged PR disabling Squashfs fragments in mksquashfs via the -no-fragments flag. This prevents unpredictable snap composition from threaded compression, enabling reliable validation. Approved and passed CI checks. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged changes disabling Squashfs fragments in mksquashfs via the -no-fragments flag. This ensures predictable snap composition for review tools by eliminating unpredictable thread-based compression. Approved and merged. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Disables Squashfs fragments in mksquashfs via the -no-fragments flag to ensure predictable snap composition for review tool validation. Approved by @kyrofa. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1891 lifecycle: use in-snap mksquashfs if running from snap | snapcraft | merged | Merged lifecycle changes to use the snap-bundled mksquashfs binary instead of relying on the system PATH when running as a snap. Approved by reviewer and passed CI checks. |