Skip to content

Commit e6aadbb

Browse files
authored
Merge branch 'master' into cb/fix-bazel-head-workspace
2 parents 1750031 + d401e24 commit e6aadbb

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

.github/workflows/update-ghc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses: actions/checkout@v4
2323
with:
2424
ref: master
25-
- uses: cachix/install-nix-action@V28
25+
- uses: cachix/install-nix-action@v30
2626
with:
2727
nix_path: nixpkgs=nixpkgs/default.nix
2828
- name: Fetch updates

.github/workflows/workflow.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
with:
7272
path: ~/repo-cache
7373
key: repo-cache-${{ runner.os }}-nixpkgs-${{ env.cache-version }}
74-
- uses: cachix/install-nix-action@V28
74+
- uses: cachix/install-nix-action@v30
7575
with:
7676
nix_path: nixpkgs=./nixpkgs/default.nix
7777
extra_nix_config: |

haskell/ghc_bindist.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ include Makefile""")
201201
# https://source.chromium.org/chromium/chromium/src/+/62848c8d298690e086e49a9832278ff56b6976b5.
202202
environment = {"ZERO_AR_DATE": "1"},
203203
working_directory = unpack_dir,
204+
# use a big timeout because copying GHC is slow (1.5G)
205+
timeout = 30 * 60,
204206
)
205207

206208
if not is_hadrian_dist:

haskell/private/workspace_utils.bzl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ def execute_or_fail_loudly(
22
repository_ctx,
33
arguments,
44
environment = {},
5-
working_directory = ""):
5+
working_directory = "",
6+
timeout = 600):
67
"""Execute the given command
78
89
Fails if the command does not exit with exit-code 0.
910
1011
Args:
1112
arguments: List, the command line to execute.
13+
timeout: The timeout for the command in seconds (default: 600).
1214
1315
Returns:
1416
exec_result: The output of the command.
@@ -19,6 +21,7 @@ def execute_or_fail_loudly(
1921
environment = environment,
2022
quiet = True,
2123
working_directory = working_directory,
24+
timeout = timeout,
2225
)
2326
if exec_result.return_code != 0:
2427
arguments = [_as_string(x) for x in arguments]

0 commit comments

Comments
 (0)