0be1be779a
This change ensures our use of the `process.execute` method from "oslo_concurrency" always checks the return codes of a given command. While the library is assumed to do this already, this change enforces our expected behavior. We're also changing our use of futures to return when there's an exception. The build_all method was blocking until all jobs were completed. Blocking on pipeline completion results in us masking exceptions that may be raised duing the job execution. To ensure we're capturing errors in our build process the wait function now return on the first exception; More on the futures constants can be seen here:[0]. The return values will now be evaluated to ensure all jobs completed successfully. Unit tests have been added to ensure we're not breaking the build all method and that it raise appropriate exceptions when errors are encountered. [0] - https://docs.python.org/3/library/concurrent.futures.html#module-functions Related-Bug: #1836265 Change-Id: Ia05140142fa59e5b252cd92801244e4fc02f4bbc Signed-off-by: Kevin Carter <kecarter@redhat.com> |
||
---|---|---|
.. | ||
__init__.py | ||
base.py | ||
buildah.py |