Charm with name beginning `test` fails unit tests
Metadata
Current evaluation
Charm names starting with 'test' cause pytest to misidentify the generated charm class (e.g. TestApplicationCharm) as a test class, failing unit tests. Maintainers discussed on 2025-11-05 and prefer rejecting such names at init time. No fix implemented yet; no labels or assignee.
Suggested action: keep open
Reason: Maintainers @james-garner-canonical and @benhoyt actively discussed the issue on 2025-11-05, with @benhoyt stating 'We (Charm Tech) would be keen on KISS: Have Charmcraft reject charm names that begin with test.' The bug is confirmed reproducible, the fix direction is agreed upon, but no code change has landed (no `__test__` or name-rejection logic found in init.py). The issue remains valid and actionable.
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
30
Quick Win:
22.5
Staleness:
45
Complexity:
25
Confidence:
72
Support Request:
5
|
keep open | Charm names starting with 'test' cause pytest to misidentify the generated charm class (e.g. TestApplicationCharm) as a test class, failing unit tests. Maintainers discussed on 2025-11-05 and prefer rejecting such names at init time. No fix implemented yet; no labels or assignee. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
75
Complexity:
15
Confidence:
60
Support Request:
0
|
needs triage | Charmcraft generates unit test failures when charm names start with test due to pytest collecting the charm class. Currently under discussion among contributors regarding whether to reject such names or add a __test__ flag. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
65
Complexity:
20
Confidence:
75
Support Request:
10
|
needs triage | Charmcraft generates unit tests that fail when charm names start with test due to pytest collection conflicts. Currently under discussion among maintainers regarding whether to reject such names or add configuration. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
60
Complexity:
20
Confidence:
85
Support Request:
0
|
keep open | Charmcraft generates unit tests that fail when charm names start with test due to pytest collection conflicts. Maintainers discussed and proposed rejecting such names with a helpful error message. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
45
Complexity:
20
Confidence:
85
Support Request:
0
|
keep open | Charms named starting with test fail unit tests as pytest collects the charm class as a test class. Under discussion, the Charm Tech team leans toward rejecting such names in Charmcraft while suggesting alternatives like foo-test. |
Update history
No update history recorded yet.
Related issues
No related issues found above the similarity threshold.