← Back to issue list

`charmcraft test` v4.0.1 lost `--list` support

View original Github issue

Metadata

Project
charmcraft
Number
#2482
Type
issue
State
open
Author
taurus-forever
Labels
Created
Updated
Closed

Current evaluation

charmcraft test --list was dropped in v4.0.1 when the custom test command was replaced by upstream spread (PR #2385); reporter requests restoring the --list wrapper for CI use. No maintainer response or labels yet.

Suggested action: needs triage

Reason: The issue has no labels, no maintainer comments, and no assignee, so it has not been triaged. The regression is real and reproducible: PR #2385 (commit b7730efc, 'feat!(test): switch from the custom test command to upstream') removed the custom test command that supported --list, and a grep for '--list' in the current source finds no such option, confirming it is still missing. Restoring a thin --list passthrough to spread is a small, well-scoped change, so the issue should be kept open and triaged rather than closed.

Impact: 35 Quick Win: 26.25 Staleness: 70 Complexity: 25 Confidence: 75 Support Request: 10

Issue body

### Bug Description Hi, The `charmcraft test --list` used to work in charmcraft v3 and has lost `--list` in v4.0 ([here](https://github.com/canonical/charmcraft/pull/2385)). It was a useful wrapper for users for `spread -list`. We used it in CI as well. It would be nice to restore it. Tnx in advance! P.S. references: * https://github.com/jnsgruk/zinc-k8s-operator/pull/389/files * https://matrix.to/#/!fcfzhmtmKApekMQcxX:ubuntu.com/$rQlo3T7B4KKbixL_WSmvYkaQnNQ3LuqQhQRJuDijmTM?via=ubuntu.com&via=matrix.org * https://matrix.to/#/!fcfzhmtmKApekMQcxX:ubuntu.com/$-v1EvYDM_cs2pgxZ59AXzTaG1eLTtErCccl_SAZkuaY?via=ubuntu.com&via=matrix.org ### To Reproduce ``` > git clone https://github.com/canonical/postgresql-operator && cd postgresql-operator > charmcraft test --list Error: unrecognized arguments: --list ``` ### Environment ``` > snap list charmcraft Name Version Rev Tracking Publisher Notes charmcraft 4.0.1 7517 latest/stable canonical✓ classic ``` ### charmcraft.yaml ```yaml https://github.com/canonical/postgresql-operator/blob/main/charmcraft.yaml ``` ### Relevant log output ```shell none ```

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 35
Quick Win: 26.25
Staleness: 70
Complexity: 25
Confidence: 75
Support Request: 10
needs triage charmcraft test --list was dropped in v4.0.1 when the custom test command was replaced by upstream spread (PR #2385); reporter requests restoring the --list wrapper for CI use. No maintainer response or labels yet.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 30
Confidence: 90
Support Request: 10
needs triage charmcraft test --list flag removed in v4.0.1, causing CI failures. Open for 8 months with no maintainer response or labels. Needs triage to assess restoration or alternative.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 30
Confidence: 90
Support Request: 10
needs triage charmcraft test --list flag removed in v4.0.1, breaking CI workflows. Issue opened 230 days ago with no maintainer response or labels.
qwen3.6-35b-a3b-mtp-q6
Staleness: 80
Complexity: 45
Confidence: 80
Support Request: 20
needs triage Reports removal of charmcraft test --list flag in v4.0.1, previously available in v3 and used in CI. Currently unlabelled with no maintainer response after 227 days.
qwen3.6-35b-a3b-mtp-q6
Staleness: 80
Complexity: 35
Confidence: 85
Support Request: 15
needs triage Regression in charmcraft v4.0.0 removed the --list flag from charmcraft test, breaking CI workflows using it as a spread wrapper. Open, zero comments, inactive for 208 days. Awaiting triage and flag restoration.

Update history

No update history recorded yet.

Related work

  • Caused By: charmcraft#2385 (confidence 90%)

    PR #2385 (commit b7730efc) switched the test command from the custom implementation to upstream spread, which is where --list support was lost.

Related issues

Issue Project State Summary Similarity
#2105 Unable to enable spread verbose with `charmcraft test` charmcraft open charmcraft test cannot forward -vv to spread for verbose CI output. Custom test command was removed in #2385 in favor of the upstream spread-based command, and PR #1988 proposing a --verbose flag was closed as superseded by that migration.
70%