At HackerOne we are interested in how many pipelines in the CI/CD are considered flaky, with flaky being defined as:
pipelines.status = 'success' AND
jobs.status != 'success' AND jobs.status != 'skipped' AND jobs.status != 'manual'
Currently this logic does not really work, because the default of the GitLab jobs api is to only return successful jobs (https://docs.gitlab.com/ee/api/jobs.html#list-pipeline-jobs) but we are also interested in retried jobs defined with parameter include_retried.
At HackerOne we are interested in how many pipelines in the CI/CD are considered flaky, with flaky being defined as:
Currently this logic does not really work, because the default of the GitLab jobs api is to only return successful jobs (https://docs.gitlab.com/ee/api/jobs.html#list-pipeline-jobs) but we are also interested in retried jobs defined with parameter
include_retried
.