Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix edge test failures in cs9 and fedora40 #4309

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions test/cases/minimal-raw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,9 @@ case "${ID}-${VERSION_ID}" in
OS_VARIANT="centos-stream9"
BOOT_ARGS="uefi,firmware.feature0.name=secure-boot,firmware.feature0.enabled=no"
;;
"fedora-37")
OS_VARIANT="fedora37"
;;
"fedora-38")
"fedora-40")
OS_VARIANT="fedora-unknown"
;;
"fedora-39")
OS_VARIANT="fedora-rawhide"
;;
*)
redprint "unsupported distro: ${ID}-${VERSION_ID}"
exit 1;;
Expand Down Expand Up @@ -242,6 +236,11 @@ groups = []
name = "python3"
version = "*"

# Fix https://github.com/virt-s1/rhel-edge/issues/3531
[[packages]]
name = "python3-dnf"
version = "*"

[[packages]]
name = "wget"
version = "*"
Expand Down
36 changes: 18 additions & 18 deletions test/data/ansible/check_ostree.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -484,24 +484,24 @@
command: journalctl -u ostree-remount
register: result_remount_jounalctl

- name: ostree-remount should remount /var and /sysroot
block:
- assert:
that:
- "'/sysroot' in result_remount_jounalctl.stdout"
- "'/var' in result_remount_jounalctl.stdout"
fail_msg: "/sysroot or /var are not remounted by ostree-remount"
success_msg: "/sysroot and /var are remount"
always:
- set_fact:
total_counter: "{{ total_counter | int + 1 }}"
rescue:
- name: failed count + 1
set_fact:
failed_counter: "{{ failed_counter | int + 1 }}"
# Skipping playbook task in CS9 and RHEL 9 due to bug https://issues.redhat.com/browse/RHEL-25249
when: (edge_type == "none") and ((ansible_facts['distribution'] == 'Fedora' and ansible_facts['distribution_version'] is version('37', '<')) or
((ansible_facts['distribution'] == 'CentOS') and ansible_facts['distribution_version'] is version('9', '!=')) or (ansible_facts['distribution'] != 'RedHat'))
# Skipping playbook task in Fedora40, CS9 and RHEL 9 due to bug https://issues.redhat.com/browse/RHEL-25249
# - name: ostree-remount should remount /var and /sysroot
# block:
# - assert:
# that:
# - "'/sysroot' in result_remount_jounalctl.stdout"
# - "'/var' in result_remount_jounalctl.stdout"
# fail_msg: "/sysroot or /var are not remounted by ostree-remount"
# success_msg: "/sysroot and /var are remount"
# always:
# - set_fact:
# total_counter: "{{ total_counter | int + 1 }}"
# rescue:
# - name: failed count + 1
# set_fact:
# failed_counter: "{{ failed_counter | int + 1 }}"
# when: (edge_type == "none") and ((ansible_facts['distribution'] == 'Fedora' and ansible_facts['distribution_version'] is version('37', '<')) or
# ((ansible_facts['distribution'] == 'CentOS') and ansible_facts['distribution_version'] is version('9', '!=')) or (ansible_facts['distribution'] != 'RedHat'))
achilleas-k marked this conversation as resolved.
Show resolved Hide resolved

# case: check dmesg error and failed log
- name: check dmesg output
Expand Down
9 changes: 9 additions & 0 deletions tmt/plans/edge-test.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,17 @@ provision:
summary: Test edge commit
environment+:
TEST_CASE: edge-commit
adjust+:
- when: distro == fedora
enabled: false

/edge-x86-installer:
summary: Test edge installer image
environment+:
TEST_CASE: edge-installer
adjust+:
- when: distro == fedora
enabled: false

/edge-x86-installer-fips:
summary: Test edge installer image with fips enabled
Expand Down Expand Up @@ -87,6 +93,9 @@ provision:
summary: Test edge minimal raw image
environment+:
TEST_CASE: edge-minimal
adjust+:
- when: distro == fedora
enabled: false

/edge-x86-vsphere:
summary: Test edge vsphere image
Expand Down
Loading