← Back to issue list

remote-build success message lists duplicate artifact names

View original Github issue

Metadata

Project
craft-application
Number
#1093
Type
issue
State
open
Author
kirtisingh05
Labels
Created
Updated
Closed

Current evaluation

Duplicate artifact names in remote-build success message due to URL-keyed dict not deduplicating by filename. Valid bug with open PR craft-application#1094 addressing it.

Suggested action: keep open

Reason: This is a valid bug with a clear root cause: artifact_downloads is keyed by URL so re-running remote-build adds duplicate paths to .values(). An open PR (craft-application#1094) addresses this exact issue with deduplication logic, so the issue should remain open until the fix is merged.

Impact: 60 Quick Win: 42.0 Staleness: 40 Complexity: 30 Confidence: 80 Support Request: 0

Issue body

### Bug Description ## Bug description When `remote-build` is run multiple times, the success message lists the same artifact filenames multiple times. ## Root cause `artifact_downloads` is a `dict[url → path]`. Different build runs produce different URLs but the same filenames. Since deduplication keys on URL, duplicate paths end up in `.values()`, causing the same snap name to appear multiple times in the output. ## Related canonical/snapcraft#6230 ### To Reproduce 1. Run `snapcraft remote-build` on a core22 project with multiple architectures 2. Wait for build to complete 3. Run `snapcraft remote-build` again on the same project 4. Observe the success message artifact names are listed twice ### part yaml ```shell name: my-snap base: core22 version: '0.1' summary: test snap description: test snap grade: devel confinement: devmode architectures: - build-on: amd64 - build-on: arm64 parts: my-part: plugin: nil ``` ### Relevant log output ```shell Build completed. Log files: ... Artifacts: my-snap_0.1_amd64.snap, my-snap_0.1_arm64.snap, my-snap_0.1_amd64.snap, my-snap_0.1_arm64.snap (same artifacts listed twice after running remote-build a second time) ```

Evaluation history

Date Model Scores Action Summary
qwen3.6-35b-a3b-mtp-q6
Impact: 60
Quick Win: 42.0
Staleness: 40
Complexity: 30
Confidence: 80
Support Request: 0
keep open Duplicate artifact names in remote-build success message due to URL-keyed dict not deduplicating by filename. Valid bug with open PR craft-application#1094 addressing it.
qwen/qwen3.6-35b-a3b
Staleness: 20
Complexity: 25
Confidence: 85
Support Request: 5
keep open remote-build success message lists duplicate artifact filenames after multiple runs. Root cause identified in dict keying logic. Maintainer analyzed the issue and proposed filtering solutions; awaiting implementation.
qwen3.6-35b-a3b-mtp-q6
Staleness: 5
Complexity: 35
Confidence: 85
Support Request: 5
keep open remote-build success message lists duplicate artifact filenames when run multiple times. Root cause identified in artifact_downloads dict deduplication; maintainer proposed filtering solutions. Awaiting implementation.
qwen3.6-35b-a3b-mtp-q6
Staleness: 10
Complexity: 10
Confidence: 85
Support Request: 0
needs triage remote-build success message duplicates artifact filenames across runs due to URL-keyed deduplication. Author provided root cause and fix. Currently unlabelled and awaiting maintainer triage.

Update history

No update history recorded yet.

Related work

  • Duplicate Of: snapcraft#6230 (confidence 90%)

    snapcraft#6230 was closed as a duplicate, noting the bug originates from craft-application and is addressed by craft-application#1094.

  • Likely Fixed By: craft-application#1094 (confidence 85%)

    Open PR that deduplicates artifact names in remote-build success message using set comprehension, with plans to filter by build request ID.

Related issues

Issue Project State Summary Similarity
#6230 Remote-build success message lists same atifact multiple times (for core22) snapcraft closed Closed as duplicate. Root cause is craft-application returning historical builds, causing duplicate artifact listings. Fix will be implemented via a new issue and PR in the craft-application repository to deduplicate by filename.
78%
#1094 fix(remote): deduplicate artifact names in remote-build success message craft-application open Fixes duplicate artifact names in remote-build success message by deduplicating via set comprehension. Author acknowledges current approach masks root cause and is working on filtering by build request ID instead.
76%