Skip to content

tests: update grub2 version to F44#1101

Merged
cgwalters merged 4 commits into
coreos:mainfrom
Rolv-Apneseth:fix-ci
May 27, 2026
Merged

tests: update grub2 version to F44#1101
cgwalters merged 4 commits into
coreos:mainfrom
Rolv-Apneseth:fix-ci

Conversation

@Rolv-Apneseth
Copy link
Copy Markdown
Member

@Rolv-Apneseth Rolv-Apneseth commented May 27, 2026

Working off of 4fedddb, and testing if this can close #1100

If it does, maybe this should be made more dynamic to reduce the maintenance burden.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the end-to-end update test script (tests/e2e-update/e2e-update.sh) to use Fedora 44 (F44) packages instead of Fedora 43 (F43) for the grub2 overrides. Specifically, it bumps the starting image grub2 version to grub2-2.12-56.fc44 and the update ostree grub2 version to grub2-2.12-58.fc44. There are no review comments to address.

@Rolv-Apneseth
Copy link
Copy Markdown
Member Author

Made it further than before at least. New error:

[2026-05-27T11:25:08.352Z] + timeout 5m kola qemuexec --propagate-initramfs-failure --qemu-image /home/jenkins/agent/workspace/bootupd_PR-1101/builds/44.20260527.20.dev1/x86_64/fedora-coreos-44.20260527.20.dev1-qemu.x86_64.qcow2 --qemu-firmware uefi -i test.ign --bind-ro /home/jenkins/agent/workspace/bootupd_PR-1101,/run/cosadir --bind-ro /home/jenkins/agent/workspace/bootupd_PR-1101,/run/bootupd-source --bind-rw /var/tmp/bootupd-e2e.mn6YICX,/run/testtmp --console-to-file /home/jenkins/agent/workspace/bootupd_PR-1101/tmp/console.txt
[2026-05-27T11:26:04.494Z] + test -f /var/tmp/bootupd-e2e.mn6YICX/success
[2026-05-27T11:26:04.494Z] + test -s /var/tmp/bootupd-e2e.mn6YICX/out.txt
[2026-05-27T11:26:04.494Z] + sed -e 's,^,# ,'
[2026-05-27T11:26:04.494Z] # Starting /run/bootupd-source/tests/e2e-update//e2e-update-in-vm.sh
[2026-05-27T11:26:04.494Z] # + setenforce 0
[2026-05-27T11:26:04.494Z] # + runv rpm-ostree rebase /run/cosadir/tmp/repo:f19ca80da850072be77b16e08425177d0d208fadbb2d461969be04e03749bcdd
[2026-05-27T11:26:04.494Z] # + set -x
[2026-05-27T11:26:04.494Z] # + rpm-ostree rebase /run/cosadir/tmp/repo:f19ca80da850072be77b16e08425177d0d208fadbb2d461969be04e03749bcdd
[2026-05-27T11:26:04.494Z] # 1456 metadata, 4043 content objects imported; 176.0 MB content written
[2026-05-27T11:26:04.494Z] # Writing objects: 1...done
[2026-05-27T11:26:04.494Z] # Staging deployment...done
[2026-05-27T11:26:04.494Z] # Upgraded:
[2026-05-27T11:26:04.494Z] #   grub2-common 1:2.12-56.fc44 -> 1:2.12-58.fc44
[2026-05-27T11:26:04.494Z] #   grub2-efi-x64 1:2.12-56.fc44 -> 1:2.12-58.fc44
[2026-05-27T11:26:04.494Z] #   grub2-pc 1:2.12-56.fc44 -> 1:2.12-58.fc44
[2026-05-27T11:26:04.494Z] #   grub2-pc-modules 1:2.12-56.fc44 -> 1:2.12-58.fc44
[2026-05-27T11:26:04.494Z] #   grub2-tools 1:2.12-56.fc44 -> 1:2.12-58.fc44
[2026-05-27T11:26:04.494Z] #   grub2-tools-minimal 1:2.12-56.fc44 -> 1:2.12-58.fc44
[2026-05-27T11:26:04.494Z] # Added:
[2026-05-27T11:26:04.494Z] #   test_bootupd_payload-1.0-1.x86_64
[2026-05-27T11:26:04.494Z] # Changes queued for next boot. Run "systemctl reboot" to start a reboot
[2026-05-27T11:26:04.494Z] # + runv touch /etc/e2e-update-in-vm.sh.upgraded
[2026-05-27T11:26:04.494Z] # + set -x
[2026-05-27T11:26:04.494Z] # + touch /etc/e2e-update-in-vm.sh.upgraded
[2026-05-27T11:26:04.494Z] # + runv systemd-run -- systemctl reboot
[2026-05-27T11:26:04.494Z] # + set -x
[2026-05-27T11:26:04.494Z] # + systemd-run -- systemctl reboot
[2026-05-27T11:26:04.494Z] # Running as unit: run-p1505-i1505.service; invocation ID: 0cee656bbc484eb18983c5c39fa8d3b1
[2026-05-27T11:26:04.494Z] # + touch /run/rebooting
[2026-05-27T11:26:04.494Z] # + sleep infinity
[2026-05-27T11:26:04.494Z] # Starting /run/bootupd-source/tests/e2e-update//e2e-update-in-vm.sh
[2026-05-27T11:26:04.494Z] # Skipped: BIOS
[2026-05-27T11:26:04.494Z] # Validated: EFI
[2026-05-27T11:26:04.494Z] # ok validate
[2026-05-27T11:26:04.494Z] # Component BIOS
[2026-05-27T11:26:04.494Z] #   Installed: grub2-tools-1:2.12-56.fc44.x86_64
[2026-05-27T11:26:04.494Z] #   Update: Available: grub2-tools-1:2.12-58.fc44.x86_64
[2026-05-27T11:26:04.494Z] # Component EFI
[2026-05-27T11:26:04.494Z] #   Installed: grub2-1:2.12-56.fc44,shim-16.1-5
[2026-05-27T11:26:04.494Z] #   Update: Available: grub2-1:2.12-58.fc44,shim-16.1-5
[2026-05-27T11:26:04.494Z] # No components are adoptable.
[2026-05-27T11:26:04.494Z] # CoreOS aleph version: 44.20260527.20.dev1
[2026-05-27T11:26:04.494Z] # Boot method: EFI
[2026-05-27T11:26:04.494Z] # -rw-r--r--. 1 root root 319 May 27 11:25 out.txt
[2026-05-27T11:26:04.494Z] # # Component BIOS
[2026-05-27T11:26:04.494Z] # #   Installed: grub2-tools-1:2.12-56.fc44.x86_64
[2026-05-27T11:26:04.494Z] # #   Update: Available: grub2-tools-1:2.12-58.fc44.x86_64
[2026-05-27T11:26:04.494Z] # # Component EFI
[2026-05-27T11:26:04.494Z] # #   Installed: grub2-1:2.12-56.fc44,shim-16.1-5
[2026-05-27T11:26:04.494Z] # #   Update: Available: grub2-1:2.12-58.fc44,shim-16.1-5
[2026-05-27T11:26:04.494Z] # # No components are adoptable.
[2026-05-27T11:26:04.494Z] # # CoreOS aleph version: 44.20260527.20.dev1
[2026-05-27T11:26:04.494Z] # # Boot method: EFI
[2026-05-27T11:26:04.494Z] # error: File 'out.txt' doesn't match regexp 'Update: Available:.*test_bootupd_payload-1.0'

