← Back to issue list

overlay: add layer visibility helpers (CRAFT-477)

View original Github issue

Metadata

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

Current evaluation

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.

Suggested action:

No scores available.

Issue body

Add helper functions to obtain the sets of migratable files and directories from each overlay layer considering whited out entries and opaque directories. 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
qwen/qwen3.6-35b-a3b 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.
qwen3.6-35b-a3b-mtp-q6 Merged. Adds helper functions to retrieve migratable files and directories from overlay layers, handling whiteout entries and opaque directories. Tests updated to use lower_dir and upper_dir naming.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#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.
78%
#113 overlay: add overlay support to parts (CRAFT-470) craft-parts merged Merged after three approvals. Adds overlay support to parts by defining the work directory and properties for overlay subdirectories and visibility. 149 additions, 37 deletions across six files. Removed Final typing hint for Python 3.7.
76%
#121 overlay: migrate overlay data to stage and prime (CRAFT-468, CRAFT-82) craft-parts merged Merged after two approvals and CI. Migrates overlay data to stage and prime, translates overlayfs whiteouts and opaque directories to OCI, and cleans shared areas. Collision detection is deferred.
74%
#122 overlay: add layer state management helper (CRAFT-506) craft-parts merged 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.
74%
#163 oci: handle opaque whiteouts in new layer (usrmerge) rockcraft merged Merged. Updates add_layer() to handle opaque whiteouts and explicit symlink removals, ensuring overlay-script removals properly hide base layer symlinks. Approved by two reviewers, passed CI, and modified five files.
74%