Skip to content

feat: "rebalance" chunked layer plan once per month#1824

Merged
RoyalOughtness merged 3 commits intosecureblue:livefrom
HastD:clear-build-plan
Jan 22, 2026
Merged

feat: "rebalance" chunked layer plan once per month#1824
RoyalOughtness merged 3 commits intosecureblue:livefrom
HastD:clear-build-plan

Conversation

@HastD
Copy link
Collaborator

@HastD HastD commented Jan 21, 2026

When taking into account a prior build's layer plan, build-chunked-oci attempts to minimize layer changes between builds. In particular, this means newly added packages are all put in a specific layer reserved for new packages, rather than being distributed among existing layers. This is reasonable behavior but over time can result in an unbalanced, non-optimal package distribution (especially if a large number of new packages or a large new package is installed), reducing the effectiveness of rechunking.

To mitigate this, we pass rechunk_clear_plan: true to the BlueBuild action only on the first build of each month. This strikes a balance: a single update per month being larger has a minimal impact on average update sizes, while preventing the layer plan from remaining unbalanced long-term when the set of installed packages changes.

Also update the BlueBuild action to v1.11.0 and remove an option made unnecessary by this update.

@HastD HastD requested a review from RoyalOughtness as a code owner January 21, 2026 13:54
@HastD HastD marked this pull request as draft January 22, 2026 03:22
@HastD HastD marked this pull request as ready for review January 22, 2026 04:02
RoyalOughtness
RoyalOughtness previously approved these changes Jan 22, 2026
When taking into account a prior build's layer plan, build-chunked-oci
attempts to minimize layer changes between builds. In particular, this
means newly added packages are all put in a specific layer reserved for
new packages, rather than being distributed among existing layers. This
is reasonable behavior but over time can result in an unbalanced,
non-optimal package distribution, reducing the effectiveness of
rechunking.

To mitigate this, we pass `rechunk_clear_plan: true` to the BlueBuild
action only on the first build of each month. This strikes a balance:
a single update per month being larger has a minimal impact on average
update sizes, while preventing the layer plan from remaining unbalanced
long-term when the set of installed packages changes.

Also update the BlueBuild action to v1.11.0 and remove an option made
unnecessary by this update.
@RoyalOughtness RoyalOughtness enabled auto-merge (squash) January 22, 2026 19:50
@RoyalOughtness RoyalOughtness merged commit 59002ff into secureblue:live Jan 22, 2026
15 checks passed
@HastD HastD deleted the clear-build-plan branch January 22, 2026 20:36
@HastD HastD removed the Pending CI label Jan 22, 2026
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.

3 participants

Comments