Targeted tests for merge requests
Targeted testing is the term used to refer to CKI tests that are configured to run only when specific kernel source files are updated in a merge request.
In the future merge requests with missing targeted tests will be blocked.
The configuration is done in the test case in kpet-db.
Example: block tests
... sources: or: - block/blk-cgroup.c - block/blk-mq-debugfs.c - block/elevator.c - block/blk-mq-sched.c - block/blk-mq.c - block/blk-mq-sysfs.c - block/cfq-iosched.c - block/kyber-iosched.c - block/bfq-iosched.c - block/blk-core.c - block/mq-deadline.c ...
Missing targeted tests
Merge requests that have missing targeted tests have the ‘TargetedTestingMissing’ label.
What that means?
It means that no file updated by the merge request has a specific test that covers it.
What to do?
Looking at CKI tests, maybe some test could be configured to run on that file. It can be confirmed by running the test using code coverage.
Write/onboard new test case for it.
Talk with QE that covers this area to write/onboard new test case for it.
Don’t hesitate to contact CKI team for help.Last modified November 25, 2021: Add information about targeted testing (6820f67)