Max summary length is limited in metadata output
Metadata
Current evaluation
Metadata summary validation incorrectly enforced a 78-character limit, causing charmcraft errors. The report was closed without a fix, merge, or code changes, indicating it was abandoned or handled externally.
Suggested action: —
No scores available.
Issue body
### Bug Description
This needs to become a str: https://github.com/canonical/charmcraft/blob/2d1e6d367ccf20a4debb0cbb3715c315dfcd390e/charmcraft/models/metadata.py#L42
### To Reproduce
https://github.com/canonical/metacontroller-operator/actions/runs/10074781102/job/27851666796#step:4:827
### Environment
Anywhere
### charmcraft.yaml
```shell
n/a
```
### Relevant log output
```shell
Staging charm
Priming charm
charmcraft internal error: ValidationError(model='CharmMetadata', errors=[{'loc': ('summary',), 'msg': 'ensure this value has at most 78 characters', 'type': 'value_error.any_str.max_length', 'ctx': {'limit_value': 78}}])
Failed to execute charmcraft in instance.
Full execution log: '/home/runner/.local/state/charmcraft/log/charmcraft-20240724-101950.375990.log'
```
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen3.6-35b-a3b-mtp-q6 | — | — | Metadata summary validation incorrectly enforced a 78-character limit, causing charmcraft errors. The report was closed without a fix, merge, or code changes, indicating it was abandoned or handled externally. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed and linked to internal ticket CRAFT-3146. The report identified a validation error in charmcraft metadata where a 78-character limit on the summary field triggered a max_length constraint during execution. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without a repository fix. The 78-character validation error for metadata summaries was deferred to internal Jira ticket CRAFT-3146. No code changes or merges were applied. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without resolution. The metadata summary length validation error remains unfixed. No pull request or code change was implemented, indicating the issue was abandoned. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without resolution, effectively abandoned. The report identified a 78-character validation error on the metadata summary field that requires removal to accept longer strings. No pull request was merged to address the constraint. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1568 `charmcraft pack` fails with a false positive on the summary check | charmcraft | closed | The false positive validation error stemmed from a strict 78-character summary limit. The limit was increased to 200 characters to accommodate existing charms. The issue is closed, with follow-up PRs required to trim summaries on a few affected charms. | |
| #1759 fix(metadata): allow long summaries in output | charmcraft | merged | Merged to resolve #1758 by removing output validation for metadata summaries. Input remains capped at 200 characters, but output checks were dropped to prevent failures since charmhub accepts longer strings. Approved by two reviewers and passed CI. | |
| #1598 Linter to warn if the summary field is over 78 characters | charmcraft | open | Feature request to add a linter warning when charm summary exceeds 78 chars. Unimplemented; summary limit is currently 200 chars in project.py with a comment referencing this issue. No maintainer response beyond a bot Jira ticket sync. Last activity 381 days ago. |