Enable craft-parts partitions feature
Metadata
Current evaluation
Implemented craft-parts partitions by defining a default partition for snap data without altering existing behavior. Added spread tests for partition environment variables and keywords. Completed and merged via pull request #4493.
Suggested action: —
No scores available.
Issue body
### What needs to get done
Snapcraft should enable the partitions feature, define the `default` partition, and use the `default` partition for snap data. There should be no change in behavior for users.
New spread tests should be added to test the partitions feature. For example:
- the envvars `$CRAFT_STAGE`, `$CRAFT_DEFAULT_STAGE`, `$CRAFT_PRIME`, and `$CRAFT_DEFAULT_PRIME` work as expected in parts
- keywords like `stage`, `prime`, and `organize` work with partitions
### Why it needs to get done
To support components in snapcraft
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Implemented craft-parts partitions by defining a default partition for snap data without altering existing behavior. Added spread tests for partition environment variables and keywords. Completed and merged via pull request #4493. | |
| qwen/qwen3.6-35b-a3b | — | — | Resolved via merged pull request #4493. Implemented the craft-parts partitions feature by defining a default partition for snap data, preserving existing user behavior. Added spread tests for partition environment variables and keywords. | |
| qwen/qwen3.6-35b-a3b | — | — | Completed via merge of pull request #4493. The craft-parts partitions feature was enabled, the default partition was established for snap data, and spread tests were added to verify environment variables and staging keywords. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Enabled the craft-parts partitions feature by defining a default partition for snap data, preserving existing behavior. Added spread tests for partition environment variables and keywords. Resolved and merged via pull request #4493. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Implemented craft-parts partitions support by defining and using a default partition for snap data while preserving existing behavior. Added spread tests for partition environment variables and keywords. Resolved via merged pull request #4493. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #754 Document Partitions | craft-parts | closed | Completed and merged via pull request #763 in canonical/craft-parts, adding the requested Partitions documentation to enable application integration and reuse. | |
| #4465 Create partitions for components | snapcraft | closed | Implemented component partition creation in snapcraft's lifecycle manager. Completed and merged via pull request #4493, adding lifecycle logic and spread tests to verify partition organization. | |
| #682 Merge `feature/namespaced-partitions` into `main` | craft-parts | closed | Merged. The feature/namespaced-partitions branch was integrated into main and craft-parts was released to support snapcraft components on core24. The issue was closed. | |
| #178 Support partition alias | imagecraft | merged | Merged to add craft-parts partition aliasing support and update snap libraries. Approved by two reviewers and passed most CI checks prior to integration. | |
| #634 Clean partitions directories | craft-parts | closed | Implemented partition directory cleanup during craft-parts part cleaning to prevent dirty build environments. Resolved and merged via pull request #652. | |
| #600 feat(partitions): handle namespaced partitions in utils | craft-parts | merged | Merged following two reviewer approvals and passing CI. Updates utility functions to handle namespaced partitions across eight files (+229/-72 lines). Resolves #596 and CRAFT-2303. | |
| #602 feat(partitions): create envvars for namespaced partitions | craft-parts | merged | Merged implementation of environment variables for namespaced partitions, generating CRAFT_DEFAULT_STAGE and CRAFT_COMPONENT_FOO_STAGE. Resolves #597, removes xfail decorators from #600, and passed CI review. | |
| #493 partitions: validate usage of partitions in parts | craft-parts | merged | Implemented partition validation for filepaths in the organize, overlay, stage, and prime keywords within parts. Merged after reviewer approval and passing CI checks, modifying seven files to resolve CRAFT-1844. | |
| #763 partitions feature documentation | craft-parts | merged | Merged documentation for the partitions feature targeting application developers. Approved by two reviewers, the update adds 66 lines and removes 5 across nine files, resolving CRAFT-3030. |