extensions: support core22
Metadata
Current evaluation
Merged into snapcraft/7.0. Implements core22 support for extensions by updating the API and processing pipeline. Confirmed apply_extensions compatibility, passed code review and CI, and increased coverage by 1.43%.
Suggested action: —
No scores available.
Issue body
This adds some variations to the API and changes where things are
processed when compared to the original implementation.
For integration it is rather hard to test until there is an extension
implementation to test with, so the current code only makes sure that
use of apply_extensions does not break the current implementation.
Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
- [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 `./runtests.sh static`?
- [x] Have you successfully run `./runtests.sh tests/unit`?
-----
CRAFT-861
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged into snapcraft/7.0. Implements core22 support for extensions by updating the API and processing pipeline. Confirmed apply_extensions compatibility, passed code review and CI, and increased coverage by 1.43%. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into snapcraft/7.0. Introduces API variations and processing adjustments to support core22 bases for extensions while maintaining backward compatibility. Passed static and unit tests with 100% diff coverage. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into snapcraft/7.0. Updated the extensions API to support core22, modified processing locations, and ensured apply_extensions remains backward compatible. Achieved 100% diff coverage. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #3679 Expand extensions | snapcraft | merged | Merged into snapcraft/7.0 after approval and passing CI checks. The changes expand extensions, address CRAFT-948, and increased overall coverage by 0.17%. | |
| #3798 extensions: add core22 gnome | snapcraft | merged | Merged into main. Added core22 gnome extension support. Approved by reviewer, passed CI, and increased test coverage by 0.09%. Changes modified 10 files with 707 additions and 1 deletion. | |
| #4110 extensions: parse snapcraft.yaml before expanding extensions | snapcraft | merged | Merged fix for the expand-extensions command to parse snapcraft.yaml before expanding extensions. Resolves core22 parsing issues with parse-info and advanced grammar keywords. Approved, passed CI, and merged into main. | |
| #3714 spread: enable core22 | snapcraft | merged | Merged into snapcraft/7.0 after reviewer approval and passing CI checks. The change enables core22 in the spread configuration across 36 files (+112/-58 lines). Code coverage remained unchanged upon merge. | |
| #5198 Drop core18 extensions | snapcraft | closed | Legacy core18 extensions were removed from snapcraft_legacy after initial inactivity. The enhancement was completed and merged via pull request #6019, eliminating obsolete base references and tests. | |
| #3678 commands: list-extensions and extensions alias | snapcraft | merged | Merged into snapcraft/7.0. Implements the list-extensions command and extensions alias, integrating new codebase extensions with legacy ones via inheritance. Approved by reviewers and passed CI checks. | |
| #4606 feat(app): support extensions in core24 | snapcraft | merged | Added extension support to core24. Merged after approval by two reviewers, passing all CI checks with 100% coverage on modified lines. The change updated nine files, adding 183 lines and removing 30. | |
| #5378 test: fix extension tests | snapcraft | merged | Merged unit test updates for expand_extensions(). No code changes were needed as existing logic already handles core22 and core24 correctly. Approved by two reviewers and passed CI checks prior to merge. | |
| #1986634 "snapcraft extension" does not recognize core22 extensions | snapcraft (launchpad) | closed | The snapcraft extension command failed to recognize core22 extensions despite listing them. It was closed without resolution or comments, indicating abandonment or stale status due to prolonged inactivity. | |
| #292 extensions: add cli commands | rockcraft | merged | Merged addition of list-extensions and expand-extensions CLI commands matching Snapcraft semantics, plus test refactoring. Resolves #274. Approved by two reviewers, passed CI, and modified 15 files (+452/-109 lines). |