debian-forge/osbuild
Christian Kellner ede3f6baeb pipeline: proper object cleanup on errors
The recent changes removed the {Assembler,Stage}Failed exceptions,
which includes them being thrown from Stage.run and Assembler.run.
Instead result dictionaries are returned even on errors. But the
object store, used as a context manager, relies on exceptions to
detect the error case and thus needs them to cleanup the temporary
objects. Without those exceptions the temporary objects end up in
the store even when the sage or assembler failed.
Restore the old behavior by throwing a generic BuildError exception
from the Stage and Assembler, which will be caught directly in the
pipeline and converted to a result dict.
2019-12-18 12:45:59 +01:00
..
__init__.py pipeline: return logs in --json mode 2019-12-14 13:49:24 +01:00
__main__.py pipeline: return logs in --json mode 2019-12-14 13:49:24 +01:00
api.py api and remoteloop: don't close the passed-in socket 2019-12-15 12:05:14 +01:00
buildroot.py buildroot: dyld workaround also on ppc64le 2019-12-12 13:16:05 +01:00
loop.py loop: fix a few typos 2019-12-13 18:15:08 +01:00
objectstore.py objectstore: refer to objects, not trees 2019-09-25 23:50:50 +02:00
pipeline.py pipeline: proper object cleanup on errors 2019-12-18 12:45:59 +01:00
remoteloop.py api and remoteloop: don't close the passed-in socket 2019-12-15 12:05:14 +01:00
tmpfs.py osbuild: split package into separate files 2019-08-21 09:56:50 +04:00
treesum.py treesum: don't use dir_fd parameter in os.scandir() 2019-11-29 00:45:14 +01:00