MeltanoLabs / tap-gitlab

Singer.io Tap for extracting data from Gitlab's API
GNU Affero General Public License v3.0
11 stars 29 forks source link

(Optionally) include retried GitLab jobs #86

Closed mvgijssel closed 1 week ago

mvgijssel commented 2 years ago

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.