Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 866725 - sys-apps/earlyoom-1.7 fails tests
Summary: sys-apps/earlyoom-1.7 fails tests
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Rick Farina (Zero_Chaos)
URL: https://github.com/rfjakob/earlyoom/i...
Whiteboard:
Keywords:
: 866728 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-08-26 16:07 UTC by Agostino Sarubbo
Modified: 2023-08-23 17:41 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,348.09 KB, text/plain)
2022-08-26 16:07 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-08-26 16:07:35 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-apps/earlyoom-1.7 fails tests.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2022-08-26 16:07:38 UTC
Created attachment 801169 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-08-26 16:07:39 UTC
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
Comment 3 Pacho Ramos gentoo-dev 2022-12-01 20:38:25 UTC
*** Bug 866728 has been marked as a duplicate of this bug. ***
Comment 4 Pacho Ramos gentoo-dev 2023-05-19 09:23:54 UTC
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
Comment 5 Rick Farina (Zero_Chaos) gentoo-dev 2023-08-23 17:41:35 UTC
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.