← Back to issue list

feat(extensions): support filtering by base

View original Github issue

Metadata

Project
snapcraft
Number
#6214
Type
pull request
State
open
Author
gcomneno
Labels
—
Created
Updated
Closed
—

Current evaluation

Adds `--base` filtering to `snapcraft extensions`, mirroring `plugins --base`, plus unit tests (+67/-4, 2 files). Fixes #4360. Open 160 days, no reviewers; lint/fast+slow unit test CI jobs failing, author says unrelated (core24 spread).

Suggested action: needs review

Reason: Small, self-contained, conventional-commit-titled change that closes triaged enhancement issue snapcraft#4360 and mirrors the existing `snapcraft plugins --base` implementation in snapcraft/commands/plugins.py, so it is ready for maintainer review. However, actionability is capped because `lint / files`, `test / Fast tests (ubuntu-24.04)` and `test / Slow tests` are red, and the author's only comment (2026-04-25) dismisses only the spread failure in tests/spread/core24/try without evidence that the unit-test/lint failures are pre-existing — I could not read the actual diff to confirm (only the description was provided), which is the main gap behind the moderate confidence.

Evaluated by: mr-cal-bot

Impact: 30 Quick Win: 11 Complexity: 20 Confidence: 70 Actionability: 45

Issue body

Fixes #4360. This adds a `--base` option to `snapcraft extensions`, matching the existing `snapcraft plugins --base` behaviour. With this change, users can list only the extensions supported by a specific base, for example: snapcraft extensions --base core24 Changes: - add `--base` to the `extensions` command - filter listed extensions by supported base when provided - reject unsupported and maintenance bases - add unit coverage for base filtering and errors Validation: - `pytest -q tests/unit/commands/test_list_extensions.py -rs` - `ruff check snapcraft/commands/extensions.py tests/unit/commands/test_list_extensions.py`

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 30
Quick Win: 11
Complexity: 20
Confidence: 70
Actionability: 45
needs review Adds `--base` filtering to `snapcraft extensions`, mirroring `plugins --base`, plus unit tests (+67/-4, 2 files). Fixes #4360. Open 160 days, no reviewers; lint/fast+slow unit test CI jobs failing, author says unrelated (core24 spread).
qwen/qwen3.6-35b-a3b
Impact: 45
Quick Win: 14
Complexity: 25
Confidence: 70
Actionability: 40
needs review Adds --base option to snapcraft extensions command, filtering by supported base. Small change (+67/-4 lines). CI failing on lint and test checks; author claims unrelated.
qwen/qwen3.6-35b-a3b
Impact: 30
Quick Win: 24
Staleness: 15
Complexity: 20
Confidence: 70
needs review Adds --base option to snapcraft extensions command to filter by supported base. PR has recent activity, 0 reviewers, and some failing CI tests.
qwen/qwen3.8-27b
Impact: 25
Quick Win: 20
Staleness: 55
Complexity: 20
Confidence: 78
needs review Adds --base option to snapcraft extensions command for filtering by base, mirroring plugins --base. 128 days old, 0 reviewer engagement, 2 unrelated CI failures, feature still unimplemented on main.
qwen/qwen3.6-35b-a3b
Staleness: 65
Complexity: 15
Confidence: 85
needs review Adds --base filtering to snapcraft extensions command, matching plugins behavior. Includes unit tests and rejects unsupported bases. Currently awaiting maintainer review with minor unrelated CI failures.
qwen3.6-35b-a3b-mtp-q6
Staleness: 55
Complexity: 20
Confidence: 75
needs review Adds a --base flag to snapcraft extensions to filter supported bases, matching plugins behavior. Includes unit tests and passes local validation. Currently inactive for 73 days with no maintainer feedback.

Update history

Date Change
updated

Related work

  • Related To: snapcraft#4360 (confidence 95%)

    Triaged issue requesting the `--base` option for `snapcraft extensions`; the PR body states it fixes this issue.

Related issues

Issue Project State Summary Similarity
#6507 feat: add --base option to the extensions command snapcraft closed PR #6507 adds --base option to the extensions command to filter extensions by base, closing issue #4360. PR is closed without being merged.
76%
#4360 Add "--base=core2x"" option to "snapcraft extensions" snapcraft open Add --base option to 'snapcraft extensions' for parity with 'plugins --base'. Triaged, unimplemented, with open PR #6214.
71%
#2012950 Can "snapcraft extensions" support "--base=" option like plugins? snapcraft (launchpad) open Asks for a `--base=` filter on `snapcraft extensions`, matching `plugins --base`. Unimplemented at HEAD; tracked on GitHub as canonical/snapcraft#4360 with an open, unreviewed PR #6214.
70%