public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] pr775-checkpolicy-revdeps: tests-pr.yml: Update the kernel and reboot before running tests
@ 2026-09-11 13:18 Ondrej Mosnacek
  0 siblings, 0 replies; only message in thread
From: Ondrej Mosnacek @ 2026-09-11 13:18 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : tests/selinux
            Branch : pr775-checkpolicy-revdeps
            Commit : 636cce7ac9aca65da37e8997486cb471b84fae0b
            Author : Ondrej Mosnacek <omosnace@redhat.com>
            Date   : 2020-10-29T12:36:24+01:00
            Stats  : +20/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/tests/selinux/c/636cce7ac9aca65da37e8997486cb471b84fae0b?branch=pr775-checkpolicy-revdeps

            Log:
            tests-pr.yml: Update the kernel and reboot before running tests

This adds a couple minutes (if I read the ansible output right, it
should be about 3 minutes) to the CI run time, but allows
selinux-testsuite to run successfully.

See also:
https://pagure.io/fedora-ci/general/issue/162

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>

---
diff --git a/tests-pr.yml b/tests-pr.yml
index 1f8bea8..5b5e020 100644
--- a/tests-pr.yml
+++ b/tests-pr.yml
@@ -14,6 +14,26 @@
       set_fact:
         tests: "{{ tests_list.stdout.split(' ') }}"
 
+    # Update to the latest kernel to allow installing kernel-* packages
+    # matching the running kernel version.
+    # See: https://pagure.io/fedora-ci/general/issue/162
+    # May be removed once the issue above is resolved.
+    - name: Update kernel packages and reboot
+      block:
+        - name: Update kernel-core
+          shell: dnf update -y kernel-core
+
+        - name: Restart host
+          shell: sleep 2 && shutdown -r now "Ansible updates triggered"
+          async: 1
+          poll: 0
+          ignore_errors: true
+
+        - name: Wait for host to come back
+          wait_for_connection:
+            delay: 10
+            timeout: 300
+
   roles:
   - role: standard-test-beakerlib
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-11 13:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-11 13:18 [tests/selinux] pr775-checkpolicy-revdeps: tests-pr.yml: Update the kernel and reboot before running tests Ondrej Mosnacek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox