Skip to content

Commit be79dea

Browse files
committed
ci: more retry, larger timeout to avoid flaky
ci: use ubuntu-slim on small job
1 parent 67770ef commit be79dea

7 files changed

Lines changed: 16 additions & 7 deletions

File tree

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Lint
33

44
jobs:
55
lint:
6-
runs-on: ubuntu-latest
6+
runs-on: ubuntu-slim
77
steps:
88
- name: Install libbfd
99
run: |

.github/workflows/luarocks-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
luarocks-upload:
9-
runs-on: ubuntu-22.04
9+
runs-on: ubuntu-slim
1010
steps:
1111
- uses: actions/checkout@v5
1212
with:

.github/workflows/sync_remote.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on: [push, delete]
33

44
jobs:
55
push:
6-
runs-on: ubuntu-latest
6+
runs-on: ubuntu-slim
77
if: github.repository == 'ibhagwan/fzf-lua'
88
steps:
99
- uses: actions/checkout@v4

.github/workflows/vimdoc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
generate-docs:
9-
runs-on: [ubuntu-latest]
9+
runs-on: ubuntu-slim
1010
steps:
1111
- uses: actions/checkout@v4
1212
with:

lua/fzf-lua/test/helpers.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ M.new_child_neovim = function()
331331
end
332332

333333
local wait_timeout = (M.IS_LINUX() and 2000 or 5000)
334-
wait_timeout = os.getenv("CI") and wait_timeout * 2 or wait_timeout
334+
wait_timeout = os.getenv("CI") and wait_timeout * 3 or wait_timeout
335335
--- waits until condition fn evals to true, checking every interval ms
336336
--- times out at timeout ms
337337
---@param condition fun(): boolean

tests/api_spec.lua

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,10 @@ T["api"]["fzf_live"]["rg"]["error"] = new_set({}, {
187187
-- as no fn_transform or fn_preprocess are present
188188
multiprocess = multiprocess,
189189
debug = 1,
190-
query = "["
190+
query = "[",
191+
__after_open = function()
192+
child.wait_until(function() return child.lua_get([[_G._fzf_load_called]]) == true end)
193+
end,
191194
-- fzf_opts = { ["--wrap"] = true },
192195
})
193196
end
@@ -204,6 +207,9 @@ T["api"]["fzf_live"]["rg"]["no error"] = new_set(
204207
),
205208
{
206209
__expect_lines = true,
210+
__after_open = function()
211+
child.wait_until(function() return child.lua_get([[_G._fzf_load_called]]) == true end)
212+
end,
207213
multiprocess = multiprocess,
208214
debug = 1,
209215
query = query,
@@ -215,6 +221,9 @@ T["api"]["fzf_live"]["rg"]["no error"] = new_set(
215221
T["api"]["fzf_live"]["exec_empty_query"] = function(multiprocess, query)
216222
helpers.FzfLua.fzf_live(child, "echo <query>", {
217223
__expect_lines = true,
224+
__after_open = function()
225+
child.wait_until(function() return child.lua_get([[_G._fzf_load_called]]) == true end)
226+
end,
218227
multiprocess = multiprocess,
219228
debug = 1,
220229
query = query,

tests/win_spec.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ T["win"]["reuse"] = new_set({
386386
end
387387
})
388388

389-
T["win"]["highlight"] = new_set()
389+
T["win"]["highlight"] = new_set({ n_retry = not helpers.IS_LINUX() and 5 or nil })
390390

391391
T["win"]["highlight"]["unchange when reuse win #2588"] = function()
392392
helpers.SKIP_IF_WIN() -- windows attr looks different

0 commit comments

Comments
 (0)