Skip to content

run_local_tests.sh: set QEMU_DEVCONTAINER_FILE for locally built images#4111

Open
zhijianli88 wants to merge 1 commit into
flatcar:mainfrom
zhijianli88:fix-local-test-custom-oem
Open

run_local_tests.sh: set QEMU_DEVCONTAINER_FILE for locally built images#4111
zhijianli88 wants to merge 1 commit into
flatcar:mainfrom
zhijianli88:fix-local-test-custom-oem

Conversation

@zhijianli88

Copy link
Copy Markdown
Contributor

The sysext.custom-oem test requires a developer container image to build the sysext inside systemd-nspawn. For locally built Flatcar images, the developer container is available in the build output directory but was not passed to the test suite.

Export QEMU_DEVCONTAINER_FILE pointing to the locally built flatcar_developer_container.bin.bz2 so that the test can use it without attempting to download from upstream bincache, which would fail because the locally built version (with build timestamp) does not exist on the upstream server.

Fix errors:
2026-06-10T06:07:20Z kola/cluster: SSH: stderr: ++ source /usr/share/flatcar/release 2026-06-10T06:07:20Z kola/cluster: SSH: stderr: +++ FLATCAR_RELEASE_VERSION=4593.2.2+2026-06-04-0327 2026-06-10T06:07:20Z kola/cluster: SSH: stderr: +++ FLATCAR_RELEASE_BOARD=arm64-usr 2026-06-10T06:07:20Z kola/cluster: SSH: stderr: +++ FLATCAR_RELEASE_APPID='{e96281a6-d1af-4bde-9a0a-97b76e56dc57}' 2026-06-10T06:07:20Z kola/cluster: SSH: stderr: ++ echo 4593.2.2+2026-06-04-0327 2026-06-10T06:07:20Z kola/cluster: SSH: stderr: + version=4593.2.2+2026-06-04-0327 2026-06-10T06:07:20Z kola/cluster: SSH: stderr: ++ process_template http://bincache.flatcar-linux.net/images/@ARCH@/@VERSION@/flatcar_developer_container.bin.bz2 arm64 4593.2.2+2026-06-04-0327 2026-06-10T06:07:20Z kola/cluster: SSH: stderr: ++ local template=http://bincache.flatcar-linux.net/images/@ARCH@/@VERSION@/flatcar_developer_container.bin.bz2 2026-06-10T06:07:20Z kola/cluster: SSH: stderr: ++ shift 2026-06-10T06:07:20Z kola/cluster: SSH: stderr: ++ local arch=arm64 2026-06-10T06:07:20Z kola/cluster: SSH: stderr: ++ shift 2026-06-10T06:07:20Z kola/cluster: SSH: stderr: ++ local version=4593.2.2+2026-06-04-0327 2026-06-10T06:07:20Z kola/cluster: SSH: stderr: ++ shift 2026-06-10T06:07:20Z kola/cluster: SSH: stderr: ++ local result=http://bincache.flatcar-linux.net/images/@ARCH@/@VERSION@/flatcar_developer_container.bin.bz2 2026-06-10T06:07:20Z kola/cluster: SSH: stderr: ++ result=http://bincache.flatcar-linux.net/images/arm64/@VERSION@/flatcar_developer_container.bin.bz2 2026-06-10T06:07:20Z kola/cluster: SSH: stderr: ++ result=http://bincache.flatcar-linux.net/images/arm64/4593.2.2+2026-06-04-0327/flatcar_developer_container.bin.bz2 2026-06-10T06:07:20Z kola/cluster: SSH: stderr: ++ echo http://bincache.flatcar-linux.net/images/arm64/4593.2.2+2026-06-04-0327/flatcar_developer_container.bin.bz2 2026-06-10T06:07:20Z kola/cluster: SSH: stderr: + image_url=http://bincache.flatcar-linux.net/images/arm64/4593.2.2+2026-06-04-0327/flatcar_developer_container.bin.bz2 2026-06-10T06:07:20Z kola/cluster: SSH: stderr: + echo 'Fetching developer container from http://bincache.flatcar-linux.net/images/arm64/4593.2.2+2026-06-04-0327/flatcar_developer_container.bin.bz2' 2026-06-10T06:07:20Z kola/cluster: SSH: stderr: + curl --fail --silent --show-error --location --retry-delay 1 --retry 60 --retry-connrefused --retry-max-time 60 --connect-timeout 20 --remote-name http://bincache.flatcar-linux.net/images/arm64/4593.2.2+2026-06-04-0327/flatcar_developer_container.bin.bz2 2026-06-10T06:07:20Z kola/cluster: SSH: stderr: curl: (22) The requested URL returned error: 404 2026-06-10T06:07:20Z kola/cluster: SSH: stdout: Fetching developer container from http://bincache.flatcar-linux.net/images/arm64/4593.2.2+2026-06-04-0327/flatcar_developer_container.bin.bz2

[Title: describe the change in one sentence]

[ describe the change in 1 - 3 paragraphs ]

How to use

[ describe what reviewers need to do in order to validate this PR ]

Testing done

[Describe the testing you have done before submitting this PR. Please include both the commands you issued as well as the output you got.]

  • Changelog entries added in the respective changelog/ directory (user-facing change, bug fix, security fix, update)
  • Inspected CI output for image differences: /boot and /usr size, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.

@zhijianli88 zhijianli88 requested a review from a team as a code owner June 22, 2026 08:22
Copilot AI review requested due to automatic review settings June 22, 2026 08:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the local test runner environment setup so kola can use a locally built Flatcar developer container artifact (instead of attempting to download one from the upstream bincache), which is necessary for tests like sysext.custom-oem when the locally built version includes a timestamped version string.

