Draft: Support for Gitlab cancellation
At present, if a job is cancelled in Gitlab, the LAVA jobs are not cancelled; in fact the framework makes no attempt to detect cancellation or respond to it. This can leave LAVA submission queues clogged with jobs whose output is not of interest.
This commit is one of three needed to make the runner detect a Gitlab cancellation, and respond to it by cancelling any and all Lava jobs associated with that Gitlab job. The other two are:
- add a cancellation endpoint in
lava-api
- add support for cancellation in
gitlab-runner
This MR is draft pending:
-
testing (it was written against a different cancellation API) -
merge of gitlab-runner-rs!15