Skip to content

imgtestlib: followup for adding disk images to bootc tests - #2772

Merged
achilleas-k merged 2 commits into
osbuild:mainfrom
avitova:expand-tests-followup
Oct 27, 2026
Merged

achilleas-k merged 2 commits into
osbuild:mainfrom
avitova:expand-tests-followup

Conversation

@avitova

@avitova avitova commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Just a follow up to resolve comments of Achilleas on #2742.

Authenticating with quay serves for pulling private images, however, it
might also help with rate limits. For that reason, we now authenticate
for all bootc jobs, not only for private images.
@avitova
avitova requested review from a team, achilleas-k and thozza as code owners October 16, 2026 15:31
@avitova avitova changed the title Expand tests followup imgtestlib: followup for adding disk images to bootc tests Oct 16, 2026
supakeen
supakeen previously approved these changes Oct 18, 2026
Comment thread test/scripts/imgtestlib/bootcsource.py Outdated
BOOTC_SOURCES = list(BOOTC_SOURCE_IMAGE_TYPES)
BOOTC_ARCHES = ["x86_64"]
BOOTC_CONFIGS = {"bootc-user"}
BOOTC_CONFIGS = {"bootc-user", "bootc-empty"}

@achilleas-k achilleas-k Oct 19, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not sure I understand the idea of this set of BOOTC_CONFIGS. My comment was about dropping the related check entirely. What purpose does it serve?

We should remove it completely. Configs to test should be fully determined by the config-list file. If a configuration shouldn't be tested, it shouldn't exist in the config-list. There's no reason for this extra layer of filtering on top.

supakeen
supakeen previously approved these changes Oct 20, 2026
@avitova
avitova force-pushed the expand-tests-followup branch 2 times, most recently from b0e50d1 to 70c46cf Compare October 21, 2026 12:27
achilleas-k
achilleas-k previously approved these changes Oct 23, 2026

@achilleas-k achilleas-k left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@achilleas-k

Copy link
Copy Markdown
Member

Something weird is happening with the tests: https://gitlab.com/redhat/services/products/image-builder/ci/images/-/jobs/17354664539

It seems the file worked, the test runs sudo bootc status and it passes, but it can't get the info for the injected sudoers file.

@avitova

avitova commented Oct 23, 2026

Copy link
Copy Markdown
Contributor Author

Yeah, I am just investigating it. I think this is the qemu_cmd_scp_and_run function failing - we are running /tmp/check-host-config-x86_64 without sudo, and it does not see the sudoers file?

So I think one solution would be to run that command as sudo, but I am not sure, if we should do that - if it's not just a workaround? Looking into options, rewriting qemu_cmd_scp_and_run is one of those options, as it also has a comment about potentionally needing to be changed for something else.

Manifest generation runs over all configs, and produces manifests for
every bootc-* config in config-list.json. generate-bootc-config used to
skip any config not listed in BOOTC_CONFIGS, producing cache misses with
no corresponding build. Drop BOOTC_CONFIGS.
Fix bootc-remote-user boot tests that run bootc-status: add a blueprint
files entry for /etc/sudoers.d/osbuild so the test user can run sudo
non-interactively. This is needed because bootc images do not apply
cloud-init NOPASSWD for the blueprint user. Run check-host-config under
sudo -n in `qemu_cmd_scp_and_run`, so that check can read files that are
sudo-only. Skip reading `/etc/sudoers.d/` files, and only check for
their existence.
@avitova
avitova force-pushed the expand-tests-followup branch from a8e3ac3 to 2ca841f Compare October 26, 2026 16:21
@avitova
avitova requested a review from achilleas-k October 27, 2026 13:53
@avitova

avitova commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

@achilleas-k Thanks for the review, can you check the PR again to approve on latest changes?

@achilleas-k achilleas-k left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Excellent work. This is all coming together very nicely.

Thank you.
LGTM

@achilleas-k
achilleas-k added this pull request to the merge queue Oct 27, 2026
Merged via the queue into osbuild:main with commit 3dfc6cc Oct 27, 2026
51 of 55 checks passed
@avitova

avitova commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

Thank you!

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.

3 participants