Skip to content

[RFC] Storage of code coverage results in KCIDB #654

Description

@a-wai

With kernelci/kernelci-pipeline#1211 Maestro will gain the ability to extract the code coverage results (functions and lines coverage percents) for each test and consolidate/merge those results at the build level.

In order to make this data more useful to end users, we need to store it in KCIDB so we can display historical data and trends in the dashboard. This would e.g. provide factual data points supporting the addition of new tests or spotting regressions due to failed or modified tests.

The plan so far is to store the coverage results in a new table, referencing the build on one hand, and storing the following data as separate fields:

  • percentage of lines covered
  • percentage of functions covered
  • URL of the generated HTML report (which includes coverage data for each source file)

Individual test results doesn't seem relevant as those aren't supposed to change over time.

Comments and suggestions are obviously welcome.

cc @padovan

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions