Commit 83077667 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Extended timeout for fetching repositories - needed on slow systems

parent abe85af9
......@@ -8,6 +8,7 @@ all:
mkdir -p bazel-3.7.0
cd bazel-3.7.0 && unzip ../bazel-3.7.0-dist.zip
patch -Np1 -d bazel-3.7.0 < bazel-3.7.0-extended_timeout.patch
cd bazel-3.7.0 && env BAZEL_JAVAC_OPTS="-J-Xms384m -J-Xmx1536m" EXTRA_BAZEL_ARGS="--host_javabase=@local_jdk//:jdk" PATH=$$PATH:/opt/jdk/bin JAVA_HOME=/opt/jdk bash ./compile.sh
install -v -Dm755 bazel-3.7.0/output/bazel /usr/bin/bazel
......
diff -uNr bazel-3.7.0/src/main/java/com/google/devtools/build/lib/starlarkbuildapi/repository/StarlarkRepositoryContextApi.java bazel-3.7.0-extended_timeout/src/main/java/com/google/devtools/build/lib/starlarkbuildapi/repository/StarlarkRepositoryContextApi.java
--- bazel-3.7.0/src/main/java/com/google/devtools/build/lib/starlarkbuildapi/repository/StarlarkRepositoryContextApi.java 1980-01-01 00:00:00.000000000 +1030
+++ bazel-3.7.0-extended_timeout/src/main/java/com/google/devtools/build/lib/starlarkbuildapi/repository/StarlarkRepositoryContextApi.java 2021-09-04 05:00:28.256933299 +0930
@@ -222,7 +222,7 @@
name = "execute",
doc =
"Executes the command given by the list of arguments. The execution time of the command"
- + " is limited by <code>timeout</code> (in seconds, default 600 seconds). This method"
+ + " is limited by <code>timeout</code> (in seconds, default 3600 seconds). This method"
+ " returns an <code>exec_result</code> structure containing the output of the"
+ " command. The <code>environment</code> map can be used to override some"
+ " environment variables to be passed to the process.",
@@ -238,8 +238,8 @@
name = "timeout",
type = Integer.class,
named = true,
- defaultValue = "600",
- doc = "maximum duration of the command in seconds (default is 600 seconds)."),
+ defaultValue = "3600",
+ doc = "maximum duration of the command in seconds (default is 3600 seconds)."),
@Param(
name = "environment",
type = Dict.class,
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment