many: gitlab: add bootc disk build + boot-test pipelines (HMS-10854) - #2581
many: gitlab: add bootc disk build + boot-test pipelines (HMS-10854)#2581avitova wants to merge 6 commits into
Conversation
61e3dff to
b0d7d69
Compare
| "options": { | ||
| "bootc": { | ||
| "installer_payload_ref": "payload-container-fake-ref" | ||
| "installer_payload_ref": "quay.io/centos-bootc/centos-bootc:stream10" |
There was a problem hiding this comment.
This change produced changes in manifest-checksums btw:)
There was a problem hiding this comment.
Makes sense. We generate fake content IDs based on the inputs (package names, container refs, ostree commit URLs).
|
|
||
| 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). |
There was a problem hiding this comment.
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?
| def should_include_config(config_name: str) -> bool: | ||
| return config_name in BOOTC_CONFIGS |
There was a problem hiding this comment.
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} |
There was a problem hiding this comment.
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. 👁️
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.
43575a3 to
324f707
Compare
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.
This adds pipelines for testing bootc disk build and boot in gitlab.