Max summary length is limited in metadata output
Metadata
Current evaluation
Removed the 78-character metadata-output limit by merging PR #1759 (commit 83c16214), while preserving the 200-character input limit.
Resolution: closed resolved
Reason: The issue was fixed by merged PR #1759, commit 83c16214, which allows longer summaries in generated metadata while retaining the 200-character limit for input metadata.
Evaluated by: mr-cal-bot
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 |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Removed the 78-character metadata-output limit by merging PR #1759 (commit 83c16214), while preserving the 200-character input limit. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR #1759 (commit 83c16214), allowing metadata output summaries longer than 78 characters while retaining the 200-character input limit. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR #1759 (83c16214), allowing summaries longer than 78 characters in metadata output while retaining the 200-character input limit. | |
| 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. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/charmcraft#1759
(confidence 100%)
Merged fix commit 83c16214 directly addressed the metadata summary-length restriction.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1759 fix(metadata): allow long summaries in output | charmcraft | merged | Merged PR #1759 (commit 83c16214) allowed metadata output summaries longer than 78 characters while retaining the 200-character input limit, fixing #1758. | |
| #1597 fix: adjust max summary length | charmcraft | merged | Merged PR #1597 in commit ac159e49, raising the summary limit from 78 to 200 characters and documenting the recommendation to keep summaries shorter. |