Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bazel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
bazel
Commits
83077667
Commit
83077667
authored
Sep 19, 2021
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extended timeout for fetching repositories - needed on slow systems
parent
abe85af9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
Makefile
Makefile
+1
-0
bazel-3.7.0-extended_timeout.patch
bazel-3.7.0-extended_timeout.patch
+23
-0
No files found.
Makefile
View file @
83077667
...
@@ -8,6 +8,7 @@ all:
...
@@ -8,6 +8,7 @@ all:
mkdir
-p
bazel-3.7.0
mkdir
-p
bazel-3.7.0
cd
bazel-3.7.0
&&
unzip
../bazel-3.7.0-dist.zip
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
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
install
-v
-Dm755
bazel-3.7.0/output/bazel /usr/bin/bazel
...
...
bazel-3.7.0-extended_timeout.patch
0 → 100644
View file @
83077667
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,
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment