Skip to content

feat: build Fedora images#4066

Draft
nestoracunablanco wants to merge 4 commits intoRedHatQE:mainfrom
nestoracunablanco:feat/s390xPublish
Draft

feat: build Fedora images#4066
nestoracunablanco wants to merge 4 commits intoRedHatQE:mainfrom
nestoracunablanco:feat/s390xPublish

Conversation

@nestoracunablanco
Copy link
Contributor

Open for discussion, since Fedora41 is no longer available, and we would need to change to 43 once the the distribution is tested.

This change introduces a suffix to the built artifact to facilitate
multi-architecture image testing. Without this modification, a race
condition occurs when the jobs for s390x and x86_64 run in parallel.

Signed-off-by: Nestor Acuna Blanco <nestor.acuna@ibm.com>
Most of the code is a copy-paste from the amd64 section. The main
difference is that qemu-system-s390x must be installed instead of x86.

After the job runs, an s390x artifact should be published.

Signed-off-by: Nestor Acuna Blanco <nestor.acuna@ibm.com>
The build.sh script primarily utilizes environment variables. To
generate an image for a new architecture, these variables must be
adjusted. This change relocates the generic environment variables
to specific steps, facilitating the transition to multiarch building.

Signed-off-by: Nestor Acuna Blanco <nestor.acuna@ibm.com>
This change enables the publication of the Fedora s390x image
alongside the amd64 image in a single manifest. To achieve this,
the following steps must be taken:

1. Install qemu-system-s390x.
2. Execute build.sh twice with different environment variables.

After completing these steps, both the amd64 and s390x images
should be added to the manifest.

Signed-off-by: Nestor Acuna Blanco <nestor.acuna@ibm.com>
@nestoracunablanco
Copy link
Contributor Author

FYI @rnetser @chandramerla

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 4, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 1962bb8b-9e02-4661-a26c-55f14cc7778a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

sudo apt-get update
sudo apt-get install -y \
qemu-system-x86 \
qemu-system-s390x \
Copy link
Collaborator

Choose a reason for hiding this comment

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

we should install only one, based on arch

working-directory: ./containers/fedora
run: wget -q "https://download.fedoraproject.org/pub/fedora/linux/releases/41/Cloud/x86_64/images/${{ env.FEDORA_IMAGE }}"
env:
FEDORA_IMAGE: Fedora-Cloud-Base-Generic-41-1.4.x86_64.qcow2
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we have these as vars at the top for easier updating (and they are repeated in the code)

# https://bugs.launchpad.net/ubuntu/+source/linux/+bug/759725
run: sudo chmod 0644 /boot/vmlinuz*
- name: Fetch base Fedora image
- name: Fetch base Fedora amd64 image
Copy link
Collaborator

Choose a reason for hiding this comment

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

how about using tools like https://github.com/qoomon/actions--parallel-steps to have steps run in parallel, or use gh matrix yo avoid code duplication

@@ -10,12 +10,10 @@ on:
workflow_dispatch:

jobs:
Copy link
Collaborator

Choose a reason for hiding this comment

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

the flow here should be to promote the built images in component-builder to production -i.e not re-build again.
we need also arm support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants