Skip to content

run-vmtest: make kernel_splat detection optional - #235

Open
theihor wants to merge 3 commits into
mainfrom
run-vmtest-splat-check-opt-in
Open

run-vmtest: make kernel_splat detection optional#235
theihor wants to merge 3 commits into
mainfrom
run-vmtest-splat-check-opt-in

Conversation

@theihor

@theihor theihor commented Aug 17, 2026

Copy link
Copy Markdown
Contributor
  • Don't do kernel splat check when configs aren't set up
  • If a kernel splat is detected, dump it in error summary for visibility
  • While we are here, remove -x from the scripts (it was used for debugging, shouldn't be on by default)

Existing action users do not necessarily carry kernel splat allowlist
and denylist files. Treating a missing denylist as a detector failure
therefore breaks those users when the v4 tag advances.

Skip the detector when neither configured list path exists, while
continuing to fail partial or invalid configurations once either file
exists. With file presence as the feature gate, remove the
test_progs-only check so configured test_maps and test_verifier runs
are scanned too.

Add regression coverage for configured paths with no list files.

Assisted-by: Codex:GPT-5
Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
The detector runs inside the outer vmtest log group, so its matched
context remains collapsed even though it emits a GitHub error.

Write a short diagnostic excerpt next to exitstatus and print it from
the host after the vmtest group closes. Use its first line for the
error annotation so the failure is visible immediately, while
retaining dmesg.txt as the full-log artifact.

Build the excerpt from the already allowlist-filtered hits. The
previous second grep used the raw denylist again, reintroducing
allowed matches and potentially printing thousands of unrelated lines.

Add coverage for saved excerpts and a log containing both allowed and
unallowed splats.

Assisted-by: Codex:GPT-5
Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
Global xtrace in the run-vmtest entry points logs every variable
assignment and helper invocation. Recent test jobs gained 317 to 340
trace lines each, amounting to roughly 8,000 lines across a full
workflow.

The scripts already print the useful commands, selected list files,
and final results. Drop global xtrace from run.sh,
prepare-bpf-selftests.sh, and run-bpf-selftests.sh while retaining
errexit, nounset, and pipefail. The focused xtrace around veristat
commands remains.

Assisted-by: Codex:GPT-5
Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
@theihor
theihor requested a review from mykyta5 August 17, 2026 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant