Commit feca958
committed
bootlinux: add support for custom refs on dev kernels on the CLI
We already have support to easily test arbitrary kernels and refs by
just using the LINUX_TREE and LINUX_REF environment variables. We
leverage this for our CIs:
* LINUX_TREE: the target tree for baseline group (A)
* LINUX_REF: the target tree ref the baseline group (A)
Now that we have AB-testing support we want to first add support so that
a simple TEST_AB=y will enable KDEVOPS_BASELINE_AND_DEV and then we want
to be able to customize the target dev tree and ref. We do this with two
other environment variables:
* LINUX_DEV_TREE: the target tree for dev group (B)
* LINUX_DEV_REF: the target tree ref the dev group (B)
You just need to make sure to also pass TEST_AB=y.
By leveraging this we can easily use AB testing in the future on CIs
to compare and contrast different kernel releases against any target
workload we have.
For example, here's the power of how to use this, suppose we want to
test the branch "20250723-migrate-folio-stats" on my kernel.org git
tree, and compare it with the baseline on v6.16-rc7. All I have to do
to spin up some guests and also leverage a large soak duration is:
make defconfig-xfs_reflink_lbs \
TEST_AB=y
KDEVOPS_HOSTS_PREFIX="pw2" \
LINUX_TREE=/mirror/mcgrof-linus.git/ \
LINUX_TREE_REF=v6.16-rc7 \
LINUX_DEV_TREE=/mirror/mcgrof-linus.git/
LINUX_DEV_TREE_REF="20250723-migrate-folio-stats" \
SOAK_DURATION=432000 -j128
After make, I see:
egrep "bootlinux_dev_tree|target_linux_git|target_linux_dev_ref|target_linux_ref" extra_vars.yaml
bootlinux_dev_tree_set_by_cli: True
bootlinux_dev_tree_ref_set_by_cli: True
bootlinux_dev_tree: "/mirror/mcgrof-linus.git/"
target_linux_dev_ref: "20250723-migrate-folio-stats"
target_linux_git: /mirror/mcgrof-linus.git/
target_linux_ref: v6.16-rc7
Now I can run *any* workflow in parallel against my two target kernels,
after make linux, fstests is just one example workflow.
Signed-off-by: Luis Chamberlain <[email protected]>1 parent 58a0a19 commit feca958
2 files changed
+21
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
54 | 59 | | |
55 | 60 | | |
56 | 61 | | |
| |||
78 | 83 | | |
79 | 84 | | |
80 | 85 | | |
81 | | - | |
| 86 | + | |
| 87 | + | |
82 | 88 | | |
83 | 89 | | |
84 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
13 | 23 | | |
14 | 24 | | |
15 | 25 | | |
| |||
415 | 425 | | |
416 | 426 | | |
417 | 427 | | |
418 | | - | |
| 428 | + | |
| 429 | + | |
419 | 430 | | |
420 | 431 | | |
421 | 432 | | |
| |||
424 | 435 | | |
425 | 436 | | |
426 | 437 | | |
427 | | - | |
| 438 | + | |
| 439 | + | |
428 | 440 | | |
429 | 441 | | |
430 | 442 | | |
| |||
0 commit comments