From 4e30ceffb9b8ce288fb990d49a0615b9b45ebee1 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Mon, 18 Nov 2024 11:36:35 -0600 Subject: [PATCH] increase ci timeout --- pkgs/oizys/src/oizys/github.nim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/oizys/src/oizys/github.nim b/pkgs/oizys/src/oizys/github.nim index b24c3d0..b9f0d2f 100644 --- a/pkgs/oizys/src/oizys/github.nim +++ b/pkgs/oizys/src/oizys/github.nim @@ -4,6 +4,7 @@ import ./[exec, context] # localPassC is used by zippy but the additional # module mangling on nixos somehow breaks localPassC +# https://github.com/NixOS/nixpkgs/issues/356524 when defined(amd64) and (defined(gcc) or defined(clang)): {.passC: "-msse4.1 -mpclmul".} @@ -79,7 +80,11 @@ proc postGhApi(url: string, body: JsonNode) = except: errorQuit "failed to get response code" -proc getInProgressRun(workflow: string, timeout: int = 5000): (GhWorkflowRun, bool) = +proc getInProgressRun( + workflow: string, + timeout: int = 10000 +): (GhWorkflowRun, bool) = + ## wait up to 10 seconds to try to fetch ongoing run url let start = now() timeoutDuration = initDuration(milliseconds = timeout)