build: pack charm in provided environment when using bases (CRAFT-313)
Metadata
Current evaluation
Merged PR #411 (CRAFT-313) to pack each viable bases configuration in its provided build environment; merge commit 523c6fb0.
Resolution: closed resolved
Reason: PR #411 was approved and merged as 523c6fb0, with implementation commit af4650c2. It now runs pack inside a launched environment for each bases configuration with an available build-on base.
Evaluated by: mr-cal-bot
No scores available.
Issue body
For each bases configuration, check if a build-on base can be
provided. If so, launch environment and execute pack command
inside each to build charm for each viable bases config index.
Future work should extend the pack command to include the parent's
verbose or quiet mode flags for consistency.
Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #411 (CRAFT-313) to pack each viable bases configuration in its provided build environment; merge commit 523c6fb0. | |
| stealth/space-bunny-alpha | — | closed resolved | PR #411 merged, adding packing in the provided build environment for each viable bases configuration under CRAFT-313. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged implementation for packing charms in provided environments per bases configuration (CRAFT-313). Approved by two reviewers, modifying two files (+175/-30). Future work will add verbose and quiet mode flag support. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged PR implements CRAFT-313 by updating the pack command to automatically launch build environments and construct charms for each viable bases configuration index. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #390 build/pack: add support for bases in managed mode (CRAFT-131) | charmcraft | merged | Merged #390 via eac93bba (implementation d080cf67), adding managed-mode bases support to build/pack, host/base matching diagnostics, validation, and list-based build results. | |
| #383 commands/build: charm file name format support for bases (CRAFT-66) | charmcraft | merged | Merged PR #383 (commit 951f6aaa; merge 1c839909) added bases-aware charm filename formatting and tests, retaining the legacy runtime path pending default-bases configuration. | |
| #389 build & pack: add and use default ubuntu 20.04 bases configuration (CRAFT-266) | charmcraft | closed | Closed unmerged for rework; the Ubuntu 20.04 default-bases changes were reworked in charmcraft#414 and merged in 921dd85d (implementation: 3bfa45c0). | |
| #892 (internal) Remove CharmcraftBuilddBaseConfiguration and use BuilddBase directly (CRAFT-1278, CRAFT-1356). | charmcraft | merged | Merged #892, removing CharmcraftBuilddBaseConfiguration and using BuilddBase directly; commit 57313bc3 was merged as 834a4fd4. | |
| #541 charm_builder: build dependencies locally (CRAFT-537) | charmcraft | merged | Merged in charmcraft#541 via 0d14d8a2: charm_builder now builds dependencies locally in a persistent staging venv, avoiding binary dependencies and repeat rebuilds during repacks. | |
| #148 feat(charm): add a build planner for bases charms | craft-platforms | merged | Merged PR #148 added a Charm build planner for legacy charms using the bases key, addressing CHARMCRAFT-630 in commit 16ff218. | |
| #936 Allow `charmcraft pack` override build series upon command line parameters | charmcraft | closed | Closed without code changes: maintainer pointed to the existing `charmcraft pack --bases-index=1` (added in PR #392) which already covers the use case; the author confirmed it solved the request. | |
| #1060 pack: add recursive bundle packing | charmcraft | merged | Merged recursive bundle packing into Charmcraft, updating the pack flow and tests; PR #1060 landed as commit 9fc2467c. | |
| #861 No support for paralell builds for multi-base charms | charmcraft | open | Enhancement request (triaged) to let `charmcraft pack` build the bases/platforms of a multi-base charm in parallel; still unimplemented, scoped upstream to the whole craft ecosystem (CHARMCRAFT-655). | |
| #299 [WIP] charmcraft config: introduce support for bases keyword | charmcraft | closed | Abandoned WIP; bases support landed separately through merged PRs #339 (9af3b121) and #341 (b76170f9), covering long- and short-form configurations. |