Repository navigation
imgtestlib: followup for adding disk images to bootc tests - #2772
Conversation
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.
| BOOTC_SOURCES = list(BOOTC_SOURCE_IMAGE_TYPES) | ||
| BOOTC_ARCHES = ["x86_64"] | ||
| BOOTC_CONFIGS = {"bootc-user"} | ||
| BOOTC_CONFIGS = {"bootc-user", "bootc-empty"} |
There was a problem hiding this comment.
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.
5ebd9d9 to
bf72576
Compare
b0e50d1 to
70c46cf
Compare
|
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 |
|
Yeah, I am just investigating it. I think this is the 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. |
70c46cf to
a8e3ac3
Compare
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.
a8e3ac3 to
2ca841f
Compare
|
@achilleas-k Thanks for the review, can you check the PR again to approve on latest changes? |
achilleas-k
left a comment
There was a problem hiding this comment.
Excellent work. This is all coming together very nicely.
Thank you.
LGTM
|
Thank you! |
Just a follow up to resolve comments of Achilleas on #2742.