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 5 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. 👁️
3b4707b to
90ea4cd
Compare
a7261b7 to
630753d
Compare
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.
4504e7e to
5207bc7
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.
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]>
This adds pipelines for testing bootc disk build and boot in gitlab.