-
Notifications
You must be signed in to change notification settings - Fork 457
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
feat(remotebuild)!: filter build-plan with --build-for, drop --platform #5216
Conversation
5743349
to
43ac71a
Compare
Allows using '--platform' or '--build-for' to filter entries in the 'architectures' or 'platforms' keys in a project file. If the project file doesn't contain an 'architectures' or 'platforms' entry, then '--platform' and '--build-for' define the architectures to build for. Signed-off-by: Callahan Kovacs <[email protected]>
43ac71a
to
c8345bc
Compare
Signed-off-by: Callahan Kovacs <[email protected]>
After discussing with @tigarmo and @lengau, we've agreed to remove RationaleLaunchpad isn't using craft-platforms and there isn't an API to pick which platforms to build. Even though we have restrictions in place to prevent
The good news is that |
Signed-off-by: Callahan Kovacs <[email protected]>
tests/spread/core22/remote-build/snaps/build-for-with-archs/snapcraft.yaml
Show resolved
Hide resolved
tests/spread/core20/remote-build-legacy/snaps/architectures/expected-snaps.txt
Outdated
Show resolved
Hide resolved
Signed-off-by: Callahan Kovacs <[email protected]>
Signed-off-by: Callahan Kovacs <[email protected]>
Signed-off-by: Callahan Kovacs <[email protected]>
Signed-off-by: Callahan Kovacs <[email protected]>
Spread test failure unrelated, merging |
…rm (#5216) * Allows using `--build-for` to filter entries in the `architectures` or `platforms` keys in a project file. * Drops the `--platform` argument. * Catches Launchpad errors, which were percolating up as internal errors. Signed-off-by: Callahan Kovacs <[email protected]>
tox run -m lint
?tox run -e test-py310
? (supported versions:py39
,py310
,py311
,py312
)--build-for
to filter entries in thearchitectures
orplatforms
keys in a project file.--platform
argument. For more information, see this comment.There are still ways for remote builds to fail due to Launchpad's limited processing of the
platforms
key. That is out of scope here.The 🎉 passing 🎉 remote spread tests are here.
Fixes #4992
(CRAFT-3277)