@travier
Copy link
Copy Markdown
Member

travier commented May 27, 2026

As this is related to a Fedora rebase, I think we should add an entry in the Fedora CoreOS rebase template to mention updating the CI here.

@Rolv-Apneseth
Copy link
Copy Markdown
Member Author

As this is related to a Fedora rebase, I think we should add an entry in the Fedora CoreOS rebase template to mention updating the CI here.

Sure yeah. That's this right: https://github.com/coreos/fedora-coreos-tracker/blob/main/.github/ISSUE_TEMPLATE/rebase.md

@travier
Copy link
Copy Markdown
Member

travier commented May 27, 2026

Yes

@cgwalters
Copy link
Copy Markdown
Member

Yeah basically every 6 months the CI in everything using the CoreOS CI (this project, ostree, rpm-ostree) tends to break because they just float to $latest but have things that are actually quite sensitive to the OS content. (I suspect this is less true of say Ignition). I think all of these things need to use version-pinned inputs.

Now the other big thing that this relates to is migrating off of CoreOS CI entirely.

@Rolv-Apneseth
Copy link
Copy Markdown
Member Author

Made it past the e2e test this time, but in the kola step, ext.bootupd.test-bootupd failed with:

+ bootupctl status
++ rpm -q grub2-common --qf '%{EVR}'
+ evr=1:2.12-58.fc44
+ assert_file_has_content_literal out.txt 'Component EFI'
+ fpath=out.txt
+ shift
+ for s in "$@"
+ grep -q -F -e 'Component EFI' out.txt
+ false
+ assert_file_has_content_literal out.txt '  Installed: grub2-efi-x64-'
+ fpath=out.txt
+ shift
+ for s in "$@"
+ grep -q -F -e '  Installed: grub2-efi-x64-' out.txt
+ _fatal_print_file out.txt 'File '\''out.txt'\'' doesn'\''t match fixed string list '\''  Installed: grub2-efi-x64-'\'''
+ file=out.txt
+ shift
+ ls -al out.txt
-rw-r--r--. 1 root root 266 May 27 14:18 out.txt
+ sed -e 's/^/# /'
# Component BIOS
#   Installed: grub2-tools-1:2.12-58.fc44.x86_64
#   Update: At latest version
# Component EFI
#   Installed: grub2-1:2.12-58.fc44,shim-16.1-5
#   Update: At latest version
# No components are adoptable.
# CoreOS aleph version: 44.20260527.20.dev3
# Boot method: EFI
+ fatal 'File '\''out.txt'\'' doesn'\''t match fixed string list '\''  Installed: grub2-efi-x64-'\'''
+ echo error: File ''\''out.txt'\''' 'doesn'\''t' match fixed string list \' Installed: 'grub2-efi-x64-'\'''
error: File 'out.txt' doesn't match fixed string list ' Installed: grub2-efi-x64-'
+ exit 1
+ cleanup
+ test -z ''
+ test -f /tmp/tmp.4q2wXkYfPg/.testtmp
+ cd /
+ rm /tmp/tmp.4q2wXkYfPg -rf
systemd[1]: kola-runext.service: Main process exited, code=exited

Fix following fbb5911 so that we actually check the existence of the
/usr/lib/efi dir correctly by expanding the existing variable
@travier
Copy link
Copy Markdown
Member

travier commented May 27, 2026

Installed: grub2-1:2.12-58.fc44,shim-16.1-5

It's a change from grub2-efi-x64 (subpackage) to grub2 (source package name). This is related to the changes we did for https://fedoraproject.org/wiki/Changes/BootLoaderUpdatesPhase1 that are now live in F44.

@travier
Copy link
Copy Markdown
Member

travier commented May 27, 2026

Now the other big thing that this relates to is migrating off of CoreOS CI entirely.

Well, I would say that we should keep the CoreOS CI running to cover the CoreOS specific bits and add more CI based on bootc base images.

When using /usr/lib/efi, metadata is derived from the directory
structure so deleting EFI.json doesn't cause bootupctl update to fail.
@Rolv-Apneseth
Copy link
Copy Markdown
Member Author

pr-merge now passing. Looks like the c9s-bootc-e2e failure is a flake but I'll push a change that will hopefully prevent these.

dnf sometimes leaves behind files in /tmp, causing the bootc container
lint to fail. Let's just manually clean up /tmp to avoid this flake.
@Rolv-Apneseth
Copy link
Copy Markdown
Member Author

I think all of these things need to use version-pinned inputs.

Would we do this by pinning a fedora-coreos-config ref? Sounds reasonable to me, as long as there's automated CI to create PRs for bumping this.

@Rolv-Apneseth
Copy link
Copy Markdown
Member Author

All CI passing now, I'll let you have another look just in case before merging @travier

@cgwalters
Copy link
Copy Markdown
Member

Thank you!!

@cgwalters cgwalters merged commit 8069f50 into coreos:main May 27, 2026
12 checks passed
@Rolv-Apneseth
Copy link
Copy Markdown
Member Author

No problem, thanks for merging

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.

CI failing due to depsolve issue

3 participants