Skip to content

Prefer the in-repo kernel for make integration - #875

Open
MayCXC wants to merge 1 commit into
apple:mainfrom
MayCXC:integration-usb-kernel
Open

Prefer the in-repo kernel for make integration#875
MayCXC wants to merge 1 commit into
apple:mainfrom
MayCXC:integration-usb-kernel

Conversation

@MayCXC

@MayCXC MayCXC commented Aug 27, 2026

Copy link
Copy Markdown

Summary

The integration suite booted whichever kernel sat under bin/, so a kernel configured and built in the repo with make -C kernel took effect only if the fetched default was deleted by hand: a configuration change could be built, pass a rebuild, and never be the kernel a test ran against.

The guest kernel is a variable of every integration result, so the one built from the repo's own configuration is preferred wherever it exists, with the kata-fetched kernel remaining the fallback for a checkout that never built one. This is the preference LINUX_INTEGRATION_KERNEL already expresses; make integration now expresses the same one.

Motivation and Context

The failure mode is a silent wrong answer rather than an error: you change the kernel configuration, build it, run the suite, and read results produced by a different kernel. Nothing in the output says which one booted.

Taking the preference that already exists for the Linux integration target, rather than inventing one, keeps the two from disagreeing.

Testing

  • With no in-repo kernel, make integration uses the fetched default exactly as before.
  • With make -C kernel having produced one, the suite boots it.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

The integration suite booted whichever kernel sat under bin/, so a kernel
configured and built in the repo with `make -C kernel` took effect only if
the fetched default was deleted by hand: a configuration change could be
built, pass a rebuild, and never be the kernel a test ran against. The
guest kernel is a variable of every integration result, so the one built
from the repo's own configuration is preferred wherever it exists, with
the kata-fetched kernel remaining the fallback for a checkout that never
built one. This is the preference `LINUX_INTEGRATION_KERNEL` already
expresses; `make integration` now expresses the same one.
@MayCXC
MayCXC force-pushed the integration-usb-kernel branch from 6fc2246 to 26f5c7a Compare August 27, 2026 20:47
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