Skip to content

kbuild: fix nested kselftest suite results and tolerate unreadable reports - #3287

Draft
nuclearcat wants to merge 2 commits into
kernelci:mainfrom
nuclearcat:fix-kselftest-suite-results
Draft

nuclearcat wants to merge 2 commits into
kernelci:mainfrom
nuclearcat:fix-kselftest-suite-results

Conversation

@nuclearcat

Copy link
Copy Markdown
Member

Follow-up to #3264 with two fixes for per-suite kselftest build results.

  1. Fall back to the installed file list when the optional build report or its version contains invalid UTF-8. A decoding error previously interrupted submission of the parent and child results. Failed and skipped aggregate builds can return their suite results before reading the optional files.
  2. Attribute each installed file to its most specific declared target when a build report is available. On arm64, x86/bugs installs Python scripts under x86/bugs/ while x86 can install nothing. Those artifacts now give x86/bugs a pass and x86 a skip. Kernels without a usable report keep the historical presence check.

Each commit includes its regression tests. All 78 tests in tests/test_kbuild.py pass at the PR head, along with Ruff lint and formatting. The full suite had 308 passes and two rootfs CLI failures, both reproduced on the base commit. Both tests expect 18 rootfs configurations and find 20.

Fall back to the installed file list when the report or its version
cannot be decoded. Check the version before opening the report and
return early for a failed or skipped aggregate build.

Cover invalid UTF-8 in both optional files.

Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
On arm64, the x86/bugs suite installs scripts under x86/bugs even
when the x86 suite installs nothing. Counting those files for both
suites gives x86 a false pass.

Use the most specific declared target for both report records and
installed files when a build report is available. Keep the historical
presence check for kernels without a usable report. Cover nested
targets and internal subdirectories in both modes.

Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>

This branch has not been deployed

No deployments
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