Skip to content

Fetch test report total count from database

Max Orefice requested to merge mo-fetch-test-report-total-count-from-db into master

Part of #211838 (closed)

This feature will be behind a feature flag. The full feature has been developed on this POC branch.

What does this MR do?

This MR renders TestReportSummary.total_count number from the database instead of loading/parsing all test reports in memory.

The new code is still behind a feature flag so we can better monitor the feature when rolling it out.

Why are we doing this?

Today our JUnit feature is really slow for big projects containing a lot of tests and requires almost 1min on gitlab.com in order to render the data. We are working toward improving the ~performance of this feature and we decided by starting to persist our counter data which is all the data you can see on the screenshot below 👇

New_Merge_Request___GitLab.org___GitLab___GitLab_2020-06-04_13-54-49

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team

Merge request reports