Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remote build: platform definitions cannot be parsed by Launchpad #4858

Closed
mr-cal opened this issue Jun 17, 2024 · 3 comments · Fixed by #4994
Closed

remote build: platform definitions cannot be parsed by Launchpad #4858

mr-cal opened this issue Jun 17, 2024 · 3 comments · Fixed by #4994
Labels
bug Actual bad behavior that don't fall into maintenance or documentation triaged

Comments

@mr-cal
Copy link
Collaborator

mr-cal commented Jun 17, 2024

Bug Description

Problem 1

Launchpad fails to parse many platforms definitions.

We need to complete canonical/craft-platforms#5 and sync with the Launchpad team to consume that build planner.

Problem 2

The legacy remote builder would only allow snaps that could build a single artefact on a build-on architecture. That is an architecture could only appear once in all build-on entries.

The new remote builder doesn't restrict this. This is a problem because Launchpad's API appears not to distinguish between build-on and build-for, so it is not clear Snapcraft can request builds.

To Reproduce

snapcraft remote-build --platform amd64

Environment

n/a

snapcraft.yaml

name: remote-build-platforms-error
version: "1.0"
summary: test
description: test
confinement: strict

base: core24

platforms:
  amd64:
    build-on: amd64
  arm64:
    build-on: amd64

parts:
  my-part:
    plugin: nil

Relevant log output

Multiple builds match the current platform.
Recommended resolution: Check the "--platform" and "--build-for" parameters.

Additional context

No response

Copy link

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-3069.

This message was autogenerated

@mr-cal
Copy link
Collaborator Author

mr-cal commented Jul 31, 2024

@mr-cal
Copy link
Collaborator Author

mr-cal commented Aug 21, 2024

This is mostly fixed by the upstream bug but #4994 solves scenarios with the --platform argument.

@mr-cal mr-cal added the bug Actual bad behavior that don't fall into maintenance or documentation label Aug 21, 2024
@mr-cal mr-cal changed the title New remote builder fails with some platforms definitions remote build: platform definitions cannot be parsed by Launchpad Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Actual bad behavior that don't fall into maintenance or documentation triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant