Created attachment 234899 [details] poudriere bulk log of devel/bmake devel/bmake fails unit test deptgt-interrupt
Is it reproducible on every run or just sporadic? Because I have failed to reproduce it locally so far.
(In reply to Mikolaj Golub from comment #1) Yes, after jail rebuild, no ccache, still fails, but I must be missing something. I will accept whatever you decide, of course.
The unit test is defective and will always be flaky. There is no guarantee that the SIGINT reaches the shell process before it exits, and especially under load it is very likely that it doesn't. So there's no guarantee that Ctrl-C will always be output. The test can be improved slightly by adding a sleep to the test, giving the system some time to deliver the signal: all: @kill -INT ${.MAKE.PID} + @sleep 10 .INTERRUPT: @echo 'Ctrl-C' Though I'd recommend just disabling the unit test or not making its failure fail the build. I don't understand why we are running the units tests on build anyway. There's a dedicated test target for that. (just had a build failure on armv7 13.1 with this test)
Created attachment 234990 [details] devel/bmake: don't run tests on build I am going to disable test run on build and provide "test" target instead as it is in the attached patch.
Sounds good!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=69f9eae5417aaf7156c499741a46512e05d4c62d commit 69f9eae5417aaf7156c499741a46512e05d4c62d Author: Mikolaj Golub <trociny@FreeBSD.org> AuthorDate: 2022-06-29 05:51:49 +0000 Commit: Mikolaj Golub <trociny@FreeBSD.org> CommitDate: 2022-06-30 07:18:10 +0000 devel/bmake: don't run tests on build Some tests are unreliable and we were fighting them by just disabling. So instead of running tests on build, provide "test" target. And now we may remove the patches that disabled failing tests. PR: 264856 devel/bmake/Makefile | 11 ++++--- .../files/extrapatch-unit-tests_Makefile (gone) | 11 ------- devel/bmake/files/patch-boot-strap (new) | 12 ++++++++ devel/bmake/files/patch-unit-tests_Makefile (gone) | 36 ---------------------- 4 files changed, 18 insertions(+), 52 deletions(-)
Succeeds for me. Thanks.