Skip to content

Commit

Permalink
Update RBE toolchain flags.
Browse files Browse the repository at this point in the history
Do not submit until all PRs to update @bazel_toolchains WORKSPACE pin
are merged.

bazelbuild/bazel-toolchains#216
  • Loading branch information
xingao267 committed Oct 26, 2018
1 parent 989d387 commit c7ba4bc
Showing 1 changed file with 32 additions and 34 deletions.
66 changes: 32 additions & 34 deletions buildkite/bazelci.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,10 @@
# "git_repository": "https://github.com/bazelbuild/BUILD_file_generator.git",
# "http_config": "https://raw.githubusercontent.com/bazelbuild/BUILD_file_generator/master/.bazelci/presubmit.yml"
# },
# TODO(https://github.com/bazelbuild/bazel-toolchains/issues/216): Reenable once fixed
# "bazel-toolchains": {
# "git_repository": "https://github.com/bazelbuild/bazel-toolchains.git",
# "http_config": "https://raw.githubusercontent.com/bazelbuild/bazel-toolchains/master/.bazelci/presubmit.yml"
# },
"bazel-toolchains": {
"git_repository": "https://github.com/bazelbuild/bazel-toolchains.git",
"http_config": "https://raw.githubusercontent.com/bazelbuild/bazel-toolchains/master/.bazelci/presubmit.yml"
},
"bazel-skylib": {
"git_repository": "https://github.com/bazelbuild/bazel-skylib.git",
"http_config": "https://raw.githubusercontent.com/bazelbuild/bazel-skylib/master/.bazelci/presubmit.yml"
Expand Down Expand Up @@ -134,12 +133,11 @@
# "rules_foreign_cc": {
# "git_repository": "https://github.com/bazelbuild/rules_foreign_cc.git",
# "http_config": "https://raw.githubusercontent.com/bazelbuild/rules_foreign_cc/master/.bazelci/config.yaml"
# },
# TODO(https://github.com/google/glog/issues/376) Reenable when fixed
# "rules_go": {
# "git_repository": "https://github.com/bazelbuild/rules_go.git",
# "http_config": "https://raw.githubusercontent.com/bazelbuild/rules_go/master/.bazelci/presubmit.yml"
# },
# },
"rules_go": {
"git_repository": "https://github.com/bazelbuild/rules_go.git",
"http_config": "https://raw.githubusercontent.com/bazelbuild/rules_go/master/.bazelci/presubmit.yml"
},
# TODO(https://github.com/bazelbuild/rules_groovy/issues/15): Reenable once fixed
# "rules_groovy": {
# "git_repository": "https://github.com/bazelbuild/rules_groovy.git",
Expand All @@ -154,12 +152,11 @@
# "rules_jsonnet": {
# "git_repository": "https://github.com/bazelbuild/rules_jsonnet.git",
# "http_config": "https://raw.githubusercontent.com/bazelbuild/rules_jsonnet/master/.bazelci/presubmit.yml"
# },
# TODO(https://github.com/google/glog/issues/376) Reenable when fixed
# "rules_kotlin": {
# "git_repository": "https://github.com/bazelbuild/rules_kotlin.git",
# "http_config": "https://raw.githubusercontent.com/bazelbuild/rules_kotlin/master/.bazelci/presubmit.yml"
# },
# },
"rules_kotlin": {
"git_repository": "https://github.com/bazelbuild/rules_kotlin.git",
"http_config": "https://raw.githubusercontent.com/bazelbuild/rules_kotlin/master/.bazelci/presubmit.yml"
},
# TODO(rules_k8s#195): enable once https://github.com/bazelbuild/rules_k8s/pull/195 is merged
# "rules_k8s": {
# "git_repository": "https://github.com/bazelbuild/rules_k8s.git",
Expand All @@ -179,20 +176,18 @@
# "git_repository": "https://github.com/bazelbuild/rules_python.git",
# "http_config": "https://raw.githubusercontent.com/bazelbuild/rules_python/master/.bazelci/presubmit.yml"
# },
# TODO(https://github.com/google/glog/issues/376) Reenable when fixed
# "rules_rust": {
# "git_repository": "https://github.com/bazelbuild/rules_rust.git",
# "http_config": "https://raw.githubusercontent.com/bazelbuild/rules_rust/master/.bazelci/presubmit.yml"
# },
"rules_rust": {
"git_repository": "https://github.com/bazelbuild/rules_rust.git",
"http_config": "https://raw.githubusercontent.com/bazelbuild/rules_rust/master/.bazelci/presubmit.yml"
},
"rules_sass": {
"git_repository": "https://github.com/bazelbuild/rules_sass.git",
"http_config": "https://raw.githubusercontent.com/bazelbuild/rules_sass/master/.bazelci/presubmit.yml"
},
"rules_scala": {
"git_repository": "https://github.com/bazelbuild/rules_scala.git",
"http_config": "https://raw.githubusercontent.com/bazelbuild/rules_scala/master/.bazelci/presubmit.yml"
},
# TODO(https://github.com/google/glog/issues/376) Reenable when fixed
# "rules_scala": {
# "git_repository": "https://github.com/bazelbuild/rules_scala.git",
# "http_config": "https://raw.githubusercontent.com/bazelbuild/rules_scala/master/.bazelci/presubmit.yml"
# },
# TODO(rules_typescript#308): enable once https://github.com/bazelbuild/rules_typescript/pull/308 is merged
# "rules_typescript": {
# "git_repository": "https://github.com/bazelbuild/rules_typescript.git",
Expand Down Expand Up @@ -864,12 +859,15 @@ def rbe_flags(accept_cached):

# Copied from https://github.com/bazelbuild/bazel-toolchains/blob/master/configs/ubuntu16_04_clang/1.0/toolchain.bazelrc
flags += [
# These should NOT be modified before @bazel_toolchains repo pin is
# updated in projects' WORKSPACE files.
#
# Toolchain related flags to append at the end of your .bazelrc file.
"--host_javabase=@bazel_toolchains//configs/ubuntu16_04_clang/1.0:jdk8",
"--javabase=@bazel_toolchains//configs/ubuntu16_04_clang/1.0:jdk8",
"--host_javabase=@bazel_toolchains//configs/ubuntu16_04_clang/latest:javabase",
"--javabase=@bazel_toolchains//configs/ubuntu16_04_clang/latest:javabase",
"--host_java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8",
"--java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8",
"--crosstool_top=@bazel_toolchains//configs/ubuntu16_04_clang/1.0/bazel_0.16.1/default:toolchain",
"--crosstool_top=@bazel_toolchains//configs/ubuntu16_04_clang/latest:crosstool_top_default",
"--action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1",
# Platform flags:
# The toolchain container used for execution is defined in the target indicated
Expand All @@ -879,10 +877,10 @@ def rbe_flags(accept_cached):
# "extra_toolchains" to be selected (given constraints defined in
# "exec_compatible_with").
# More about platforms: https://docs.bazel.build/versions/master/platforms.html
"--extra_toolchains=@bazel_toolchains//configs/ubuntu16_04_clang/1.0/bazel_0.16.1/cpp:cc-toolchain-clang-x86_64-default",
"--extra_execution_platforms=@bazel_toolchains//configs/ubuntu16_04_clang/1.0:rbe_ubuntu1604",
"--host_platform=@bazel_toolchains//configs/ubuntu16_04_clang/1.0:rbe_ubuntu1604",
"--platforms=@bazel_toolchains//configs/ubuntu16_04_clang/1.0:rbe_ubuntu1604",
"--extra_toolchains=@bazel_toolchains//configs/ubuntu16_04_clang/latest:toolchain_default",
"--extra_execution_platforms=@bazel_toolchains//configs/ubuntu16_04_clang/latest:platform",
"--host_platform=@bazel_toolchains//configs/ubuntu16_04_clang/latest:platform",
"--platforms=@bazel_toolchains//configs/ubuntu16_04_clang/latest:platform",
]

return flags
Expand Down

0 comments on commit c7ba4bc

Please sign in to comment.