https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: app-portage/emlop-0.6.1 fails tests (MUSL-SYSTEM). Discovered on: amd64 (internal ref: tinderbox_musl) NOTE: (MUSL-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc but this bug MAY or MAY NOT BE related to musl.
Created attachment 882687 [details] build.log build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: thread 'proces::tests::start_time' panicked at src/proces.rs:160:9: error: test failed, to rerun pass `--bin emlop`
I don't think this failure is related to musl, just to running the tests on a very busy sytem. This unittest compares emlop's process-listing implementation with the standard ps binary. As that's inherently racy (ps and the emlop function don't run exactly at the same time, and therefore don't see the same processes), I've used an error count threshold to consider the test failed. But tinderbox is busy enough to smash that threshold. Not sure what the best fix is. Raising the treshold could hide bugs. I could try to make the test less racy, but that'll only work up to a point. Safest bet would be to just skip this test when running from emerge (I already ignore tests that depend on no emerge process running, but do run those tests in the CI). I'll #[ignore] that test in a future release of emlop. In the meantime for the 0.6.1 ebuild, you can skip that test by replacing `cargo test` with `cargo test -- --skip process::tests::start_time`.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56b6320b05c56ea53a1ab7ba3f22db1eef8ddec9 commit 56b6320b05c56ea53a1ab7ba3f22db1eef8ddec9 Author: Vincent de Phily <moltonel@gmail.com> AuthorDate: 2024-03-05 10:26:39 +0000 Commit: Florian Schmaus <flow@gentoo.org> CommitDate: 2024-03-05 11:23:23 +0000 app-portage/emlop: add 0.7.0 Bug: https://bugs.gentoo.org/922533 Signed-off-by: Vincent de Phily <moltonel@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/35625 Signed-off-by: Florian Schmaus <flow@gentoo.org> app-portage/emlop/Manifest | 68 +++++++++++++++++++ app-portage/emlop/emlop-0.7.0.ebuild | 126 +++++++++++++++++++++++++++++++++++ 2 files changed, 194 insertions(+)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=460a38f20e0f7dfbd378c80e47d5cfa4859c4538 commit 460a38f20e0f7dfbd378c80e47d5cfa4859c4538 Author: Vincent de Phily <moltonel@gmail.com> AuthorDate: 2024-10-08 11:53:08 +0000 Commit: Florian Schmaus <flow@gentoo.org> CommitDate: 2024-10-08 19:32:56 +0000 app-portage/emlop: Drop 0.6.1 Version 0.7.0 has been stabilized. Version 0.6.1 has ebuild QA issues, and unittest bug. Closes: https://bugs.gentoo.org/922533 Signed-off-by: Vincent de Phily <moltonel@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/38827 Signed-off-by: Florian Schmaus <flow@gentoo.org> app-portage/emlop/Manifest | 55 ----------------- app-portage/emlop/emlop-0.6.1.ebuild | 111 ----------------------------------- 2 files changed, 166 deletions(-)