From 225f033090627230226ab90eb7884c11528875dc Mon Sep 17 00:00:00 2001 From: Arnaud Ferraris Date: Thu, 24 Apr 2025 16:53:20 +0200 Subject: [PATCH 1/2] config: add sample kbuild job with coverage enabled This job will be useful to test code coverage during development. Signed-off-by: Arnaud Ferraris --- config/jobs.yaml | 13 +++++++++++++ config/scheduler.yaml | 3 +++ 2 files changed, 16 insertions(+) diff --git a/config/jobs.yaml b/config/jobs.yaml index b4eba1d7d..8a4c3cf02 100644 --- a/config/jobs.yaml +++ b/config/jobs.yaml @@ -1315,6 +1315,19 @@ jobs: - '!android' - '!chromiumos' + kbuild-gcc-12-x86-coverage: + <<: *kbuild-gcc-12-x86-job + params: + <<: *kbuild-gcc-12-x86-params + fragments: + - 'coverage' + - 'kselftest' + - 'lab-setup' + - 'x86-board' + rules: + tree: + - 'kernelci' + kbuild-gcc-12-x86-kselftest: <<: *kbuild-gcc-12-x86-job params: diff --git a/config/scheduler.yaml b/config/scheduler.yaml index 6dcf8be3a..2cdca9189 100644 --- a/config/scheduler.yaml +++ b/config/scheduler.yaml @@ -697,6 +697,9 @@ scheduler: - job: kbuild-gcc-12-x86-build-only <<: *build-k8s-all + - job: kbuild-gcc-12-x86-coverage + <<: *build-k8s-all + - job: kbuild-gcc-12-x86-kcidebug <<: *build-k8s-all From 6105c2b194e353512287618fa71300abab53184f Mon Sep 17 00:00:00 2001 From: Arnaud Ferraris Date: Wed, 30 Apr 2025 14:52:56 +0200 Subject: [PATCH 2/2] config: scheduler-chromeos: run LTP tests with code coverage The LTP tests we already run on Chromebooks are good candidates for initial code coverage enablement. Signed-off-by: Arnaud Ferraris --- config/scheduler-chromeos.yaml | 57 +++++++++++++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/config/scheduler-chromeos.yaml b/config/scheduler-chromeos.yaml index 5fbb171ff..268be7f24 100644 --- a/config/scheduler-chromeos.yaml +++ b/config/scheduler-chromeos.yaml @@ -136,6 +136,12 @@ _anchors: <<: *test-job-x86-event name: kbuild-gcc-12-x86-chromeos-daily-amd + test-job-x86-coverage: &test-job-x86-coverage + <<: *test-job-x86 + event: + <<: *test-job-x86-event + name: kbuild-gcc-12-x86-coverage + test-job-x86-intel: &test-job-x86-intel <<: *test-job-x86 platforms: *intel-platforms @@ -440,6 +446,13 @@ scheduler: - hp-11A-G6-EE-grunt - hp-x360-12b-ca0010nr-n4020-octopus + - job: ltp-crypto + <<: *test-job-x86-coverage + platforms: + - asus-C523NA-A20057-coral + - hp-11A-G6-EE-grunt + - hp-x360-12b-ca0010nr-n4020-octopus + - job: ltp-fcntl-locktests <<: *test-job-x86 platforms: @@ -447,11 +460,23 @@ scheduler: - asus-C523NA-A20057-coral - hp-11A-G6-EE-grunt + - job: ltp-fcntl-locktests + <<: *test-job-x86-coverage + platforms: + - asus-C433TA-AJ0005-rammus + - asus-C523NA-A20057-coral + - hp-11A-G6-EE-grunt + - job: ltp-ima <<: *test-job-x86 platforms: - asus-C523NA-A20057-coral + - job: ltp-ima + <<: *test-job-x86-coverage + platforms: + - asus-C523NA-A20057-coral + - job: ltp-ipc <<: *test-job-x86 platforms: @@ -460,6 +485,14 @@ scheduler: - hp-11A-G6-EE-grunt - hp-x360-12b-ca0010nr-n4020-octopus + - job: ltp-ipc + <<: *test-job-x86-coverage + platforms: + - acer-cp514-2h-1130g7-volteer + - asus-C436FA-Flip-hatch + - hp-11A-G6-EE-grunt + - hp-x360-12b-ca0010nr-n4020-octopus + - job: ltp-mm <<: *test-job-x86 platforms: @@ -467,6 +500,13 @@ scheduler: - hp-11A-G6-EE-grunt - hp-x360-12b-ca0010nr-n4020-octopus + - job: ltp-mm + <<: *test-job-x86-coverage + platforms: + - asus-C436FA-Flip-hatch + - hp-11A-G6-EE-grunt + - hp-x360-12b-ca0010nr-n4020-octopus + - job: ltp-pty <<: *test-job-x86 platforms: @@ -474,7 +514,14 @@ scheduler: - asus-C523NA-A20057-coral - hp-11A-G6-EE-grunt - - job: ltp-timers + - job: ltp-pty + <<: *test-job-x86-coverage + platforms: + - asus-C433TA-AJ0005-rammus + - asus-C523NA-A20057-coral + - hp-11A-G6-EE-grunt + + - job: ltp-timers <<: *test-job-x86 platforms: - asus-C433TA-AJ0005-rammus @@ -482,6 +529,14 @@ scheduler: - asus-C523NA-A20057-coral - hp-11A-G6-EE-grunt + - job: ltp-timers + <<: *test-job-x86-coverage + platforms: + - asus-C433TA-AJ0005-rammus + - asus-C436FA-Flip-hatch + - asus-C523NA-A20057-coral + - hp-11A-G6-EE-grunt + # Some of this tests running too long, must be max 30 min - job: tast-decoder-chromestack-arm64-mediatek <<: *test-job-chromeos-mediatek