upload-metadata not working
Metadata
Current evaluation
Legacy `snapcraft upload-metadata` rejected the positional snap-file argument, unlike `push-metadata`. Fixed by merged PR #3975 (commit d685a2314); current command accepts snap_file and is unit tested.
Suggested action: close resolved
Reason: The reported `Error: unrecognized arguments` was a parser-level failure in the legacy upload-metadata command, which at the time did not accept a positional snap-file. Commit d685a2314 ("cli: accept snap file in legacy upload-metadata command", PR #3975) added exactly that positional argument, and the current StoreUploadMetadataCommand in snapcraft/commands/upload.py defines a `snap_file` positional (lines 253-259) covered by passing unit tests (test_upload_metadata). The reporter's `push-metadata` command no longer exists in the codebase, confirming they hit the older broken legacy path.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
35
Quick Win:
27
Complexity:
10
Confidence:
90
Actionability:
85
|
close resolved | Legacy `snapcraft upload-metadata` rejected the positional snap-file argument, unlike `push-metadata`. Fixed by merged PR #3975 (commit d685a2314); current command accepts snap_file and is unit tested. | |
| stealth/space-bunny-alpha |
Impact:
32
Quick Win:
24
Complexity:
12
Confidence:
92
Actionability:
85
|
close resolved | upload-metadata rejected the snap-file path argument. Fixed by merged PR #3975 (d685a2314); current code accepts the positional snap_file and is covered by unit tests. Issue still open. | |
| stealth/space-bunny-alpha |
Impact:
30
Quick Win:
27
Complexity:
5
Confidence:
99
Actionability:
95
|
close resolved | upload-metadata rejected the documented snap-file path. PR #3975 added the missing positional argument, and current code still accepts snap_file, resolving the reported behavior. | |
| qwen3.6-35b-a3b-mtp-q6 |
Impact:
20
Quick Win:
18
Staleness:
95
Complexity:
10
Confidence:
75
Support Request:
70
|
close not a bug | upload-metadata command fails with unrecognized arguments; push-metadata works. Issue stems from command renaming and documentation inconsistency. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
10
Confidence:
85
Support Request:
20
|
close stale | Reports snapcraft upload-metadata fails with unrecognized arguments while push-metadata works. Issue is unlabelled, has zero comments, and has been inactive for nearly 4 years. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
85
Complexity:
20
Confidence:
85
Support Request:
40
|
close not a bug | The 'upload-metadata' command is reported as not working, while 'push-metadata' works. The user notes the blog post mentions 'upload-metadata', suggesting a documentation or command name mismatch. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
10
Confidence:
85
Support Request:
20
|
close stale | Report that snapcraft upload-metadata command fails with unrecognized arguments error, while push-metadata works. Unlabelled, no maintainer comments, over 3 years old. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
canonical/snapcraft#3975
(confidence 95%)
Merged PR (commit d685a2314) whose title matches the issue exactly: accepting a snap file in the legacy upload-metadata command.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #3975 cli: accept snap file in legacy upload-metadata command | snapcraft | merged | PR #3975 was merged as commit d685a2314, adding a snap-file path argument to legacy upload-metadata and related documentation/environment fixes. |