← Back to issue list

refactor: change PackCommand parent

View original Github issue

Metadata

Project
snapcraft
Number
#4797
Type
pull request
State
merged
Author
mr-cal
Labels
Created
Updated
Closed

Current evaluation

Merged a refactor updating the PackCommand parent class to eliminate duplicated code via upstream simplifications. Approved by two reviewers, passed CI, and reduced the codebase by 23 lines across one file.

Suggested action:

No scores available.

Issue body

- [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [x] Have you successfully run `tox run -m lint`? - [x] Have you successfully run `tox run -e test-py310`? (supported versions: `py39`, `py310`, `py311`, `py312`) ----- Upstream simplifications (https://github.com/canonical/craft-application/pull/340 and https://github.com/canonical/craft-application/pull/341) allow us to remove some duplicated code.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged a refactor updating the PackCommand parent class to eliminate duplicated code via upstream simplifications. Approved by two reviewers, passed CI, and reduced the codebase by 23 lines across one file.
qwen3.6-35b-a3b-mtp-q6 Merged a refactor to change the PackCommand parent class, removing duplicated code via upstream craft-application simplifications. The change passed lint and tests, and was merged despite a minor Codecov coverage warning.
qwen3.6-35b-a3b-mtp-q6 Merged a refactor updating the PackCommand parent class, leveraging upstream craft-application simplifications to eliminate duplicated code. The change passed lint and test checks and was successfully integrated.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1230 pack: refactor business logic out of pack command class charmcraft merged Merged after two reviewers approved. Refactors business logic out of the pack command class, building on #1229 and fixing #1147. Changes modify four files, adding 307 lines and removing 335.
78%
#341 fix(PackCommand): remove 'parts' argument craft-application merged Merged the fix to remove the 'parts' argument from PackCommand. Simplified after PR #340, the change passed CI, received two approvals, and was successfully integrated into the main branch.
75%
#1565 cli: add the pack command snapcraft merged Merged the pack CLI command, replacing the previous assemble implementation. Approved by one reviewer, passed CI checks, and updated seven files with 164 additions and 16 deletions.
73%
#1704 craft-application migration cleanup: pack command charmcraft merged Merged cleanup PR removing an outdated pack command retained for comparison during the craft-application migration. Approved by two reviewers with passing CI, the change deletes 1309 lines across six files.
70%