Skip to content

Failure to report back built status causes build not to be uploaded

Example failure:

Nov 26 19:23:14 x86-grnet-01 buildd.py[2303717]: 2023-11-26 19:23:14,822 INFO     Build of qgis_3.28.13+dfsg-1 succeeded.
Nov 26 19:23:14 x86-grnet-01 buildd.py[2303717]: 2023-11-26 19:23:14,869 DEBUG    Querying for i386/sid: ('--built', 'qgis_3.28.13+dfsg-1')
Nov 26 19:23:15 x86-grnet-01 buildd.py[2581259]: mux_client_request_session: read from master failed: Broken pipe
Nov 26 19:27:36 x86-grnet-01 buildd.py[2581259]: ssh: connect to host buildd.debian.org port 22: Connection timed out
Nov 26 19:27:37 x86-grnet-01 buildd.py[2303717]: Traceback (most recent call last):
Nov 26 19:27:37 x86-grnet-01 buildd.py[2303717]:   File "/home/buildd/pybuildd/buildd.py", line 415, in <module>
Nov 26 19:27:37 x86-grnet-01 buildd.py[2303717]:     main()
Nov 26 19:27:37 x86-grnet-01 buildd.py[2303717]:   File "/home/buildd/pybuildd/buildd.py", line 410, in main
Nov 26 19:27:37 x86-grnet-01 buildd.py[2303717]:     while handle_next_package(builder, pkgs, exit_event):
Nov 26 19:27:37 x86-grnet-01 buildd.py[2303717]:   File "/home/buildd/pybuildd/buildd.py", line 389, in handle_next_package
Nov 26 19:27:37 x86-grnet-01 buildd.py[2303717]:     if builder.build(pkg):
Nov 26 19:27:37 x86-grnet-01 buildd.py[2303717]:   File "/home/buildd/pybuildd/buildd.py", line 307, in build
Nov 26 19:27:37 x86-grnet-01 buildd.py[2303717]:     self._query_wannabuild(
Nov 26 19:27:37 x86-grnet-01 buildd.py[2303717]:   File "/home/buildd/pybuildd/buildd.py", line 193, in _query_wannabuild
Nov 26 19:27:37 x86-grnet-01 buildd.py[2303717]:     return _run(
Nov 26 19:27:37 x86-grnet-01 buildd.py[2303717]:   File "/home/buildd/pybuildd/buildd.py", line 107, in _run
Nov 26 19:27:37 x86-grnet-01 buildd.py[2303717]:     raise subprocess.CalledProcessError(result.returncode, args)
Nov 26 19:27:37 x86-grnet-01 buildd.py[2303717]: subprocess.CalledProcessError: Command '['ssh', '-l', 'wb-buildd', '-S', 'buildd.debian.org.ssh', 'buildd.debian.org', 'wanna-build', '--api=2', '--arch=i386', '--dist=sid', '--built', 'qgis_3.28.13+dfsg-1']' returned no>
Nov 26 19:27:37 x86-grnet-01 systemd[1350]: buildd.service: Main process exited, code=exited, status=1/FAILURE
Nov 26 19:27:37 x86-grnet-01 systemd[1350]: buildd.service: Failed with result 'exit-code'.

When the --built failed, the binary exited and did not proceed to actually upload it. And because pybuildd does not keep any state, the upload is then never retried (or maybe even cleaned up) - but crucially the build is also not given back. The communication with the server had been disrupted for a while and then eventually recovered.