Skip to content

Commit 8dfdd95

Browse files
bhcopelandnuclearcat
authored andcommitted
scheduler: add tree-based priority for LAVA jobs
Add tree priority lookup using string values (high/medium/low) instead of numeric priorities. Tree priorities are read from build configs and passed to LAVA runtime via node data. Priority assignments: - high: mainline, stable, stable-rc - medium: next, stable-rt, kselftest - low: android, cip, kernelci (default) Human submissions always get highest priority for bisection/debugging. Signed-off-by: Ben Copeland <ben.copeland@linaro.org>
1 parent 41bffe0 commit 8dfdd95

File tree

12 files changed

+103
-1
lines changed

12 files changed

+103
-1
lines changed

config/jobs.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ _anchors:
1111
baseline-job: &baseline-job
1212
template: baseline.jinja2
1313
kind: job
14+
priority: medium
1415
kcidb_test_suite: boot
1516
params:
1617
ramdisk: 'http://storage.kernelci.org/images/rootfs/buildroot/buildroot-baseline/20230703.0/{brarch}/rootfs.cpio.gz'
1718

1819
baseline-nfs-job: &baseline-nfs-job
1920
template: baseline-nfs.jinja2
2021
kind: job
22+
priority: medium
2123
kcidb_test_suite: boot.nfs
2224
params:
2325
boot_commands: nfs
@@ -26,6 +28,7 @@ _anchors:
2628
kbuild-job: &kbuild-job
2729
template: kbuild.jinja2
2830
kind: kbuild
31+
priority: high
2932
rules:
3033
tree:
3134
- '!android'
@@ -87,6 +90,7 @@ _anchors:
8790
kvm-unit-tests-job: &kvm-unit-tests-job
8891
template: kvm-unit-tests.jinja2
8992
kind: job
93+
priority: low
9094
params: &kvm-unit-tests-params
9195
boot_commands: nfs
9296
nfsroot: 'https://storage.kernelci.org/images/rootfs/debian/bookworm-kvm-unit-tests/20250624.0/{debarch}'
@@ -98,6 +102,7 @@ _anchors:
98102
ltp-job: &ltp-job
99103
template: ltp.jinja2
100104
kind: job
105+
priority: low
101106
params: &ltp-params
102107
boot_commands: nfs
103108
nfsroot: 'https://storage.kernelci.org/images/rootfs/debian/trixie-ltp/20251201.0/{debarch}'
@@ -1572,6 +1577,7 @@ jobs:
15721577
kselftest-aaa: &kselftest-job
15731578
template: generic.jinja2
15741579
kind: job
1580+
priority: medium
15751581
params: &kselftest-params
15761582
test_method: kselftest
15771583
boot_commands: nfs
@@ -1588,6 +1594,7 @@ jobs:
15881594
kselftest-aaa-ramdisk: &kselftest-job-ramdisk
15891595
template: generic.jinja2
15901596
kind: job
1597+
priority: medium
15911598
params: &kselftest-params-ramdisk
15921599
test_method: kselftest
15931600
boot_commands: ramdisk
@@ -2151,6 +2158,7 @@ jobs:
21512158
kunit: &kunit-job
21522159
template: kunit.jinja2
21532160
kind: job
2161+
priority: medium
21542162
image: ghcr.io/kernelci/{image_prefix}gcc-14:x86-kunit-kernelci
21552163
kcidb_test_suite: kunit
21562164
rules:
@@ -2375,6 +2383,7 @@ jobs:
23752383
rt-tests: &rt-tests
23762384
template: rt-tests.jinja2
23772385
kind: job
2386+
priority: low
23782387
params: &rt-tests-params
23792388
boot_commands: nfs
23802389
nfsroot: 'https://storage.kernelci.org/images/rootfs/debian/bookworm-rt/20240806.0/{debarch}'

config/trees/android.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ build_configs:
22
android_mainline: &android
33
tree: android
44
branch: 'android-mainline'
5+
priority: low
56
architectures:
67
- x86_64
78
- i386

config/trees/cip.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ build_configs:
22
cip: &cip
33
tree: cip
44
branch: 'master'
5+
priority: low
56
architectures:
67
- arm
78
- arm64

config/trees/kernelci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ build_configs:
22
kernelci_staging-mainline: &kernelci
33
tree: kernelci
44
branch: 'staging-mainline'
5+
priority: low
56
architectures:
67
- x86_64
78
- arm64

config/trees/kselftest.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ build_configs:
22
kselftest_fixes: &kselftest
33
tree: kselftest
44
branch: 'fixes'
5+
priority: medium
56

67
kselftest_next:
78
<<: *kselftest

config/trees/mainline.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ build_configs:
22
mainline:
33
tree: mainline
44
branch: 'master'
5+
priority: high

config/trees/next.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ build_configs:
22
next_master: &next
33
tree: next
44
branch: 'master'
5+
priority: medium
56

67
next_pending-fixes:
78
<<: *next

config/trees/stable-rc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ build_configs:
22
stable-rc_5.10: &stable-rc
33
tree: stable-rc
44
branch: 'linux-5.10.y'
5+
priority: high
56

67
stable-rc_5.15:
78
<<: *stable-rc

config/trees/stable-rt.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ build_configs:
22
stable-rt_v4.14-rt: &stable-rt
33
tree: stable-rt
44
branch: 'v4.14-rt'
5+
priority: medium
56

67
stable-rt_v4.14-rt-next:
78
<<: *stable-rt

config/trees/stable.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ build_configs:
22
stable_5.4: &stable
33
tree: stable
44
branch: 'linux-5.4.y'
5+
priority: high
56

67
stable_5.10:
78
<<: *stable

0 commit comments

Comments
 (0)