rfd: 'serial-tests' automake option
Hi,
somewhere between automake-1.11 and automake-1.14 the default for handling "make check" changed from "serial-tests" to "parallel-tests" - which sounds harmless, but has the interesting side effect of hiding the output of all (potentially parallel-run) test scripts until the summary at the end, and even then, only printing the summary, not the detail output.
I can see that this looks much more pretty (and colours, wooh!), but for my day-to-day regression testing and for analyzing buildbot failures, this just adds extra steps to figure out what it is doing right now, and where and why it failed this time - especially in the buildbot case, the difference is "the reason is right in the mail" vs "I need to login to the buildbot machine, go to the right build directory (of many), and grab the log file from there".
Fortunately, there is an automake option for this, which I'd propose to enable... (well hidden inside "info automake-1.14" -> "Options")
tests/Makefile.am +2 -0
@@ -9,6 +9,8 @@ # Copyright (C) 2006-2012 Alon Bar-Lev <[email protected]...> # +AUTOMAKE_OPTIONS = serial-tests + MAINTAINERCLEANFILES = \ $(srcdir)/Makefile.in
... which brings back the old behaviour.
I'm not sure whether it can be passed on an "autoreconf -vif" command line, and if yes, how, but I presume that really nobody who bothers to run "make check" will be bothered by the normal test output - and especially nobody who bothers to set up a t_client.rc test rig in the first place...
But I'm open for discussion and alternative suggestions on this.
gert
Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany [email protected]...
fax: +49-89-35655025 [email protected]...Quoted 4 lines · Gert Doering
Fortunately, there is an automake option for this, which I'd propose to enable... (well hidden inside "info automake-1.14" -> "Options")
... which brings back the old behaviour.
Yes please! I also like to see the test output, both on my development machine as well as on build slaves.
-Steffan
Quoted 18 lines
Hi,
somewhere between automake-1.11 and automake-1.14 the default for handling "make check" changed from "serial-tests" to "parallel-tests" - which sounds harmless, but has the interesting side effect of hiding the output of all (potentially parallel-run) test scripts until the summary at the end, and even then, only printing the summary, not the detail output.
I can see that this looks much more pretty (and colours, wooh!), but for my day-to-day regression testing and for analyzing buildbot failures, this just adds extra steps to figure out what it is doing right now, and where and why it failed this time - especially in the buildbot case, the difference is "the reason is right in the mail" vs "I need to login to the buildbot machine, go to the right build directory (of many), and grab the log file from there".
Quoted 2 lines
Fortunately, there is an automake option for this, which I'd propose to enable... (well hidden inside "info automake-1.14" -> "Options")
Running the tests in serial and having the failures show up in buildbot emails makes sense to me. Consider this a feature-ACK.
Signature · 5 lines
Samuli Seppänen Community Manager OpenVPN Technologies, Inc irc freenode net: mattock
Quoted 34 lines · Gert Doering
Hi,
somewhere between automake-1.11 and automake-1.14 the default for handling "make check" changed from "serial-tests" to "parallel-tests" - which sounds harmless, but has the interesting side effect of hiding the output of all (potentially parallel-run) test scripts until the summary at the end, and even then, only printing the summary, not the detail output.
I can see that this looks much more pretty (and colours, wooh!), but for my day-to-day regression testing and for analyzing buildbot failures, this just adds extra steps to figure out what it is doing right now, and where and why it failed this time - especially in the buildbot case, the difference is "the reason is right in the mail" vs "I need to login to the buildbot machine, go to the right build directory (of many), and grab the log file from there".
Fortunately, there is an automake option for this, which I'd propose to enable... (well hidden inside "info automake-1.14" -> "Options")
tests/Makefile.am +2
-0@@ -9,6 +9,8 @@ # Copyright (C) 2006-2012 Alon Bar-Lev <[email protected]...> # +AUTOMAKE_OPTIONS = serial-tests + MAINTAINERCLEANFILES = \ $(srcdir)/Makefile.in
Quoted 9 lines
... which brings back the old behaviour.
I'm not sure whether it can be passed on an "autoreconf -vif" command line, and if yes, how, but I presume that really nobody who bothers to run "make check" will be bothered by the normal test output - and especially nobody who bothers to set up a t_client.rc test rig in the first place...
But I'm open for discussion and alternative suggestions on this.
This makes a lot of sense to me. Our project doesn't really benefit in general of running our tests parallel.
This gets an ACK from me. I just tested your change locally, and it seems to work very well. And from what I can grasp from the automake documentation [1], this seems safe for us to do.
[1]
<https://www.gnu.org/software/automake/manual/html_node/Serial-Test-Harness.html>
Signature · 3 lines
kind regards, David Sommerseth
Hi,
Quoted 5 lines · David Sommerseth
This makes a lot of sense to me. Our project doesn't really benefit in general of running our tests parallel.
This gets an ACK from me. I just tested your change locally, and it seems to work very well.
Thanks :-) (and of *course* I tested this before posting... sometimes I actually remember to run "make test" before pushing out broken commits... *ahem*)
Quoted 5 lines
And from what I can grasp from the automake
documentation [1], this seems safe for us to do.[1]
<https://www.gnu.org/software/automake/manual/html_node/Serial-Test-Harness.html>
Thanks for this pointer - while the server seems to be down right now, I've included the URL in the commit.
commit fc03ca9d13e35c40bdf1c3c676db2adf48c60223 (master) commit c196ea922755bb25f9837080d562ef4d3495999f (release/2.3)
Author: Gert Doering <[email protected]...> Date: Wed May 27 20:31:38 2015 +0200
Enforce "serial-tests" behaviour for tests/Makefile
Signed-off-by: Gert Doering <[email protected]...>
Message-ID: <[email protected]...>
URL: http://article.gmane.org/gmane.network.openvpn.devel/9738
Acked-by: David Sommerseth <[email protected]...>Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany [email protected]...
fax: +49-89-35655025 [email protected]...Hi,
Quoted 10 lines · Gert Doering
Quoted 5 lines · David Sommerseth
This makes a lot of sense to me. Our project doesn't really benefit in general of running our tests parallel.
This gets an ACK from me. I just tested your change locally, and it seems to work very well.
Thanks :-) (and of *course* I tested this before posting... sometimes I actually remember to run "make test" before pushing out broken commits... *ahem*)
Unfortunately, this was just *too* easy - in other words, if you happen to build with an older version of automake that does not understand the "serial-tests" option, it will just blow up...
autoreconf: running: automake --add-missing --copy --no-force tests/Makefile.am:12: option `serial-tests' not recognized
autoreconf: automake failed with exit status: 1
... haven't seen *that* much "red" in the buildbot status in quite a while
- basically, everything older than a few years (FreeBSD 8, CentOS 6, Debian 7, Ubuntu 12.04...)
David suggested making this conditional, but I couldn't find anything in the docs, so I think I'll revert the patch tomorrow-ish and reopen the trac ticket... :-(
(Buildbots can be fixed, of course, but what we have now would blow up in the same way for all users of a git checkout. Thankyouverymuch, dear Autotools community...)
gert
Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany [email protected]...
fax: +49-89-35655025 [email protected]...