Skip to content

Generate bootc-image-builder test jobs dynamically and enable all tests#2539

Draft
achilleas-k wants to merge 7 commits into
osbuild:mainfrom
achilleas-k:bib/test-build-iso
Draft

Generate bootc-image-builder test jobs dynamically and enable all tests#2539
achilleas-k wants to merge 7 commits into
osbuild:mainfrom
achilleas-k:bib/test-build-iso

Conversation

@achilleas-k

Copy link
Copy Markdown
Member

Glob the test paths under bootc-image-builder/test/ to dynamically create one gitlab job for each test file. We separate these because a single job for all tests would take too long.

With this change, we can be sure that no bootc-image-builder test is skipped.

This also enables all bootc-image-builder tests.

test_build_cross.py and test_build_iso.py were not being run.  Enable
them now.
Glob the test paths under bootc-image-builder/test/ to dynamically
create one gitlab job for each test file.  We separate these because a
single job for all tests would take too long.

With this change, we can be sure that no bootc-image-builder test is
skipped.
We were running these two test files together since they're both
relatively small and quick.  Merge the two files so that our dynamic
gitlab CI pipeline generator doesn't need to have any special
conditions.
@achilleas-k
achilleas-k requested review from a team and thozza as code owners July 21, 2026 13:48
Enable the testcases names qemu-cross, which are used by the
test_build_cross tests.
In 8a81ca5 we disabled the creation of
a local registry when testing disk images.  At the time we weren't
testing ISOs, so there was no issue with always keeping it disabled.

Now that we're testing ISOs, we need to set up the registry, but only
for ISO tests.  Having it enabled for all build tests, like we had
before, would mean we would be setting up the registry for a lot of
tests that don't need it (disk builds), which is fine when running all
tests at the same time, but annoying and wasteful when testing things
separately, like we do in GitLab.
Add a fixture that builds just the anaconda-iso image type.

This is an alternative to the general image-type fixture, which used to
handle all image builds by calling the build_images() function with the
appropriate request.  The separation allows us to build and test disk
images without depending on the registry fixture, while having separate
tests for ISOs that do.  The registry fixture is only needed when
testing ISOs with a signed base container.
These are still failing and need some work.
@achilleas-k

Copy link
Copy Markdown
Member Author

Needs work. Drafting.

@achilleas-k
achilleas-k marked this pull request as draft July 22, 2026 09:45
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