MeltanoLabs / tap-gitlab

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

(Optionally) include retried GitLab jobs #86

Open mvgijssel opened 1 year ago

mvgijssel commented 1 year 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.