Skip to content

gitlab: add bootc disk build + boot-test pipelines (HMS-10854) - #2581

Merged
supakeen merged 6 commits into
osbuild:mainfrom
avitova:bootc-tests
Aug 25, 2026
Merged

supakeen merged 6 commits into
osbuild:mainfrom
avitova:bootc-tests

Conversation

@avitova

@avitova avitova commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

This adds pipelines for testing bootc disk build and boot in gitlab.

@avitova
avitova force-pushed the bootc-tests branch 3 times, most recently from 61e3dff to b0d7d69 Compare August 5, 2026 14:38
"options": {
"bootc": {
"installer_payload_ref": "payload-container-fake-ref"
"installer_payload_ref": "quay.io/centos-bootc/centos-bootc:stream10"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This change produced changes in manifest-checksums btw:)

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.

Makes sense. We generate fake content IDs based on the inputs (package names, container refs, ostree commit URLs).

@achilleas-k
achilleas-k self-requested a review August 5, 2026 15:37
@achilleas-k achilleas-k self-assigned this Aug 5, 2026
Comment thread test/scripts/generate-gitlab-ci Outdated

for bootc_source in BOOTC_SOURCES:
# Build/boot only arches that are both in the bootcref and supported for
# full image CI (skip manifest-only arches like ppc64le/s390x).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Btw this is intentional, I do not think we are able to test ppc64le/s390x, as I believe we also test only these for generate-build-config, right?

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.

Yup.

Comment thread test/scripts/generate-bootc-config Outdated
Comment on lines +33 to +34
def should_include_config(config_name: str) -> bool:
return config_name in BOOTC_CONFIGS

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We can also create a new bootc-config-list.json which might make it a little easier to deal with in tests, but I wanted to keep things consistent for now.

script:
- sudo -E ./test/scripts/setup-osbuild-repo
- sudo ./test/scripts/install-dependencies
- podman pull {bootc_ref}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is basicaly the only change in the JOB_TEMPLATE compared to generate-build-config. I think we can also later test this without the podman pull. 👁️

@achilleas-k achilleas-k changed the title many: gitlab: add botc disk build + boot-test pipelines (HMS-10854) many: gitlab: add bootc disk build + boot-test pipelines (HMS-10854) Aug 7, 2026
@avitova
avitova force-pushed the bootc-tests branch 11 times, most recently from 3b4707b to 90ea4cd Compare August 14, 2026 11:18
@avitova
avitova force-pushed the bootc-tests branch 5 times, most recently from 5207bc7 to a527d66 Compare August 20, 2026 14:22
Change the function for generating manifests in tests to add options
for generation of bootc images manifest.
Introduce bootc sources under directory test/data/bootcrefs and resolve
container refs from them.
This commit adds bootc-related argument in order to allow building
bootc-based images in tests when using build_image function.
@avitova
avitova marked this pull request as ready for review August 24, 2026 11:23
@avitova
avitova requested review from a team and thozza as code owners August 24, 2026 11:23
@avitova
avitova requested a review from croissanne August 24, 2026 11:23

@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.

Overall looks good, but we need to solve the caching issue I describe below.

Comment thread test/scripts/imgtestlib/core.py Resolved
avitova and others added 3 commits August 24, 2026 15:03
Wire centos-10 bootc image CI via generate-bootc-config pipelines for
local container builds. This commit also fixes collecting bootc jobs
when --bootc-refs is set without --distros.
These are generally hybrid but can't be described nor inspected for
their boot mode; hardcode any bootc-type to be hybrid.

Signed-off-by: Simon de Vlieger <[email protected]>
As documentation of bootc states, some images do not have a default root
filesystem type, and it is necessary to add a switch --rootfs <type>.
This commit adds that field into test/bootcrefs, as well as parsing of
the field.

@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.

Thank you! This must have been a lot of work to figure out all the bits and bobs.
Let's get this merged and start expanding the test matrix now.

@supakeen supakeen 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.

Super work.

@supakeen
supakeen added this pull request to the merge queue Aug 25, 2026
Merged via the queue into osbuild:main with commit 9cbed5e Aug 25, 2026
59 of 61 checks passed
@avitova

avitova commented Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

Thanks! 💯

@achilleas-k achilleas-k changed the title many: gitlab: add bootc disk build + boot-test pipelines (HMS-10854) gitlab: add bootc disk build + boot-test pipelines (HMS-10854) Aug 25, 2026
@avitova
avitova deleted the bootc-tests branch September 30, 2026 12:53
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