Changes:

  • Export QEMU_DEVCONTAINER_FILE in sdk_container/.env to point at the locally built flatcar_developer_container.bin.bz2 artifact.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread run_local_tests.sh
export QEMU_UEFI_FIRMWARE=/work/__build__/images/images/${arch@Q}-usr/latest/flatcar_production_qemu_uefi_efi_code.qcow2
export QEMU_UEFI_OVMF_VARS=/work/__build__/images/images/${arch@Q}-usr/latest/flatcar_production_qemu_uefi_efi_vars.qcow2
export QEMU_UPDATE_PAYLOAD=/work/__build__/images/images/${arch@Q}-usr/latest/flatcar_test_update.gz
export QEMU_DEVCONTAINER_FILE=/work/__build__/images/images/${arch@Q}-usr/latest/flatcar_developer_container.bin.bz2
The sysext.custom-oem test requires a developer container image to build
the sysext inside systemd-nspawn. For locally built Flatcar images, the
developer container is available in the build output directory but was
not passed to the test suite.

Export QEMU_DEVCONTAINER_FILE pointing to the locally built
flatcar_developer_container.bin.bz2 so that the test can use it
without attempting to download from upstream bincache, which would
fail because the locally built version (with build timestamp) does
not exist on the upstream server.

Fix errors:
2026-06-10T06:07:20Z kola/cluster: SSH: stderr: ++ source /usr/share/flatcar/release
2026-06-10T06:07:20Z kola/cluster: SSH: stderr: +++ FLATCAR_RELEASE_VERSION=4593.2.2+2026-06-04-0327
2026-06-10T06:07:20Z kola/cluster: SSH: stderr: +++ FLATCAR_RELEASE_BOARD=arm64-usr
2026-06-10T06:07:20Z kola/cluster: SSH: stderr: +++ FLATCAR_RELEASE_APPID='{e96281a6-d1af-4bde-9a0a-97b76e56dc57}'
2026-06-10T06:07:20Z kola/cluster: SSH: stderr: ++ echo 4593.2.2+2026-06-04-0327
2026-06-10T06:07:20Z kola/cluster: SSH: stderr: + version=4593.2.2+2026-06-04-0327
2026-06-10T06:07:20Z kola/cluster: SSH: stderr: ++ process_template http://bincache.flatcar-linux.net/images/@ARCH@/@VERSION@/flatcar_developer_container.bin.bz2 arm64 4593.2.2+2026-06-04-0327
2026-06-10T06:07:20Z kola/cluster: SSH: stderr: ++ local template=http://bincache.flatcar-linux.net/images/@ARCH@/@VERSION@/flatcar_developer_container.bin.bz2
2026-06-10T06:07:20Z kola/cluster: SSH: stderr: ++ shift
2026-06-10T06:07:20Z kola/cluster: SSH: stderr: ++ local arch=arm64
2026-06-10T06:07:20Z kola/cluster: SSH: stderr: ++ shift
2026-06-10T06:07:20Z kola/cluster: SSH: stderr: ++ local version=4593.2.2+2026-06-04-0327
2026-06-10T06:07:20Z kola/cluster: SSH: stderr: ++ shift
2026-06-10T06:07:20Z kola/cluster: SSH: stderr: ++ local result=http://bincache.flatcar-linux.net/images/@ARCH@/@VERSION@/flatcar_developer_container.bin.bz2
2026-06-10T06:07:20Z kola/cluster: SSH: stderr: ++ result=http://bincache.flatcar-linux.net/images/arm64/@VERSION@/flatcar_developer_container.bin.bz2
2026-06-10T06:07:20Z kola/cluster: SSH: stderr: ++ result=http://bincache.flatcar-linux.net/images/arm64/4593.2.2+2026-06-04-0327/flatcar_developer_container.bin.bz2
2026-06-10T06:07:20Z kola/cluster: SSH: stderr: ++ echo http://bincache.flatcar-linux.net/images/arm64/4593.2.2+2026-06-04-0327/flatcar_developer_container.bin.bz2
2026-06-10T06:07:20Z kola/cluster: SSH: stderr: + image_url=http://bincache.flatcar-linux.net/images/arm64/4593.2.2+2026-06-04-0327/flatcar_developer_container.bin.bz2
2026-06-10T06:07:20Z kola/cluster: SSH: stderr: + echo 'Fetching developer container from http://bincache.flatcar-linux.net/images/arm64/4593.2.2+2026-06-04-0327/flatcar_developer_container.bin.bz2'
2026-06-10T06:07:20Z kola/cluster: SSH: stderr: + curl --fail --silent --show-error --location --retry-delay 1 --retry 60 --retry-connrefused --retry-max-time 60 --connect-timeout 20 --remote-name http://bincache.flatcar-linux.net/images/arm64/4593.2.2+2026-06-04-0327/flatcar_developer_container.bin.bz2
2026-06-10T06:07:20Z kola/cluster: SSH: stderr: curl: (22) The requested URL returned error: 404
2026-06-10T06:07:20Z kola/cluster: SSH: stdout: Fetching developer container from http://bincache.flatcar-linux.net/images/arm64/4593.2.2+2026-06-04-0327/flatcar_developer_container.bin.bz2

Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
@zhijianli88 zhijianli88 force-pushed the fix-local-test-custom-oem branch from 7bffa46 to 704b356 Compare June 22, 2026 08:28
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