Skip to content

kola: fix architecture() for qemu-unpriv - #908

Open
AnshulPatil2005 wants to merge 1 commit into
flatcar:mainfrom
AnshulPatil2005:kola-architecture-qemu-unpriv
Open

kola: fix architecture() for qemu-unpriv#908
AnshulPatil2005 wants to merge 1 commit into
flatcar:mainfrom
AnshulPatil2005:kola-architecture-qemu-unpriv

Conversation

@AnshulPatil2005

Copy link
Copy Markdown
Contributor

architecture() decides which kolet binary to upload, based on the platform's
board. It only special-cased qemu, so qemu-unpriv always resolved to
amd64 even with an arm64 board, and the wrong-arch kolet got uploaded (fails
with "Exec format error" on arm64 qemu-unpriv native-func tests).

qemu-unpriv runs off the same QEMUOptions as qemu, and FilterTests already
treats qemu-unpriv like qemu, so this just aligns architecture() with that.

Adds a regression test (TestArchitecture) that fails on the old code and
passes on the fix.

Closes flatcar/Flatcar#2290

Signed-off-by: Anshul <anshulpatil1022@gmail.com>
@AnshulPatil2005
AnshulPatil2005 requested a review from a team as a code owner August 5, 2026 06:36
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.

mantle: kola architecture() ignores qemu-unpriv and uploads the wrong-arch kolet

1 participant