forked from kubernetes/test-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bazelrc
62 lines (50 loc) · 2.41 KB
/
.bazelrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# populate env used for stamping builds etc
build --workspace_status_command=./hack/print-workspace-status.sh
run --workspace_status_command=./hack/print-workspace-status.sh
# https://github.com/kubernetes/test-infra/issues/12876
build --incompatible_depset_union=false
# https://github.com/kubernetes/test-infra/issues/13140
build --incompatible_disable_deprecated_attr_params=false
# https://github.com/bazelbuild/bazel/issues/7802
build --incompatible_string_join_requires_strings=false
# https://github.com/bazelbuild/bazel/issues/7793
build --incompatible_require_ctx_in_configure_features=false
# Looks like this needs a rules_k8s bump
build --incompatible_no_support_tools_in_action_inputs=false
# --incompatible_depset_is_not_iterable=false depends on this
build --incompatible_depset_is_not_iterable=false
# enable data race detection
test --features=race --test_output=errors
# only build tests when testing
test --build_tests_only
# you can run only lint tests with:
# bazel test //... --config=lint
test:lint --test_tag_filters=lint
# you can run non-lint tests with:
# bazel test //... --config=unit
test:unit --test_tag_filters=-lint
# Note needs an instance name
# See --config=remote-fejta for a concrete example
# https://github.com/bazelbuild/bazel-toolchains/blob/master/bazelrc/bazel-0.27.0.bazelrc
build:remote --jobs=500
build:remote --host_javabase=@rbe_default//java:jdk
build:remote --javabase=@rbe_default//java:jdk
build:remote --host_java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8
build:remote --java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8
build:remote --crosstool_top=@rbe_default//cc:toolchain
build:remote --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
build:remote --extra_toolchains=@rbe_default//config:cc-toolchain
build:remote --extra_execution_platforms=:rbe_with_network
build:remote --host_platform=:rbe_with_network
build:remote --platforms=:rbe_with_network
build:remote --define=EXECUTOR=remote
build:remote --remote_executor=grpcs://remotebuildexecution.googleapis.com
build:remote --remote_timeout=3600
# --google_credentials=some_file.json
build:remote --google_default_credentials=true
# Compose the remote configs with an instance name
# A couple examples below:
# --config=ci-instance adds the instance name
build:ci-instance --remote_instance_name=projects/k8s-prow-builds/instances/default_instance
# Config we want to use in ci
build:ci --config=remote --config=ci-instance