Skip to content

Enable code coverage support for kselftests #2913

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

a-wai
Copy link
Contributor

@a-wai a-wai commented Jun 24, 2025

This PR allows kselftest jobs to retrieve, pack and upload coverage data when support is enabled in the kernel. It contains the following changes:

  • add curl to the bookworm-kselftest rootfs (needed for uploading the artifacts)
  • conditionally add the relevant template fragments to the kselftest* job templates to pack & upload coverage data

Copy link
Contributor

@pawiecz pawiecz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

This PR will require rebuilding relevant rootfs and a follow-up PR bumping its version to fully make use of the introduced changes

@a-wai
Copy link
Contributor Author

a-wai commented Jul 9, 2025

Good point, I've triggered rootfs builds (on staging only for now) and created kernelci/kernelci-pipeline#1245

Marking as draft until it's been tested.

@a-wai a-wai marked this pull request as draft July 9, 2025 16:17
@a-wai a-wai force-pushed the kselftest-rootfs-add-curl branch from 9da7816 to af37bd0 Compare July 10, 2025 07:30
a-wai added 2 commits July 10, 2025 12:06
This is required to upload artifacts when enabling code coverage.

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
When the kernel is built with GCOV support, we want to pack and upload
coverage data as a job artifact. Add the following bits to the job
templates to make that happen.

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
@a-wai a-wai force-pushed the kselftest-rootfs-add-curl branch from af37bd0 to fe38a2a Compare July 10, 2025 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants