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
- Run
snapcraft remote-build on a core22 project with multiple architectures
- Wait for build to complete
- Run
snapcraft remote-build again on the same project
- Observe the success message artifact names are listed twice
part yaml
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
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)
Bug Description
Bug description
When
remote-buildis run multiple times, the success message liststhe same artifact filenames multiple times.
Root cause
artifact_downloadsis adict[url → path]. Different build runsproduce different URLs but the same filenames. Since deduplication
keys on URL, duplicate paths end up in
.values(), causing the samesnap name to appear multiple times in the output.
Related
canonical/snapcraft#6230
To Reproduce
snapcraft remote-buildon a core22 project with multiple architecturessnapcraft remote-buildagain on the same projectpart yaml
Relevant log output