Closed Hook25 closed 2 weeks ago
This should be resolved as part of https://github.com/canonical/craft-application/issues/337
We've made some improvements to retrying API calls to Launchpad that may help for the 'EDIT2' report. I haven't been able to reproduce this locally.
Concerning the hanging when logging in in a CI instance, unfortunately we're not going to address that. We've decided not to support using remote-build in CI. CI builds for snaps should be orchestrated via snapcraft.io.
Bug Description
When running
snapcraft remote-build
the process sometimes hangs forever on:(Example)
Re-running the build manually offline (enabling trace level logging) what seems to happen is that the last log line before the process gets stuck is
Re-trying multiple times, after this line what happens is that this line directly precedes the opening of the oauth page on launchpad. There may be some issue/race condition here?
EDIT: this seems to happen even after storing the credentials in
~/.local/share/snapcraft/launchpad-credentials
EDIT2: this seems to happen sometimes in other spots, the one above is the most likely but it seems to be connected to this function somehow: (I stumbled upon this issue in a completely different step of the remote build, same function was blocking after Ctrl+C, all of the log below!)To Reproduce
I'm currently running
Without any credentials file in the launchpad-credentials, seems to fail about 50% of the times
Environment
ArchLinux, snapcraft 8.2.8 CI/CD on ubuntu/latest (alegedly, I couldn't interrupt it to get the stacktrace but it is probably the same issue)
snapcraft.yaml
Relevant log output
Log for EDIT2:
Additional context
No response