← 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 PR #122 via 1e66d842 (implementation 865dda31), adding layer-hash state tracking and expected overlay-hash computation for sequencer planning.

Resolution: closed resolved

Reason: PR #122 was merged into main by merge commit 1e66d842. Commit 865dda31 added the layer-state helper needed to track part hashes and maintain overlay consistency.

Evaluated by: mr-cal-bot

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
stealth/space-bunny-alpha — closed resolved Merged PR #122 via 1e66d842 (implementation 865dda31), adding layer-hash state tracking and expected overlay-hash computation for sequencer planning.
stealth/space-bunny-alpha — closed resolved Merged craft-parts#122 via commit 865dda31, adding an overlay layer-state helper to track layer hashes and compute expected values during planning.
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 PR #119 for CRAFT-489, adding overlay hashes to build and stage states so overlay-dependent steps are correctly invalidated; merge commit af08815b.
81%
#116 overlay: compute layer validation hash (CRAFT-478) craft-parts merged Merged in c7469d81: added CRAFT-478 LayerHash computation from overlay parameters and the previous layer hash, plus persistence and recovery helpers.
78%
#111 overlay: add overlayfs helpers (CRAFT-462) craft-parts merged Merged PR #111 via commit 7424a039, adding OverlayFS mount/unmount helpers and detection for special files and directories used in filesystem layering.
73%
#138 many: handle layer reapplication (CRAFT-83, CRAFT-85) craft-parts merged Merged PR #138 (21e146f2), adding layer-state tracking and reapplication of upper overlay layers to preserve modified files, whiteouts, and opaque directories.
71%
#113 overlay: add overlay support to parts (CRAFT-470) craft-parts merged Merged #113 via commit 2d90e608, adding overlay work-directory definitions, overlay subdirectory properties, and detection of overlay parameters and visibility for CRAFT-470.
70%