commit 7b2b44bce4bff85d9fd1bef09d294ddb889056e4
parent 605631ac2992176f7286409320a9971bb5b9cd69
Author: Justin M. Keyes <justinkz@gmail.com>
Date: Sun, 19 Jun 2022 04:19:08 +0200
fix(ci): noisy logs, unreliable test #19019
Problem:
1. CI logs have too many (40+) logs mentioning SIGHUP:
```
WRN 2022-06-18T16:05:47.075 T3568.22499.0/c deadly_signal:177: got signal 1 (SIGHUP)
WRN 2022-06-18T16:05:47.273 T3569.91095.0/c deadly_signal:177: got signal 1 (SIGHUP)
WRN 2022-06-18T16:05:47.651 T3570.59545.0/c deadly_signal:177: got signal 1 (SIGHUP)
```
2. TS parser test still sometimes fails on BSD CI.
3. remote_spec test fails too often.
Solution:
1. Log deadly signals at INFO level. It hasn't been helpful in CI, and
for local troubleshooting it's reasonable to adjust the loglevel as
needed.
2. Adjust the TS parser test again. ref #18911
3. Skip the remote_spec test. The `--remote` feature was merged before
it was fully formed and needs to be revisited.
Diffstat:
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/nvim/os/signal.c b/src/nvim/os/signal.c
@@ -174,7 +174,7 @@ static void deadly_signal(int signum)
set_vim_var_nr(VV_DYING, 1);
v_dying = 1;
- WLOG("got signal %d (%s)", signum, signal_name(signum));
+ ILOG("got signal %d (%s)", signum, signal_name(signum));
snprintf((char *)IObuff, sizeof(IObuff), "Vim: Caught deadly signal '%s'\r\n",
signal_name(signum));
diff --git a/test/functional/core/remote_spec.lua b/test/functional/core/remote_spec.lua
@@ -112,7 +112,7 @@ describe('Remote', function()
eq(nil, string.find(meths.exec('messages', true), 'E247'))
end)
- describe('exits with error on', function()
+ pending('exits with error on', function()
local function run_and_check_exit_code(...)
local bogus_argv = new_argv(...)
diff --git a/test/functional/treesitter/parser_spec.lua b/test/functional/treesitter/parser_spec.lua
@@ -184,8 +184,8 @@ void ui_refresh(void)
local firstrun = q(1)
local manyruns = q(100)
- -- First run should be at least 5x slower.
- assert(500 * manyruns < firstrun, ('firstrun: %d ms, manyruns: %d ms'):format(firstrun / 1000, manyruns / 1000))
+ -- First run should be at least 4x slower.
+ assert(400 * manyruns < firstrun, ('firstrun: %d ms, manyruns: %d ms'):format(firstrun / 1000, manyruns / 1000))
end)
it('support query and iter by capture', function()