← Back to issue list

Include charm revision for upload errors of type already exists in database

View original Github issue

Metadata

Project
charmcraft
Number
#826
Type
issue
State
open
Author
hemanthnakkina
Labels
Created
Updated
Closed

Current evaluation

Feature request to include charm revision number in upload error messages when a package already exists in the database. Maintainer acknowledged and opened snapstore-server bug 1987284; blocked on Charmhub API providing the revision in error responses. No activity in ~1 year.

Suggested action: keep open

Reason: Maintainer facundobatista acknowledged the request on 2022-08-22 and opened snapstore-server bug 1987284 to track the Charmhub-side change needed. The issue is blocked by an external dependency (Charmhub API must include revision in error responses), not abandoned. Code in store.py still passes through error messages verbatim without revision context, confirming the feature remains unimplemented.

Impact: 25 Quick Win: 15.0 Staleness: 55 Complexity: 40 Confidence: 78 Support Request: 10

Issue body

Is it possible to include charm revision as well if a charm upload fails with error message that says the package already exists in the database? Details: Uploaded a charm which resulted in Gateway Timeout ``` charmcraft upload --release latest/edge --name horizon-k8s horizon-k8s_ubuntu-20.04-amd64.charm Issue encountered while processing your request: [504] Gateway Time-out. Full execution log: '/home/hemanth/snap/charmcraft/common/cache/charmcraft/log/charmcraft-20220810-114700.938763.log' ``` Re-uploaded the charm which resulted in error with message package already exists. ``` charmcraft upload --release latest/edge --name horizon-k8s horizon-k8s_ubuntu-20.04-amd64.charm Upload failed with status 'rejected': - review-error: Cannot insert package. An upload with that digest (SHA3-384: '7058526548d07e54d68d8b19f23b89eb9697c3da543e4ab1f207e24f7399aeb214e0671086f9524730181844d993f6ba') already exists in the database. ``` Charmcraft CLI does not provide any mapping of charm revisions with the SHA. How to get the revision number of the charm that is just uploaded? Otherwise the simplest mechanism is to include the revision number in the error message that says 'already exist in the database'. Thoughts?

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 25
Quick Win: 15.0
Staleness: 55
Complexity: 40
Confidence: 78
Support Request: 10
keep open Feature request to include charm revision number in upload error messages when a package already exists in the database. Maintainer acknowledged and opened snapstore-server bug 1987284; blocked on Charmhub API providing the revision in error responses. No activity in ~1 year.
qwen/qwen3.6-35b-a3b
Staleness: 80
Complexity: 15
Confidence: 65
Support Request: 5
keep open Request to include charm revision number in 'already exists' upload error messages. Acknowledged by maintainer as dependent on Charmhub/Store changes; currently awaiting upstream implementation with no recent activity.
qwen3.6-35b-a3b-mtp-q6
Staleness: 90
Complexity: 15
Confidence: 85
Support Request: 10
close stale Request to include charm revision in upload already exists error messages. Acknowledged by maintainer but deferred to upstream Charmhub/Store. Inactive for over a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 90
Complexity: 15
Confidence: 70
Support Request: 10
close stale Feature request to include charm revision in upload error messages when a package already exists. Maintainer acknowledged the idea but noted it depends on the Charmhub backend providing the data, and opened a related ticket there.
qwen3.6-35b-a3b-mtp-q6
Staleness: 80
Complexity: 20
Confidence: 70
Support Request: 10
close stale Request to include charm revision in upload error messages when a package already exists in the database. Blocked on upstream Charmhub/Store changes. A Store ticket was opened to provide this data. Awaiting upstream implementation.

Update history

No update history recorded yet.

Related work

  • Blocked By: canonical/snapstore-server#1987284 (confidence 85%)

    Maintainer explicitly opened this Launchpad bug (bugs.launchpad.net/snapstore-server/+bug/1987284) as the tracking ticket for Charmhub to provide revision info in upload error responses.

Related issues

No related issues found above the similarity threshold.