Charmcraft release should be able to attach a resource during revision creation
Metadata
Current evaluation
Closed as abandoned on 2021-07-21 after the maintainer could not reproduce the failure and received no follow-up.
Resolution: closed stale
Reason: The maintainer reported that Charmcraft release worked with resource attachment in their test and requested reproducible details. After no response, they asked the reporter to reopen if more information became available; no resolving PR or commit was identified.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Charmcraft uses the same command to release a charm revision and to attach resources to a revision. However, `charmcraft release` doesn't allow for a resource to be attached in the moment the revision is being created, so it forces the user to run the same command twice:
```
$ charmcraft resource-revisions jenkins-agent-k8s jenkins-agent-image
Revision Created at Size
2 2021-05-25 143B
1 2021-05-25 143B
$ charmcraft status jenkins-agent-k8s
Track Channel Version Revision
latest stable 3 3
candidate ↑ ↑
beta ↑ ↑
edge 2 2
$ charmcraft release jenkins-agent-k8s -r 3 -c edge --resource=jenkins-agent-image:2
Store failure! Resource 'jenkins-agent-image' is not valid for charm with id 'dsE0SLdKWW3RvK8fnJaqGCyNZkk6CRYo' and revision 3; Resource 'jenkins-agent-image' with revision 2 does not exist for charm with id 'dsE0SLdKWW3RvK8fnJaqGCyNZkk6CRYo' and revision 3 (full execution logs in /...)
$ charmcraft release jenkins-agent-k8s -r 3 -c edge
Revision 3 of charm 'jenkins-agent-k8s' released to edge
$ charmcraft release -r 3 -c edge jenkins-agent-k8s --resource jenkins-agent-image:2
Revision 3 of charm 'jenkins-agent-k8s' released to edge (attaching resources: 'jenkins-agent-image' r2)
```
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed stale | Closed as abandoned on 2021-07-21 after the maintainer could not reproduce the failure and received no follow-up. | |
| stealth/space-bunny-alpha | — | closed stale | Closed as abandoned: the maintainer could not reproduce resource attachment during initial revision creation, requested more information, and received no follow-up before closing on 2021-07-21. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without resolution. A maintainer could not reproduce the reported failure to attach resources during initial revision creation and requested additional details. The issue was abandoned due to lack of follow-up. | |
| qwen/qwen3.6-35b-a3b | — | — | Charmcraft release fails to attach resources during initial revision creation. Maintainers requested reproduction steps and demonstrated a working scenario. Without further details, the issue was closed as unactionable. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. Maintainer requested reproduction steps and provided a counter-example showing the feature works in some cases. Issue abandoned pending further user feedback. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Abandoned and closed as unactionable. The maintainer could not reproduce the reported limitation and requested further details. No fix was implemented, leaving the feature request pending additional information from the author. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #320 charmcraft release doesn't pay attention to resources | charmcraft | closed | Closed 2021-11-17 without a charmcraft fix: maintainers agreed resource validation belongs in Charmhub, tracking it as Launchpad snapstore-server bug #1951271. | |
| #850 charmcraft release failed for revision that is in the charmhub | charmcraft | closed | Closed as out of scope: Charmhub auto-release exposed charm revisions missing released resource revisions; responsibility was moved to the Launchpad–Charmhub integration, with no Charmcraft code fix. | |
| #682 Allow for resources with a rev of 0 during `charmcraft release` | charmcraft | merged | Merged PR #682 fixed charmcraft release rejecting resource revision 0, resolving #679. Implementation f17debfa landed via merge commit 434361d0. |