ADFA-4756: auto-capture rootfs edition sizes for the offline fallback#221
Merged
Conversation
The system edition sizes fall back to a saved value when the device is offline. That fallback was a hand-maintained table of constants that drifts when the published rootfs images change. It is now captured automatically at package time. - Gradle task refreshRootfsSizes reads each edition's stable latest_<tier>_<abi>.meta4 <size> and writes assets/rootfs_sizes.csv. It runs on preBuild, only rewrites the file when a byte size actually changed (no spurious git churn), and never fails the build on network error (keeps the committed CSV as the last known). - RootfsCatalog reads that CSV as the offline fallback; the previous constants stay only as an emergency net for a missing/corrupt CSV. - InstallationPlanner threads the app context so the packaged CSV can be read. - Seed CSV committed with the current known sizes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The system edition sizes fall back to a saved value when the device is offline. That fallback was a hand-maintained table of constants that drifts when the published rootfs images change. It is now captured automatically at package time.