Skip to content

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

Draft
avitova wants to merge 6 commits into
osbuild:mainfrom
avitova:bootc-tests
Draft

many: gitlab: add bootc disk build + boot-test pipelines (HMS-10854)#2581
avitova wants to merge 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

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 added 3 commits August 7, 2026 15:09
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 force-pushed the bootc-tests branch 2 times, most recently from 43575a3 to 324f707 Compare August 7, 2026 13:40
avitova added 3 commits August 7, 2026 16: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.
Bootc requires rootful podman mount, this commit prepends sudo to the
command "go run ./cmd/gen-manifests".
Skip known-broken bootc image types in generate-bootc-config, so
gen-manifests can succeed and the bootc pipeline can be generated.
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