ci: Improve interrupt signal handling in crosvm-runner.sh
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Thu, 3 Mar 2022 23:59:55 +0000 (01:59 +0200)
committerCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Tue, 8 Mar 2022 10:52:54 +0000 (12:52 +0200)
commite8882f0ef832ba3707101c6de1e8f59ddb5fff87
tree874e05b8bbc662ee403a067a0527248da8aed268
parent1f0a0839eb6bc312dfc88c74d13deb3dfa28e17e
ci: Improve interrupt signal handling in crosvm-runner.sh

Run crosvm as a background process in order to allow intercepting
interrupt signals (INT, TERM) and properly release/cleanup any allocated
resources.

This is particularly helpful when one or more crosvm tasks hang, which
will eventually prevent subsequent instances to be started - currently
we can handle up to 128 concurrent crosvm instances per runner.

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15238>
.gitlab-ci/crosvm-runner.sh