regression: remote-build doesn't accept comma-seperated architectures
Metadata
Current evaluation
Fixed in PR #4543, the comma-separated architecture parsing regression reappeared in Snapcraft 8.2.7. The issue was closed as superseded, with the maintainer noting the regression will be tracked in a new issue.
Suggested action: —
No scores available.
Issue body
### Bug Description
In snapcraft 8.0.1, `snapcraft remote-build --architectures=amd64,arm64` fails to split a list of architectures.
[This logic](https://github.com/snapcore/snapcraft/blob/ffbdabf53de21606d9d12e15f16d4bca5e4423a5/snapcraft_legacy/cli/remote.py#L267) needs to be added to the remote-build cli handler.
### To Reproduce
`snapcraft remote-build --architectures=amd64,arm64`
### Environment
n/a
### snapcraft.yaml
```shell
n/a
```
### Relevant log output
```shell
2024-01-10 10:21:08.174 remote-build error: Architecture not supported by the remote builder.
The following architectures are not supported by the remote builder: ['amd64,arm64'].
Please remove them from the architecture list and try again.
```
### Additional context
_No response_
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Fixed in PR #4543, the comma-separated architecture parsing regression reappeared in Snapcraft 8.2.7. The issue was closed as superseded, with the maintainer noting the regression will be tracked in a new issue. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed in PR #4543, the regression resurfaced in Snapcraft 8.2.7. Closed as the maintainer will track the recurring architecture parsing failure in a new report. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed in PR #4543, but the regression reoccurred in Snapcraft 8.2.7. Closed as superseded pending a new tracking issue. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Fixed in PR #4543, but the regression resurfaced in Snapcraft 8.2.7. Closed and superseded by a new tracking issue for the recurring architecture parsing bug. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Initially fixed in PR #4543, but the regression reappeared in Snapcraft 8.2.7. The issue was closed and superseded by a new tracking issue to address the recurring comma-separated architecture parsing failure. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2007789 `snapcraft remote-build` does not support long syntax of the `architectures` top-level key. | snapcraft (launchpad) | open | snapcraft remote-build validation error for long-form architectures syntax; likely fixed by PR #4793/craft-application PR #343 | |
| #4543 fix(remote): parse comma-separated architectures | snapcraft | merged | Merged after approval. Resolves #4516 by enforcing mutual exclusivity between --build-for and --build-on, and adding comma-separated architecture parsing for remote builds. Proceeded despite unrelated spread test failures. |