remote build: fails with some architecture definitions
Metadata
Current evaluation
Remote-build architecture handling was fixed by merged PR canonical/snapcraft#4793 (commit 53ec55cef), with companion support in canonical/craft-application#343.
Resolution: closed resolved
Reason: PR canonical/snapcraft#4793 was merged as commit 53ec55cef to prevent remote builds failing with certain architecture definitions. The maintainer also cited companion fix canonical/craft-application#343.
Evaluated by: mr-cal-bot
No scores available.
Issue body
### Bug Description
Snapcraft does not handle some definitions of architectures for remote builds and fails immediately with no error or explanation.
It's possible that other variations of `architectures:` will fail too, so we should add a set of regression tests.
### To Reproduce
snapcraft remote-build
### Environment
n/a
### snapcraft.yaml
```shell
name: test-snap
version: '0.1'
summary: test
description: test
grade: devel
confinement: devmode
base: core22
architectures:
- build-on: arm64
parts:
my-part:
plugin: nil
```
### Relevant log output
```shell
All data sent to remote builders will be publicly available. Are you sure you want to continue? [y/N]: y
remote-build is experimental and is subject to change. Use with caution.
Build completed.
Log files:
Artifacts:
```
### Additional context
From @jnsgruk on the snapcrafters channel ([source](https://matrix.to/#/!cniCqhKpzVvOBMHAVt:matrix.org/$XrCuSXWoFQNDYBnro0kQCbS2ffAabd1lwbf4uipS33Y?via=matrix.org&via=ubuntu.com&via=xentonix.net))
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Remote-build architecture handling was fixed by merged PR canonical/snapcraft#4793 (commit 53ec55cef), with companion support in canonical/craft-application#343. | |
| stealth/space-bunny-alpha | — | closed resolved | Remote-build architecture failures were fixed by merged PR canonical/snapcraft#4793 (commit 53ec55cef), with companion support in canonical/craft-application#343. | |
| qwen/qwen3.8-27b | — | closed resolved | Remote-build failed silently on certain architectures/platforms definitions. Fixed in snapcraft PR #4793 (commit 53ec55cef) with companion support in craft-application PR #343, per maintainer mr-cal. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed remote-build handling of architecture definitions and multi-platform selections via Snapcraft PR #4793 (commit 53ec55cef), with support from craft-application PR #343. | |
| qwen/qwen3.6-35b-a3b | — | — | Remote build failures with specific architecture definitions or comma-separated --build-for flags were fixed via PR #4793 and craft-application#343. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed. The remote-build architecture parsing failure was resolved via PR #4793 and craft-application PR #343, which corrected how snapcraft handles architecture definitions and build targets. | |
| qwen/qwen3.6-35b-a3b | — | — | Resolved via merged PRs #4793 and craft-application#343, fixing the remote-build failure with specific architecture definitions. The issue is closed. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Remote build failures with specific architecture definitions were fixed. The issue was closed after resolution via PR #4793 and craft-application#343, which correctly parse missing build targets and comma-separated architecture lists. |
Update history
| Date | Change |
|---|---|
| updated |
Related work
-
Likely Fixed By:
canonical/snapcraft#4793
(confidence 100%)
Merged fix for architecture-specific remote-build failures, recorded as commit 53ec55cef.
-
Likely Fixed By:
canonical/craft-application#343
(confidence 95%)
Companion architecture-handling support cited by the maintainer alongside #4793.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #4793 fix(remote-build): don't fail with certain archs | snapcraft | merged | Merged into the hotfix branch as commit 53ec55cef, fixing architecture-specific remote-build failures from #4780, with companion support in craft-application#343. | |
| #4543 fix(remote): parse comma-separated architectures | snapcraft | merged | Merged in snapcore/snapcraft#4543 as b8eed87c0, fixing comma-separated remote-build architectures and enforcing --build-for/--build-on exclusivity. | |
| #4495 remote build: odd errors for certain `architectures:` setups | snapcraft | closed | Remote-build architecture handling was improved; #4994 (5cd480725) fixed CLI validation and #5005 (ad3b54bbd) rejected unsupported duplicate build-on artifacts. | |
| #2007789 `snapcraft remote-build` does not support long syntax of the `architectures` top-level key. | snapcraft (launchpad) | closed | Fixed by migrating `snapcraft remote-build` to the core22 implementation, which correctly parses the long `architectures` syntax. | |
| #2042167 remote-build doesn't support shorthand architecture format | snapcraft (launchpad) | closed | Remote-build now handles shorthand architectures consistently; PR #4793 fixed the underlying bug in commit 53ec55cef. | |
| #1885150 Cannot use --build-on, architecture list is already set in snapcraft.yaml. | snapcraft (launchpad) | closed | Resolved in Snapcraft 8.7.0: remote-build added --build-for filtering for projects defining architectures or platforms, replacing the unusable --build-on workaround. | |
| #2060269 arch list not recognized by launchpad builder | snapcraft (launchpad) | closed | Fixed in snapcraft#4793 (commit 53ec55cef) which resolved shorthand architecture format handling for remote builds, with companion support in craft-application#343. | |
| #4995 remote build: error if multiple artefacts can be built on the same architecture | snapcraft | closed | Fixed by merged PR #5005 (commit ad3b54bbd): remote builds now fail early when multiple artifacts share a build-on architecture. | |
| #4996 remote build: fix cross-compiling errors and `build-for: all` errors | snapcraft | closed | Fixed by merged PR canonical/snapcraft#5265 (commit f94da8f13), sending build-on architectures to Launchpad for correct cross-compilation and build-for: all behavior. | |
| #4653 feat(craft-application): support remote build | snapcraft | closed | Closed unmerged; superseded by canonical/snapcraft#4664 (commit 57d184af7), which landed the same craft-application remote build support for core24. |