← Back to issue list

cli: add lifecycle command stubs (CRAFT-764)

View original Github issue

Metadata

Project
snapcraft
Number
#3630
Type
pull request
State
merged
Author
cmatsuoka
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #3630 as commit 2759ad4af, adding pull, build, stage, and prime command stubs with legacy fallbacks and reorganizing CLI tests.

Resolution: closed resolved

Reason: PR #3630 was approved and merged into snapcraft/7.0 as commit 2759ad4af, providing lifecycle command handlers intended for subsequent parts-lifecycle execution.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Add handlers for the pull, build, stage, and prime commands. These will be later used do run the parts lifecycle. All other commands fall back to their legacy implementations. Also moved CLI tests to a separate package for better organization, and fix existing tests for the version command. Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com> - [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [ ] Have you successfully run `./runtests.sh static`? - [ ] Have you successfully run `./runtests.sh tests/unit`? -----

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #3630 as commit 2759ad4af, adding pull, build, stage, and prime command stubs with legacy fallbacks and reorganizing CLI tests.
stealth/space-bunny-alpha — closed resolved Merged PR #3630 into snapcraft/7.0, adding pull, build, stage, and prime lifecycle command stubs with legacy fallbacks, reorganizing CLI tests, and fixing version-command tests.
qwen/qwen3.6-35b-a3b — — Merged into snapcraft/7.0. Added CLI stubs for pull, build, stage, and prime phases, falling back to legacy. Reorganized CLI tests and fixed version command tests. Approved and passed CI.
qwen3.6-35b-a3b-mtp-q6 — — Merged into snapcraft/7.0. Implemented CLI stubs for pull, build, stage, and prime lifecycle commands. Refactored CLI tests into a separate package and corrected version command tests. Code coverage unchanged.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#29 commands: add basic lifecycle commands craft-application merged Merged PR #29 added basic lifecycle commands in commit 3e47b0dd, changing eight files with 100% diff coverage.
74%
#64 commands: add lifecycle step commands rockcraft merged Merged PR #64 as commit 044d7cb6, adding pull, overlay, build, stage, and prime commands to help debug OCI whiteout handling in part layers.
72%
#148 clean cmd: migrate to use new lifecycle attribs snapcraft merged Merged PR #148 by sergiusens: migrated the clean command to the new lifecycle attributes, dropping mocks in favour of real elements (+87/-156, 5 files). Merged as commit 71e1db7bd.
71%
#1283 Make all lifecycle commands available charmcraft closed Lifecycle parity was delivered in PR #1538 (5e3b927c), with the remaining pack migration completed by PR #1704 (cfc37020).
71%