diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2022-06-19 04:19:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-18 19:19:08 -0700 |
commit | 7b2b44bce4bff85d9fd1bef09d294ddb889056e4 (patch) | |
tree | 9e3f17348e1a8389dce13a61d4391d92bc583d6f | |
parent | 605631ac2992176f7286409320a9971bb5b9cd69 (diff) | |
download | rneovim-7b2b44bce4bff85d9fd1bef09d294ddb889056e4.tar.gz rneovim-7b2b44bce4bff85d9fd1bef09d294ddb889056e4.tar.bz2 rneovim-7b2b44bce4bff85d9fd1bef09d294ddb889056e4.zip |
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.
-rw-r--r-- | src/nvim/os/signal.c | 2 | ||||
-rw-r--r-- | test/functional/core/remote_spec.lua | 2 | ||||
-rw-r--r-- | test/functional/treesitter/parser_spec.lua | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/os/signal.c b/src/nvim/os/signal.c index cd591801ed..c6c43aac92 100644 --- 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 index 602a5a71eb..d7bd075eb2 100644 --- 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 index b074fdbd79..7f3b0e770a 100644 --- 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() |