Skip to content

Commit a5d4ed0

Browse files
authored
fix: increase pnpm build timeouts to 30 mins (GaloyMoney#4829)
1 parent 89224fa commit a5d4ed0

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

flake.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,10 @@
162162
export HOME="$(dirname $(pwd))/home"
163163
mkdir -p build
164164
165-
buck2 build "$buck2_target" --verbose 8
165+
buck2 build //:node_modules --verbose 8
166+
buck2 build "$buck2_target:$bin_target" --verbose 8
166167
167-
result=$(buck2 build --show-simple-output "$buck2_target" 2> /dev/null)
168+
result=$(buck2 build --show-simple-output "$buck2_target:$bin_target" 2> /dev/null)
168169
169170
mkdir -p "build/$name-$system"
170171
cp -rpv "$result" "build/$name-$system/"

toolchains/simple-pnpm/build_node_modules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
)
4040

4141
# Set a timeout (adjust as needed)
42-
timeout = 600 # 10 minutes
42+
timeout = 1800 # 30 minutes
4343
start_time = time.time()
4444

4545
# Poll the process with timeout

toolchains/workspace-pnpm/build_next_build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def create_symlink(src, dest, description=""):
3737
return True
3838

3939

40-
def run_command(cmd, cwd=None, env=None, timeout=600):
40+
def run_command(cmd, cwd=None, env=None, timeout=1800):
4141
"""Run a command with improved error handling and timeout."""
4242
print(f"Running command: {' '.join(cmd)} in {cwd}", file=sys.stderr)
4343
try:

toolchains/workspace-pnpm/build_node_modules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def create_symlink(src, dest):
3939
print(f"Error creating symlink: {e}", file=sys.stderr)
4040
return False
4141

42-
def run_command(cmd, cwd=None, timeout=600):
42+
def run_command(cmd, cwd=None, timeout=1800):
4343
"""Run a command with improved error handling and timeout."""
4444
print(f"Running command: {' '.join(cmd)}", file=sys.stderr)
4545
try:

0 commit comments

Comments
 (0)