Skip to content

Tool script changes to prepare for kselftest improvements - #91

Closed
LATENTBOUNCE wants to merge 3 commits into
mainlinefrom
{jkoolstra}_kselftest
Closed

LATENTBOUNCE wants to merge 3 commits into
mainlinefrom
{jkoolstra}_kselftest

Conversation

@LATENTBOUNCE

@LATENTBOUNCE LATENTBOUNCE commented Nov 29, 2026 •

Copy link
Copy Markdown

Some minor improvements for running kselftests. Mostly some missing (or unneeded) dependencies and reducing stdout clutter. I've also made ciq-cherry-pick executable and added a shebang, so that I can just ciq-cherry-pick, without specifying python.

Coverage Report

Name Stmts Miss Branch BrPart Cover Missing
check_fips_changes.py 42 42 12 0 0% 8-67
check_kernel_commits.py 179 179 76 0 0% 3-371
ciq-cherry-pick.py 194 100 54 3 49% 50-52, 57-92, 132, 175, 181-182, 203-204, 226-227, 242-244, 264-273, 296-333, 337-436
ciq-tag.py 146 146 16 0 0% 3-378
ciq_tag.py 232 232 54 0 0% 1-464
jira_pr_check.py 180 180 80 0 0% 3-381
kt/ktlib/ciq_helpers.py 328 223 152 6 29% 31-51, 74-106, 126->129, 136->151, 169-171, 242-243, 247, 252, 277-314, 327-333, 346-347, 351-353, 359, 380-382, 390-395, 404-406, 415-420, 431-444, 455-479, 489-503, 561-627, 636-646, 650-659, 669-684, 696-713
kt/ktlib/command_runner.py 33 20 6 0 33% 16, 20-33, 37-61, 65-66
kt/ktlib/config.py 59 0 16 0 100%
kt/ktlib/jira.py 148 119 32 0 16% 19-27, 39-55, 58-61, 64-68, 71-74, 77-80, 83-88, 91-98, 101-121, 124-131, 134-138, 142-157, 161-164, 171-184, 187-190, 193-209, 212-219, 222-224
kt/ktlib/kernel_workspace.py 146 49 26 2 63% 24, 100, 141-143, 148-150, 153-159, 172-183, 194-204, 221-224, 228-265
kt/ktlib/kernels.py 96 13 20 1 86% 77-85, 139, 155-162
kt/ktlib/local.py 5 1 0 0 80% 12
kt/ktlib/repo.py 29 15 2 0 45% 30-31, 34-35, 43-55
kt/ktlib/ssh.py 12 5 2 0 50% 9-12, 16
kt/ktlib/util.py 17 0 0 0 100%
kt/ktlib/virt.py 80 39 10 0 46% 26, 34-37, 51-78, 82-88, 92-93, 97, 101, 105, 109, 119-127, 133-138, 142-147
kt/ktlib/vm.py 312 148 56 3 51% 126-143, 176-185, 193-204, 233-237, 252->263, 280->286, 291-301, 304-305, 318-322, 325, 328-344, 349-366, 369-376, 385-391, 436-447, 450-451, 454, 458-463, 475-488, 501-508, 517, 526-538, 541-548, 551-560, 563
release_config.py 2 2 0 0 0% 7-27
rolling-release-update.py 264 264 106 0 0% 1-412
run_interdiff.py 165 165 56 0 0% 3-244
update_lt_spec.py 211 211 46 0 0% 9-400
TOTAL 2880 2153 822 15 23%

The dependency install script kernel_install_dep.sh misses some required
dependencies that are needed to run the kselftests (kernel_kselftest.sh
relies on this script to instal the required dependencies.) These
missing dependencies were found when FORCE_TARGETS=1 was added to the
kselftest make command, which causes the kselftest build to fail on any
build failure.

Optional dependencies should be installed with the --skip-broken option
enabled, so that all packages that CAN be installed ARE installed.
Running kernel_kselftest.sh produces a huge amount of output from all
the tests being executed, but this is not useful to have on the stdout
(it is already available in the kselftest log file anyway.) Default to
using the --summary option of (upstream) run_kselftest.sh, unless
--verbose is provided. This makes non-verbose the default.

Also, get rid of the pushd and popd juggling and just use make -C.
Copilot AI balanced review requested due to automatic review settings November 29, 2026 14:37
@LATENTBOUNCE
LATENTBOUNCE requested review from PlaidCat and removed request for Copilot November 29, 2026 14:38
@LATENTBOUNCE

Copy link
Copy Markdown
Author

A bit too soon, I need a --timed option too, but that should be added to all the kernels first. So this has to wait.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant