Skip to content

ADFA-4756: auto-capture rootfs edition sizes for the offline fallback#221

Merged
luisguzman-adfa merged 1 commit into
mainfrom
feat/ADFA-4756-rootfs-sizes
Jul 17, 2026
Merged

ADFA-4756: auto-capture rootfs edition sizes for the offline fallback#221
luisguzman-adfa merged 1 commit into
mainfrom
feat/ADFA-4756-rootfs-sizes

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

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__.meta4 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.

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.
@luisguzman-adfa
luisguzman-adfa merged commit b32d045 into main Jul 17, 2026
1 check passed
@luisguzman-adfa
luisguzman-adfa deleted the feat/ADFA-4756-rootfs-sizes branch July 17, 2026 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant