project_loader: support architectures for CI
Metadata
Current evaluation
Implemented CI-friendly architectures keyword syntax with build-on and run-on fields. Merged after reviewer approval and passing CI checks. Resolves #1685. Minor discussions on validation error messages and test timeouts did not block the merge.
Suggested action: —
No scores available.
Issue body
- [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] If this is a bugfix. Have you checked that there is a bug report open for the issue you are trying to fix on [bug reports](https://bugs.launchpad.net/snapcraft)?
- [x] If this is a new feature. Have you discussed the design on the [forum](https://forum.snapcraft.io)?
- [x] Have you successfully run `./runtests.sh static`?
- [x] Have you successfully run `./runtests.sh unit`?
-----
This PR resolves #1685 by changing the `architectures` keyword according to the new CI-friendly proposal [here](https://forum.snapcraft.io/t/4675). This adds support for new syntax to that keyword:
architectures:
- build-on: [<build arch 1>, <build arch 2>]
run-on: [<run arch 1>, <run arch 2>]
Please see the proposal for more details.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Implemented CI-friendly architectures keyword syntax with build-on and run-on fields. Merged after reviewer approval and passing CI checks. Resolves #1685. Minor discussions on validation error messages and test timeouts did not block the merge. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged to implement CI-friendly architecture syntax using build-on and run-on fields in the project loader, resolving issue #1685. Validation error improvements for typos were noted but deferred. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged changes adding CI-friendly build-on and run-on keys to the architectures keyword in the project loader. Resolves #1685. Validation error messaging and a test timeout were addressed prior to merge. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #132 ci: switch to public runners and more architectures | craft-grammar | merged | Merged. Updated CI configuration to use public runners and support additional architectures. Approved by two reviewers with all checks passing, the change modified a single file with four added lines. | |
| #442 fix(platform): automatically vectorise architectures | craft-application | merged | Merged fix allowing the Platform model to accept string or list values for build-on and build-for architectures, resolving issue #1874. Approved by two reviewers, passed CI, and modified two files. | |
| #1027 feat: allow building on other compatible architectures | craft-application | merged | Merged. Enables cross-architecture builds via CRAFT_BUILD_ON. Approved by two reviewers with all CI checks passing. Modifies ten files to support compatible packaging. Follow-up work tracked in PR #1040. |