https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: sys-apps/earlyoom-1.7 fails tests. Discovered on: amd64 (internal ref: ci)
Created attachment 801169 [details] build.log build log and emerge --info
Error(s) that match a know pattern: /bin/sh: line 1: cppcheck: command not found Could not set priority: Permission denied. Continuing anyway FAIL FAIL github.com/rfjakob/earlyoom 0.277s
*** Bug 866728 has been marked as a duplicate of this bug. ***
cppcheck is optional, it seems it checks for it and, when not found, it continues not relying on it. But tests die later anyway with a different error --- FAIL: TestCli (0.16s) --- PASS: TestCli/-h (0.00s) --- PASS: TestCli/--help (0.00s) --- FAIL: TestCli/#00 (0.00s) --- FAIL: TestCli/-p (0.00s) --- PASS: TestCli/-v (0.00s) --- FAIL: TestCli/-d (0.00s) --- FAIL: TestCli/-m_1 (0.00s) --- PASS: TestCli/-m_0 (0.00s) --- PASS: TestCli/-m_-10 (0.00s) --- PASS: TestCli/-m_100 (0.00s) --- FAIL: TestCli/-s_2 (0.00s) --- FAIL: TestCli/-s_100 (0.00s) --- PASS: TestCli/-s_101 (0.00s) --- PASS: TestCli/-s_0 (0.00s) --- PASS: TestCli/-s_-10 (0.00s) --- FAIL: TestCli/-M_325635 (0.00s) --- PASS: TestCli/-M_9999999999999999 (0.00s) --- PASS: TestCli/-r=0 (0.10s) --- FAIL: TestCli/-r_0.1 (0.00s) --- FAIL: TestCli/--avoid_MyProcess1 (0.00s) --- FAIL: TestCli/--prefer_MyProcess2 (0.00s) --- FAIL: TestCli/-i (0.00s) --- PASS: TestCli/xyz (0.00s) --- PASS: TestCli/-i_1 (0.00s) --- FAIL: TestCli/-m_2,1 (0.00s) --- FAIL: TestCli/-m_1,2 (0.00s) --- PASS: TestCli/-m_1,-1 (0.00s) --- PASS: TestCli/-m_1000,-1000 (0.00s) --- FAIL: TestCli/-s_2,1 (0.00s) --- FAIL: TestCli/-s_1,2 (0.00s) --- FAIL: TestCli/-m_5,0 (0.00s) --- FAIL: TestCli/-m_5,9 (0.00s) --- PASS: TestCli/-M_-1 (0.00s) --- PASS: TestCli/-M_2147483648 (0.00s) --- PASS: TestCli/-M_4294967296 (0.00s) --- PASS: TestCli/-m_-1 (0.00s) --- PASS: TestCli/-m_2147483648 (0.00s) --- PASS: TestCli/-m_4294967296 (0.00s) --- PASS: TestCli/-S_-1 (0.00s) --- PASS: TestCli/-S_2147483648 (0.00s) --- PASS: TestCli/-S_4294967296 (0.00s) --- PASS: TestCli/-s_-1 (0.00s) --- PASS: TestCli/-s_2147483648 (0.00s) --- PASS: TestCli/-s_4294967296 (0.00s) --- FAIL: TestCli/-m_3.14 (0.00s) --- FAIL: TestCli/-m_7,3.14 (0.00s) --- FAIL: TestCli/-s_12.34 (0.00s) --- PASS: TestCli/-m_10_-M_325635 (0.00s) --- PASS: TestCli/-S_671088 (0.00s) --- FAIL: TestCli/-s_10_-S_671088 (0.00s) === RUN TestRss testsuite_cli_test.go:208: rss above 2048 kiB testsuite_cli_test.go:210: earlyoom RSS: 2120 kiB --- FAIL: TestRss (0.00s) === RUN TestParseTuple warning: SIGTERM value 5.00 is below SIGKILL value 9.00, setting SIGTERM = SIGKILL = 9.00 warning: SIGTERM value 0.00 is below SIGKILL value 5.00, setting SIGTERM = SIGKILL = 5.00 warning: SIGTERM value 4.00 is below SIGKILL value 5.00, setting SIGTERM = SIGKILL = 5.00 --- PASS: TestParseTuple (0.00s) === RUN TestIsAlive --- PASS: TestIsAlive (0.00s) === RUN TestIsAliveMock --- PASS: TestIsAliveMock (0.00s) === RUN Test_fix_truncated_utf8 --- PASS: Test_fix_truncated_utf8 (0.00s) === RUN Test_get_vm_rss_kib --- PASS: Test_get_vm_rss_kib (0.00s) === RUN Test_get_oom_score --- PASS: Test_get_oom_score (0.00s) === RUN Test_get_comm testsuite_unit_test.go:179: process name "earlyoom.test" --- PASS: Test_get_comm (0.00s) FAIL exit status 1 FAIL github.com/rfjakob/earlyoom 0.163s rm -r $WORK/b001/ make: *** [Makefile:86: test] Error 1
I added the missing dep. However, I'm unable to replicate the test failure. The test failure seems to be for specific systems or settings or something which means it unreliable. The tests are a bit scary on this to be honest, but they work for me so I'd rather not disable tests unless people want me to.