← Back to issue list

feat(partitions): create envvars for namespaced partitions

View original Github issue

Metadata

Project
craft-parts
Number
#602
Type
pull request
State
merged
Author
mr-cal
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #602 (commit a8615eec) adds CRAFT_<PARTITION>_STAGE/PRIME env vars for namespaced partitions, drops #600's xfails, and fixes #597.

Resolution: closed resolved

Reason: PR #602 was approved by 2 reviewers and merged to main as commit a8615eec, adding CRAFT_DEFAULT_STAGE, CRAFT_COMPONENT_FOO_STAGE and matching PRIME variables via _translate_partition_env in craft_parts/executor/environment.py; it closes issue #597 and removed the xfail markers introduced by #600.

Evaluated by: mr-cal-bot

No scores available.

Issue body

- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? ----- Create environment variables for namespaced partitions. For example, ```python lcm = craft_parts.LifecycleManager( partitions = ["default", "component/foo", "component/bar-baz"], ... ) ``` would result in the following environment variables: ``` $CRAFT_STAGE $CRAFT_DEFAULT_STAGE $CRAFT_COMPONENT_FOO_STAGE $CRAFT_COMPONENT_BAR_BAZ_STAGE $CRAFT_PRIME $CRAFT_DEFAULT_PRIME $CRAFT_COMPONENT_FOO_PRIME $CRAFT_COMPONENT_BAR_BAZ_PRIME ``` Removes all `xfail` decorators added by #600. Fixes #597 (CRAFT-2304)

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #602 (commit a8615eec) adds CRAFT_<PARTITION>_STAGE/PRIME env vars for namespaced partitions, drops #600's xfails, and fixes #597.
stealth/space-bunny-alpha — closed resolved Merged PR #602 as commit a8615eec, adding STAGE and PRIME environment variables for namespaced partitions, removing #600's xfails, and fixing #597.
qwen/qwen3.6-35b-a3b — — 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.
qwen3.6-35b-a3b-mtp-q6 — — Merged PR implements environment variables for namespaced partitions, generating variables like $CRAFT_COMPONENT_FOO_STAGE. Resolves #597 and removes xfail decorators from #600.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/craft-parts#597 (confidence 95%)

    Tracking issue explicitly named in the PR body ('Fixes #597'); its summary confirms it was closed by commit a8615eec.

  • Related To: canonical/craft-parts#600 (confidence 90%)

    Earlier merged PR (f387afa5) adding namespaced-partition handling in utils; #602 removes all xfail decorators it added.

  • Related To: canonical/craft-parts#596 (confidence 55%)

    Sibling namespaced-partition issue resolved by the preceding PR #600.

Related issues

Issue Project State Summary Similarity
#597 Create envvars for namespaced partitions craft-parts closed Implemented namespaced-partition STAGE and PRIME environment variables in merged PR #602, commit a8615eec.
84%
#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.
82%
#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).
78%
#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%
#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).
73%
#607 fix(partitions): use base prime dir for getting primed stage packages craft-parts closed Closed unmerged and superseded by the namespaced-partition work merged in #627 via commit 9fe38d11.
73%
#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.
72%
#801 fix: partitions break when using special characters craft-parts merged Merged PR #801 fixed CRAFT-3031 lifecycle failures for partition names containing numbers and hyphens; merged as commit ceaf4cda.
72%
#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.
72%
#1110 feat: cleaning with partitions craft-parts merged Merged PR #1110 adds partition-aware cleanup of shared areas for CRAFT-4585, following prerequisite #1109; it is recorded on main as commit 0584c19c.
72%