From 1565c02ab4ce28301c8a13781ab3dfe6498603ef Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 20 Jul 2024 18:20:06 +0200 Subject: [PATCH] runtests: fold timing details with GHA, sync `-r` tflags - move timing details into a foldable group when run in GitHub Actions. Spec: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#grouping-log-lines - enable `-r` (run time stats) option in autotools' `test-ci` target, syncing it with cmake. Closes #14284 --- tests/Makefile.am | 2 +- tests/runtests.pl | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 4e95b59f9d..f3e0f87e3c 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -127,7 +127,7 @@ TEST_E = -a -e TEST_NF = -a -p ~flaky ~timing-dependent # special CI target derived from nonflaky with CI-specific flags -TEST_CI = $(TEST_NF) -rm +TEST_CI = $(TEST_NF) -r -rm endif # make sure that PERL is pointing to an executable diff --git a/tests/runtests.pl b/tests/runtests.pl index 9cc9ef1dfa..e5d8e3da04 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -1983,6 +1983,8 @@ sub runtimestats { return if(not $timestats); + logmsg "::group::Run Time Stats\n"; + logmsg "\nTest suite total running time breakdown per task...\n\n"; my @timesrvr; @@ -2109,6 +2111,8 @@ sub runtimestats { } logmsg "\n"; + + logmsg "::endgroup::\n"; } #######################################################################