New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
store: enable deltas for core devices too #4639
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we shipping the required binary in core yet? I don't see it in my system (I'm tracking edge).
yes we do ...
|
Ah. I searched using All good! |
@mvo5 unit tests are failing:
|
c4f35e0
to
97fbe3a
Compare
@zyga yeah, sorry for this, just noticed and forced push the fix. If I had seen your comment early enough I would have pushed it as a separate commit. |
I set this to blocked because of: https://forum.snapcraft.io/t/refresh-causes-download-of-full-snap-file-instead-of-delta/3470/15 - I'm not sure what the best way forward is here, maybe we can contact them via our CE team? |
we should really ask them to add the variable to /etc/environment for a test (as i mentioned in the thread i'll do this over the weekend on one customer device here (200MHz single core cpu, 256M RAM) to see the impact). IIRC when i last measured it for @chipaca on a beaglebone the difference was like: x86 multi core CPU -> below 1sec to apply a core delta and IIRC the worry was that this extrapolates as your snaps get bigger ... though i guess it is not very likely that you run 1GB sized snaps on such HW after all ... also, as long as we make sure we do not leak this out of edge we should be fine ... |
Codecov Report
@@ Coverage Diff @@
## master #4639 +/- ##
==========================================
- Coverage 78.82% 78.81% -0.01%
==========================================
Files 470 470
Lines 34072 34071 -1
==========================================
- Hits 26857 26853 -4
- Misses 5048 5050 +2
- Partials 2167 2168 +1
Continue to review full report at Codecov.
|
Alex was kind enough to do some tests: https://forum.snapcraft.io/t/refresh-causes-download-of-full-snap-file-instead-of-delta/3470/19 and it looks like even on low end arm hardware the time to apply the delta is very reasonable. I will remove the blocked label and I think we should do this for 2.33 (which will give us plenty of time to test this in edge) |
This enables delta refreshes everywhere.