← Back to issue list

Enable craft-parts partitions feature

View original Github issue

Metadata

Project
snapcraft
Number
#4463
Type
issue
State
closed
Author
mr-cal
Labels
—
Created
Updated
Closed

Current evaluation

Partitions support landed in merged PR #4493 (commit 070c7e995), enabling partition-backed component lifecycle data and completing #4463.

Resolution: closed resolved

Reason: The maintainer closed #4463 after marking it completed via merged PR #4493. Commit 070c7e995 conditionally enables craft-parts partitions when components are defined and adds component lifecycle support.

Evaluated by: mr-cal-bot

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
stealth/space-bunny-alpha — closed resolved Partitions support landed in merged PR #4493 (commit 070c7e995), enabling partition-backed component lifecycle data and completing #4463.
stealth/space-bunny-alpha — closed resolved Snapcraft enabled craft-parts partitions, added a default partition for snap data, and added spread tests for partition variables and keywords. Completed via merged PR #4493.
stealth/space-bunny-alpha — closed resolved Enabled craft-parts partitions, defined a default partition for snap data, and added spread tests via merged PR #4493.
stealth/space-bunny-alpha — closed resolved Enabled partitions via merged PR #4493, defining a default partition for snap data without changing user behavior and adding tests for partition environment variables and lifecycle keywords.
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.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/snapcraft#4493 (confidence 100%)

    Merged implementation that fixed #4463 in commit 070c7e995.

  • Related To: canonical/snapcraft#4487 (confidence 98%)

    Earlier draft implementation closed unmerged and replaced by PR #4493.

Related issues

Issue Project State Summary Similarity
#754 Document Partitions craft-parts closed Partitions documentation was added and the issue completed by merged PR canonical/craft-parts#763 in commit cdcc9dbc.
82%
#763 partitions feature documentation craft-parts merged Merged developer-facing partitions documentation in commit cdcc9dbc, completing CRAFT-3030 after approval by two reviewers.
81%
#683 Feature/namespaced partitions craft-parts closed Namespaced-partition support was merged via PR #684 (commit 188d9166) and released in craft-parts 1.28.0.
80%
#489 partitions: add feature and validation craft-parts merged Merged as commit d363fa7c, adding the opt-in partitions feature to LifecycleManager/Dirs, partition name validation with new partition errors, and integration tests for CRAFT-1843. Follow-up PRs #493, #497 and #517 extended it.
78%
#682 Merge `feature/namespaced-partitions` into `main` craft-parts closed Namespaced partitions were merged in #684 (188d9166) and released in craft-parts 1.28.0 via #686, enabling core24 component support.
78%
#600 feat(partitions): handle namespaced partitions in utils craft-parts merged Merged into main in commit f387afa5 (PR #600), adding namespaced-partition handling to four partition utilities and resolving craft-parts#596.
77%
#4465 Create partitions for components snapcraft closed Component partition support was added by merged PR #4493 (commit 070c7e995), enabling partitions for component projects and covering the requested behavior.
77%
#493 partitions: validate usage of partitions in parts craft-parts merged Merged into craft-parts in commit ed20df71 (#493), adding validation of partition usage in filepaths for parts' organize, overlay, stage and prime keywords (CRAFT-1844).
76%
#599 feat(partitions): validate namespaced partitions craft-parts merged Merged PR #599 as commit 06a5f999, adding namespaced partition validation during LifecycleManager initialization and fixing #595 (CRAFT-2032).
76%
#652 feat(partitions): clean partition directories craft-parts merged Merged #652 via commit 797109e8, adding partition-directory cleanup when partitions are enabled and fixing #634 (CRAFT-2417).
76%