Skip to content

remote-build success message lists duplicate artifact names #1093

Description

@kirtisingh05

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

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions