]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: temporarily skip failing tests on GH Actions 18128/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 8 Jan 2021 10:20:50 +0000 (11:20 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 8 Jan 2021 10:37:01 +0000 (11:37 +0100)
src/test/test-bpf-firewall.c
src/test/test-execute.c
src/test/test-loop-block.c

index cb7d8398a81c59297eade2ea8e9110efd523f194..d129bb362954444790e11088883cb011d62dc6ea 100644 (file)
@@ -37,6 +37,16 @@ int main(int argc, char *argv[]) {
         if (detect_container() > 0)
                 return log_tests_skipped("test-bpf-firewall fails inside LXC and Docker containers: https://github.com/systemd/systemd/issues/9666");
 
+#ifdef __clang__
+        /* FIXME: This test is for (currently unknown) reasons failing in both
+         * sanitized and unsanitized clang runs. Until the issue is resolved,
+         * let's skip the test when running on GH Actions and compiled with
+         * clang.
+         */
+        if (strstr_ptr(ci_environment(), "github-actions"))
+                return log_tests_skipped("Skipping test on GH Actions");
+#endif
+
         assert_se(getrlimit(RLIMIT_MEMLOCK, &rl) >= 0);
         rl.rlim_cur = rl.rlim_max = MAX(rl.rlim_max, CAN_MEMLOCK_SIZE);
         (void) setrlimit(RLIMIT_MEMLOCK, &rl);
index 3b6a4be26028f7cf4bfcd05bad511f0aa104423c..1890cc4f75261b0ad97838a37e90954e39064efe 100644 (file)
@@ -574,6 +574,11 @@ static void test_exec_dynamicuser(Manager *m) {
                 return;
         }
 
+        if (strstr_ptr(ci_environment(), "github-actions")) {
+                log_notice("%s: skipping test on GH Actions because of systemd/systemd#10337", __func__);
+                return;
+        }
+
         test(m, "exec-dynamicuser-fixeduser.service", can_unshare ? 0 : EXIT_NAMESPACE, CLD_EXITED);
         if (check_user_has_group_with_same_name("adm"))
                 test(m, "exec-dynamicuser-fixeduser-adm.service", can_unshare ? 0 : EXIT_NAMESPACE, CLD_EXITED);
index 298ded94df4f79d0152e2664c2d6568a15ae5430..93f2da70e77502537f28fbf8efc9e1c9c927129c 100644 (file)
@@ -132,9 +132,9 @@ int main(int argc, char *argv[]) {
                 return EXIT_TEST_SKIP;
         }
 
-        if (strstr_ptr(ci_environment(), "autopkgtest")) {
+        if (strstr_ptr(ci_environment(), "autopkgtest") || strstr_ptr(ci_environment(), "github-actions")) {
                 // FIXME: we should reenable this one day
-                log_tests_skipped("Skipping test on Ubuntu autopkgtest CI, test too slow and installed udev too flakey.");
+                log_tests_skipped("Skipping test on Ubuntu autopkgtest CI/GH Actions, test too slow and installed udev too flakey.");
                 return EXIT_TEST_SKIP;
         }