Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
snap: use the -no-fragments mksquashfs option #4396
Conversation
codecov-io
commented
Dec 13, 2017
•
Codecov Report
@@ Coverage Diff @@
## master #4396 +/- ##
==========================================
+ Coverage 78.03% 78.04% +<.01%
==========================================
Files 449 449
Lines 30906 30907 +1
==========================================
+ Hits 24118 24121 +3
+ Misses 4775 4774 -1
+ Partials 2013 2012 -1
Continue to review full report at Codecov.
|
|
I've restarted Travis job since it hit a timeout. |
|
Gosh. We shouldn't have all those |
| else | ||
| - mksquashfs "$dir" "$snap" -comp gzip -Xcompression-level 1 | ||
| + mksquashfs "$dir" "$snap" -comp gzip -Xcompression-level 1 -no-fragments |
jdstrand
Dec 13, 2017
Contributor
Not blocking on this, but -no-fragments is only interesting for store uploads, and anything using -comp gzip is not going to be uploaded to the store anyway (since the resquash tests would fail).
tyhicks
Dec 13, 2017
Contributor
I paused before adding it to that mksquashfs command precisely because of what you mentioned. Even though it isn't going to be uploaded to the store, I think it is still work testing with similar arguments to what all other snaps will be generated with.
jdstrand
Dec 13, 2017
Contributor
@chipaca should comment on this part, but iirc gzip is being used to help address travis timeouts because it is faster. Is -no-fragments slower than without it?
tyhicks
Dec 13, 2017
Contributor
No, in my testing, the -no-fragments option actually speeds up mksquashfs ever so slightly.
|
I've restarted travis since it timed out. |
|
@chipaca Yes, please feel free to push a commit to use |
|
The test failures are unrelated to the changes in this PR. Three test runs have failed due to Travis timeouts and another due to HTTP requests to the store timing out. |
|
Is there anything preventing this change from being merged? The corresponding change to snapcraft has been merged (snapcore/snapcraft@9a131cb) so I'd hate for this PR to linger for too long since we'd like to change the review-tools to require |
|
@tyhicks just that testing infra is a bit broken, as soon as it's passing things this'll get merged |
tyhicks commentedDec 13, 2017
•
Edited 1 time
-
tyhicks
Dec 13, 2017
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 in
snap packand tests that call mksquashfs directly so that the review tools can
perform validation of snaps and to be consistent with what snapcraft is
doing.
Fixes: https://launchpad.net/bugs/1576763
Signed-off-by: Tyler Hicks tyhicks@canonical.com
This PR corresponds to the following:
snapcore/snapcraft#1805
https://forum.snapcraft.io/t/proposal-to-disable-squashfs-fragments-in-snaps/3103