Skip to content

Ensure code_quality job times out at 15min

David Dieulivol requested to merge ddieulivol-timeout_for_code_quality_job into master

Context

I saw one predictive pipeline taking 30min because of a code_quality job that took a long time (trace):

Screenshot_2024-04-19_at_10.17.29

I then wondered about two things:

  1. What are the percentiles/average for the code_quality job in all pipelines?
  2. How often do predictive pipelines end with the code_quality job?

What are the percentiles/average for the code_quality job in all pipelines?

Mostly below 15min (see chart):

Screenshot_2024-04-19_at_10.19.19

How often do predictive pipelines end with the code_quality job?

Not very often. 0.5% of the successful predictive pipelines:

Screenshot_2024-04-19_at_10.14.52

Not a game changer, but could still make a few pipelines faster, which I like.

What does this MR do and why?

Ensure code_quality job times out at 15min (which is still below the P95 duration of the job).

The job is allowed to fail as well, so timing it out shouldn't impact much.

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.

Merge request reports