← 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 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.

Suggested action:

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
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 issues

Issue Project State Summary Similarity
#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.
75%
#4463 Enable craft-parts partitions feature snapcraft closed 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.
74%
#1185 fix: Set CRAFT_DEFAULT_* env vars when the default partition is aliased craft-parts merged Merged fix for setting CRAFT_DEFAULT_* environment variables when the default partition is aliased. Resolves #1171 and CRAFT-4653. Approved by reviewers, passed all CI checks, and updated 6 files.
72%
#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.
72%
#597 Create envvars for namespaced partitions craft-parts closed Closed without implementation. The request to create environment variables for namespaced partitions was abandoned or superseded, with no pull requests or code changes submitted.
71%