PTU5KAS/kas
Felix Moessbauer ecd670e9ae fix: collect exceptions on task errors
When async tasks fail, all exceptions need to be collected to not get
subsequent exceptions about invalid future states. This is achieved by
gathering the task results, instead of just waiting for them. By
gathering the results, also user-requested cancellation (e.g. via
ctrl-c) works without throwing tons of additional exceptions.
Since ac437308 we more likely run into that case, which unvealed the bug.

By properly handling the exception, a TaskResultError is returned
instead of the underlying CommandExecError. This change is reflected in
the corresponding unit test.

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
2023-05-19 06:36:31 +02:00
..
plugins menu plugin: handle common KConfig errors 2023-05-05 21:56:40 +02:00
__init__.py __init__: Better support introspection 2018-12-07 09:56:09 +01:00
__main__.py Drop unnecessary shebang lines 2021-08-30 21:56:49 +02:00
__version__.py add support to override refspec of repos 2023-04-23 14:04:51 +02:00
config.py add support for lockfiles on checkout 2023-04-23 14:05:04 +02:00
configschema.py yml: Move json schema from python dict to standalone json file 2021-10-05 10:28:24 +02:00
context.py forward build-concurrency related env vars 2022-10-19 11:02:17 +02:00
includehandler.py includes: wrap missing include file exception 2023-05-10 09:01:51 +02:00
kas.py fix: collect exceptions on task errors 2023-05-19 06:36:31 +02:00
kasusererror.py refactor: port all sys.exit over to kas exceptions 2023-05-05 21:56:32 +02:00
libcmds.py refactor: port all sys.exit over to kas exceptions 2023-05-05 21:56:32 +02:00
libkas.py fix: collect exceptions on task errors 2023-05-19 06:36:31 +02:00
repos.py refactor: port all sys.exit over to kas exceptions 2023-05-05 21:56:32 +02:00
schema-kas.json add support to override refspec of repos 2023-04-23 14:04:51 +02:00