← Back to issue list

overlay: compute layer validation hash (CRAFT-478)

View original Github issue

Metadata

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

Current evaluation

Merged in c7469d81: added CRAFT-478 LayerHash computation from overlay parameters and the previous layer hash, plus persistence and recovery helpers.

Resolution: closed resolved

Reason: PR canonical/craft-parts#116 was approved and merged as commit c7469d81, adding the requested layer validation hash implementation.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Obtain a layer hash based on layer parameters and the previous layer's validation hash. `LayerHash` also provides helper methods to persist and recover the hash value. Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com> - [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 in c7469d81: added CRAFT-478 LayerHash computation from overlay parameters and the previous layer hash, plus persistence and recovery helpers.
stealth/space-bunny-alpha — closed resolved Merged PR canonical/craft-parts#116 (c7469d81), adding overlay layer validation hashing and LayerHash persistence/recovery helpers.
qwen/qwen3.6-35b-a3b — — 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.
qwen3.6-35b-a3b-mtp-q6 — — Merged. Implements layer validation hash computation and persistence helpers. The layer_hash argument was made mandatory, with LayerHash.load returning None for missing files so callers handle the absence. Resolves CRAFT-478.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#122 overlay: add layer state management helper (CRAFT-506) craft-parts merged Merged PR #122 via 1e66d842 (implementation 865dda31), adding layer-hash state tracking and expected overlay-hash computation for sequencer planning.
78%
#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.
74%