-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(IDX): work around GHC install timeouts (#1881)
This patches our rules_haskell version to increase the timeout for the `make install` command installing GHC. The default of 10 minutes seems to be too short in some scenarios, though this has to be confirmed after the workaround has been in use for a couple of days. We will also need to investigate ways to avoid burning 10+minutes installing GHC. See also: tweag/rules_haskell#2254
- Loading branch information
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# workaround for https://github.com/tweag/rules_haskell/issues/2254 | ||
diff --git a/haskell/private/workspace_utils.bzl b/haskell/private/workspace_utils.bzl | ||
index df851329..980b3e16 100644 | ||
--- a/haskell/private/workspace_utils.bzl | ||
+++ b/haskell/private/workspace_utils.bzl | ||
@@ -19,6 +19,8 @@ def execute_or_fail_loudly( | ||
environment = environment, | ||
quiet = True, | ||
working_directory = working_directory, | ||
+ # triple the default timeout because e.g. copying GHC is slow (1.5G) | ||
+ timeout = 3 * 600, | ||
) | ||
if exec_result.return_code != 0: | ||
arguments = [_as_string(x) for x in arguments] |