Skip to content

Set the runtime runner feature cancel gracefully on build metadata

Allison Browne requested to merge ab-set_cancel_gracefully_on_metadata into master

What does this MR do and why?

As part of the work for Ensure after_script is called for canceled jobs we need to know if a runner feature is available for a given build later on in the runtime after it is canceled.

To solve for this, whenever a job is assigned to a runner we should update build metadata with the information that runtime_runner_features supports cancel_gracefully.

Whenever we transition a build to canceling via the state machine, we first check if the runner that picked up the build supports the canceling status, via cancel_gracefully?.

This feature is not released yet.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Allison Browne

Merge request reports