← Back to issue list

overlay: add layer state management helper (CRAFT-506)

View original Github issue

Metadata

Project
craft-parts
Number
#122
Type
pull request
State
merged
Author
cmatsuoka
Labels
Created
Updated
Closed

Current evaluation

Merged. Adds a layer state management helper for the sequencer to track layer hashes during planning, ensuring overlay consistency. Approved by two reviewers with 180 additions and 8 deletions across four files.

Suggested action:

No scores available.

Issue body

The sequencer must keep track of layer state and changes in order to emit actions related to the overlay step (such as layer reapplications or re-execution of steps invalidated by changes in layers). Add a layer state management helper to be used during the planning phase to store the layer hash corresponding to each part and compute the expected values to ensure overlay consistency. - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? -----

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged. Adds a layer state management helper for the sequencer to track layer hashes during planning, ensuring overlay consistency. Approved by two reviewers with 180 additions and 8 deletions across four files.
qwen3.6-35b-a3b-mtp-q6 Merged a layer state management helper to track layer hashes per part and compute expected values, ensuring overlay consistency during the planning phase. Addresses CRAFT-506.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#119 overlay: add overlay hash to build and stage states (CRAFT-489) craft-parts merged Merged pull request implementing overlay verification hashes in build and stage states to ensure proper step invalidation. Approved by two reviewers, passed CI checks, and successfully integrated.
75%
#115 overlay: add layer visibility helpers (CRAFT-477) craft-parts merged Merged after two approvals. Introduces helper functions to extract migratable files and directories from overlay layers, correctly processing whiteout entries and opaque directories. The change adds 315 lines across three files.
74%
#138 many: handle layer reapplication (CRAFT-83, CRAFT-85) craft-parts merged Merged changes handling layer reapplication to maintain overlayfs stack consistency during re-executed overlay steps. Approved by one reviewer, passed CI checks, and integrated by maintainer cmatsuoka across 20 files.
72%
#111 overlay: add overlayfs helpers (CRAFT-462) craft-parts merged Merged. Added overlayfs mount and unmount helpers, plus utilities to identify special files and directories for filesystem layering. Approved by two reviewers, passed CI, and introduced 420 lines across six files.
72%
#116 overlay: compute layer validation hash (CRAFT-478) craft-parts merged Merged after two approvals. Adds layer validation hash computation and persistence helpers. Author resolved a design concern by making the layer_hash argument mandatory and returning None for missing files, letting callers handle the absence.
71%