-
Notifications
You must be signed in to change notification settings - Fork 446
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: do not ignore 'Cancel build? negative response #4929
Comments
BONUS almost certainly a related bug. If you answer 'Y' to the
Here's the log.
|
I can confirm this is a bug with this code block: snapcraft/snapcraft/commands/remote.py Lines 233 to 245 in 3325af0
In addition to fixing this bug, using exit code constants from the |
Thank you for reporting us your feedback! The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-3140.
|
Fixes a bug where the remote builder would ignore the user and always clean the launchpad project. Also drops some magic values in favor of constants. Fixes #4929 Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>
Fixed via #5081 |
Bug Description
snapcraft remote-build supports starting a remote-build from a client, killing snapcraft, then recovering/continuing the build from a different place.
In the past pressing ctrl-c on a remote build would just drop to the prompt. Now, you get asked to 'cleanup' with y/n options. Choose 'no' and it does the cleanup anyway, and terminates the remote build. This seems counterintuitive.
To Reproduce
snapcraft remote-build --launchpad-accept-public-upload
Cancel builds? [Y/n]:
prompt, say 'n'Snapcraft will say 'Cleaning up' and while doing so, the build will be killed in launchpad.
Environment
snapcraft.yaml
Additional context
We discussed this on 2024-07-19 at the snapcraft clinic.
The text was updated successfully, but these errors were encountered: