Unstable CI: timeout in test_terminal2.vim

6 views
Skip to first unread message

Dominique Pellé

unread,
Jan 17, 2021, 7:12:32 AM1/17/21
to vim_dev
Hi

CI config "linux (huge, gcc, testgui, true)" is often failing
with timeout. The last information in log is:

===
VIMRUNTIME=../../runtime ../vim -f -g -u unix.vim -U NONE --noplugin
--not-a-term -S runtest.vim test_terminal2.vim --cmd 'au SwapExists *
let v:swapchoice = "e"' > /dev/null
Error: The action has timed out.
===

Should we comment out the following line in src/testdir/Makefile
to figure out where it hangs?

REDIR_TEST_TO_NULL = --cmd 'au SwapExists * let v:swapchoice = "e"' > /dev/null

Or perhaps that line should redirect to a temporary file,
which could be shown in CI when the test fails, but not
shown when it succeeds, so it generally does not bloat logs.

Code coverage is also unstable, possibly as a result of failing CI.

Regards
Dominique

Bram Moolenaar

unread,
Jan 17, 2021, 7:52:16 AM1/17/21
to vim...@googlegroups.com, Dominique Pellé
I don't expect much from not doing the redirect. I have been thinking
of writing a line to a file just before calling a Test_ function, and
displaying this file when the test fails. After a timeout this might be
tricky though, the whole script might be aborted. Perhaps there is a
way to always display the file after a short while.

We could split test_terminal2 like it was done before, or move a couple
of tests to test_terminnal3. But even better would be if someone can
reproduce the problem. I've had some success by running tests under
valgrind (to simulate slow execution).

--
"Hit any key to continue" is a lie.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages