Skip to content

fix(kernel): skip selftests package build#17042

Open
rlmenge wants to merge 1 commit intotomls/base/mainfrom
rlmenge/tomls/kselftests-mitigation
Open

fix(kernel): skip selftests package build#17042
rlmenge wants to merge 1 commit intotomls/base/mainfrom
rlmenge/tomls/kselftests-mitigation

Conversation

@rlmenge
Copy link
Copy Markdown
Contributor

@rlmenge rlmenge commented May 5, 2026

Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

  • The toolchain has been rebuilt successfully (or no changes were made to it)
  • The toolchain/worker package manifests are up-to-date
  • Any updated packages successfully build (or no packages were changed)
  • Packages depending on static components modified in this PR (Golang, *-static subpackages, etc.) have had their Release tag incremented.
  • Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
  • All package sources are available
  • cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
  • LICENSE-MAP files are up-to-date (./LICENSES-AND-NOTICES/SPECS/data/licenses.json, ./LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md, ./LICENSES-AND-NOTICES/SPECS/LICENSE-EXCEPTIONS.PHOTON)
  • All source files have up-to-date hashes in the *.signatures.json files
  • sudo make go-tidy-all and sudo make go-test-coverage pass
  • Documentation has been updated to match any changes to the build system
  • Ready to merge

Summary

Disable kernel selftests as a temporary mitigation while kselftests packaging is fixed separately, and bump azl_pkgrelease to avoid reusing the previous NVR for a changed package set.

Change Log
  • Disable kernel selftests
Does this affect the toolchain?

NO

Associated issues

Fixes: AB#19562

Test Methodology
  • Ran azldev comp update -p kernel
  • Ran azldev comp render -p kernel -O json
  • Ran azldev comp build -p kernel --preserve-buildenv on-failure
    • Build produced kernel-6.18.5-1.9.azl4 RPMs successfully.
    • Confirmed no kernel-selftests-internal-6.18.5-1.9.azl4 RPM was produced.
  • Installed and booted the 1.9 kernel on local vm-base QEMU VM:
    • uname -r: 6.18.5-1.9.azl4.x86_64
    • kernel-selftests-internal: not installed
    • systemctl is-system-running: running
    • systemctl --failed: 0 loaded units listed
  • Installed and booted the 1.9 kernel on Azure VM
    • uname -r: 6.18.5-1.9.azl4.x86_64

TaskID=2246330

@rlmenge rlmenge marked this pull request as ready for review May 5, 2026 23:51
@rlmenge rlmenge requested a review from ddstreetmicrosoft as a code owner May 5, 2026 23:51
Copilot AI review requested due to automatic review settings May 5, 2026 23:51
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Disables building the kernel selftests subpackage via rpmbuild --without selftests to avoid current kselftests packaging issues, and bumps the kernel package release macro to ensure a new NVR is produced.

Changes:

  • Add selftests to the kernel component build.without list to skip the selftests-internal subpackage.
  • Bump azl_pkgrelease from 8 → 9 to avoid reusing the previous NVR with a changed output set.
  • Refresh the kernel.lock input fingerprint to reflect the component config change.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
base/comps/kernel/kernel.comp.toml Disables selftests build and bumps azl_pkgrelease define.
specs/k/kernel/kernel.azl.macros Rendered macro output reflecting _without_selftests and the updated azl_pkgrelease.
locks/kernel.lock Updates the input fingerprint for the modified component config.

Disable kernel selftests as a temporary mitigation while kselftests
packaging is fixed separately, and bump azl_pkgrelease to avoid reusing
the previous NVR for a changed package set.
@rlmenge rlmenge force-pushed the rlmenge/tomls/kselftests-mitigation branch from 3c55688 to 630e3dd Compare May 6, 2026 16:39
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.

2 participants