Skip to content

Commit

Permalink
[bazel] Add optional deps for prebuilt bazel for bots
Browse files Browse the repository at this point in the history
This will download a prebuilt bazel on Ubuntu bots if gclient variable
download_prebuilt_bazel is set. The currently pinned version is:
5.0.0-pre.20210604.6.

This is planned to only run on specific bots that use a new recipe
for building with bazel:
https://crrev.com/c/2972749

Bug: v8:11912
Change-Id: I8ff405fc03bfede4762bf4e8577cb1feab56f7c4
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2972918
Auto-Submit: Michael Achenbach <[email protected]>
Commit-Queue: Liviu Rau <[email protected]>
Reviewed-by: Liviu Rau <[email protected]>
Cr-Commit-Position: refs/heads/master@{#75288}
  • Loading branch information
mi-ac authored and V8 LUCI CQ committed Jun 22, 2021
1 parent e33ca13 commit 7d3bc3f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ vars = {
'android_url': 'https://android.googlesource.com',
'download_gcmole': False,
'download_jsfunfuzz': False,
'download_prebuilt_bazel': False,
'check_v8_header_includes': False,

# GN CIPD package version.
Expand Down Expand Up @@ -342,6 +343,17 @@ hooks = [
'tools/get_landmines.py',
],
},
{
'name': 'bazel',
'pattern': '.',
'condition': 'download_prebuilt_bazel',
'action': [ 'download_from_google_storage',
'--bucket', 'chromium-v8-prebuilt-bazel/linux',
'--no_resume',
'-s', 'tools/bazel/bazel.sha1',
'--platform=linux*',
],
},
# Pull clang-format binaries using checked-in hashes.
{
'name': 'clang_format_win',
Expand Down
1 change: 1 addition & 0 deletions tools/bazel/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bazel
1 change: 1 addition & 0 deletions tools/bazel/bazel.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a85565a04bf357b2cb4bf04a1c68b83660a47ea2

0 comments on commit 7d3bc3f

Please sign in to comment.