CI/CD Analytics Pipeline Chart no longer shows successful pipelines

Summary

Since v17.2, successful pipelines no longer show as a line in the CI/CD Analytics Pipeline chart. It seems like the weekPipelinesSuccessful and monthPipelinesSuccessful fields in the response from getProjectPipelineStatistics GraphQL query are returning empty arrays:

"weekPipelinesSuccessful": [],
...
"monthPipelinesSuccessful": [],

There was an MR in v17.2 that seems to have changed how these fields are calculated: !157293 (merged)

It seems like the same thing is happening on GitLab SaaS, where the success label shows in the legend, but the data doesn't appear in the chart: Screenshot_2024-08-21_at_9.38.05_AM

Steps to reproduce

This has been reproduced by GitLab Support in self-managed by upgrading to v17.2. The same behaviour seems to exist in GitLab SaaS.

  1. Install GitLab v17.1
  2. Create project
  3. Run many pipelines for the project
  4. Confirm CI/CD Analytics Pipeline chart
  5. Upgrade to v17.2
  6. Confirm CI/CD Analytics Pipeline chart

Example Project

What is the current bug behavior?

Successful pipeline statistics don't show in the graph, and the fields are returned as empty arrays

What is the expected correct behavior?

Successful pipeline statistics show in the graph.

Relevant logs and/or screenshots

Output of checks

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of:
`sudo gitlab-rake gitlab:env:info`)

(For installations from source run and paste the output of:
`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Possible fixes

Edited by Michael Trainor