Repository navigation
gitlab: add bootc disk build + boot-test pipelines (HMS-10854) - #2581
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
5207bc7 to
a527d66
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.
achilleas-k
left a comment
There was a problem hiding this comment.
Overall looks good, but we need to solve the caching issue I describe below.
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
left a comment
There was a problem hiding this comment.
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.
|
Thanks! 💯 |
This adds pipelines for testing bootc disk build and boot in gitlab.