← Back to issue list

charmcraft upload foo.charm --release=edge gives internal error

View original Github issue

Metadata

Project
charmcraft
Number
#456
Type
issue
State
closed
Author
heitorPB
Labels
—
Created
Updated
Closed

Current evaluation

Fixed the upload --release regression in PR #457, merged as b5d735b4 and shipped in Charmcraft 1.1.2 to the candidate and edge channels.

Resolution: closed resolved

Reason: The maintainer confirmed it was a regression and proposed a fix. PR #457 was merged as commit b5d735b4, and the fix shipped in Charmcraft 1.1.2 via the candidate and edge channels.

Evaluated by: mr-cal-bot

No scores available.

Issue body

```bash $ charmcraft upload slurmd.charm --release=edge Revision 21 of 'slurmd' created charmcraft internal error! TypeError: release() missing 1 required positional argument: 'resources' (full execution logs in /home/h/snap/charmcraft/common/charmcraft-log-61cp9xr8) ``` This command used to work, but it is not working anymore. Am I missing something? Documentation says nothing about `resources`. ``` $ snap info charmcraft name: charmcraft summary: The charming tool publisher: Canonical✓ store-url: https://snapcraft.io/charmcraft license: Apache-2.0 description: | Charmcraft enables charm creators to build, publish, and manage charmed operators for Kubernetes, metal and virtual machines. commands: - charmcraft snap-id: gcqfpVCOUvmDuYT0Dh5PjdeGypSEzNdV tracking: latest/edge refresh-date: today at 09:38 -03 channels: latest/stable: 1.1.1 2021-07-15 (513) 51MB classic latest/candidate: 1.1.1 2021-07-09 (513) 51MB classic latest/beta: 1.1.1 2021-07-09 (513) 51MB classic latest/edge: 1.1.0+72.gccc10f3 2021-07-20 (534) 51MB classic installed: 1.1.0+72.gccc10f3 (534) 51MB classic ```

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed the upload --release regression in PR #457, merged as b5d735b4 and shipped in Charmcraft 1.1.2 to the candidate and edge channels.
stealth/space-bunny-alpha — closed resolved Fixed the upload --release regression by adding resource handling; PR #457 merged as b5d735b4 and shipped in Charmcraft 1.1.2 to the candidate and edge channels.
stealth/space-bunny-alpha — closed resolved Fixed the upload --release regression in PR #457, merged as b5d735b4 and shipped in Charmcraft 1.1.2 to the candidate and edge channels.
qwen3.6-35b-a3b-mtp-q6 — — A regression causing a TypeError during charmcraft upload --release=edge was fixed via a pull request. The fix was included in version 1.1.2 and released to the candidate and edge channels.
qwen/qwen3.6-35b-a3b — — A regression causing an internal TypeError during charm uploads with --release=edge was fixed via a pull request. The patch was released in charmcraft 1.1.2, deployed to candidate and stable channels, and immediately available on edge.
qwen/qwen3.6-35b-a3b — — A regression in charmcraft upload --release=edge caused a TypeError. Fixed via a pull request and resolved in version 1.1.2, with the patch released to candidate and edge channels.
qwen3.6-35b-a3b-mtp-q6 — — A regression causing charmcraft upload --release=edge to fail with a TypeError was fixed via a pull request. The patch was released in version 1.1.2 to the candidate and edge channels, resolving the issue.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/charmcraft#457 (confidence 100%)

    Merged fix for the missing resources argument during upload with --release.

Related issues

Issue Project State Summary Similarity
#457 Allow including resources when releasing charms directly in the upload command (CRAFT-381). charmcraft merged Merged PR #457 (b5d735b4), adding --resource support to upload --release and fixing #456; the fix shipped in Charmcraft 1.1.2.
72%
#368 feature request: charmcraft release=last-revision charmcraft closed No code change was needed: charmcraft upload <charm> --release=edge already uploads and releases the newly created revision.
71%
#126 Add a "--release" option to the "upload" command charmcraft closed Implemented charmcraft upload --release in canonical/charmcraft#255 (merge 9064a3f3, feature bc06a62a); #457 added resource support and shipped in Charmcraft 1.1.2.
71%
#747 Release 1.6.0 charmcraft merged Merged release PR #747, publishing Charmcraft 1.6.0 with a two-file update; commit 4762d363 was merged as e3658ce8.
70%
#699 Release 1.5 charmcraft merged Charmcraft 1.5 was released by merging canonical/charmcraft#699, which updated release metadata in two files.
70%