Skip to content

Draft: Support for Gitlab cancellation

Edmund Smith requested to merge eds/t37702c into main

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:

Edited by Edmund Smith

Merge request reports