-
Notifications
You must be signed in to change notification settings - Fork 13
/
.bazelrc
58 lines (43 loc) · 2.6 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
# Common Default
# Wrapper to make sure tests are run.
# Allow at most 4 hours for eternal tests.
test --run_under='//bazel:test_wrapper' --test_timeout=-1,-1,-1,14400
# Since integration tests are located in different packages than code under test,
# the default instrumentation filter would exclude the code under test. This
# makes bazel consider all the source code in our repo for coverage.
coverage --instrumentation_filter="-//tests[/:]"
# Internal definitions
# Make the target platform and the host platform the same
build:_build --platforms //bazel/platforms:snowflake_conda_env --host_platform //bazel/platforms:snowflake_conda_env --repo_env=BAZEL_CONDA_ENV_NAME=build
build:_sf_only --platforms //bazel/platforms:snowflake_conda_env --host_platform //bazel/platforms:snowflake_conda_env --repo_env=BAZEL_CONDA_ENV_NAME=sf_only
build:_extended --platforms //bazel/platforms:extended_conda_env --host_platform //bazel/platforms:extended_conda_env --repo_env=BAZEL_CONDA_ENV_NAME=extended
build:_extended_oss --platforms //bazel/platforms:extended_conda_env --host_platform //bazel/platforms:extended_conda_env --repo_env=BAZEL_CONDA_ENV_NAME=extended_oss
build:_extended_gpu_oss --platforms //bazel/platforms:extended_conda_gpu_env --host_platform //bazel/platforms:extended_conda_gpu_env --repo_env=BAZEL_CONDA_ENV_NAME=extended_gpu_oss
# Public definitions
# Python environment flag, should use in combination with other configs
build:py3.9 --repo_env=BAZEL_CONDA_PYTHON_VERSION=3.9
build:py3.10 --repo_env=BAZEL_CONDA_PYTHON_VERSION=3.10
build:py3.11 --repo_env=BAZEL_CONDA_PYTHON_VERSION=3.11
# Default
build --config=_build
test --config=_sf_only
run --config=_sf_only
cquery --config=_sf_only
# Config to sync files
run:pre_build --config=_build --config=py3.9
# Config to run type check
build:typecheck --aspects @rules_mypy//:mypy.bzl%mypy_aspect --output_groups=mypy --config=_extended --config=py3.9
build:typecheck_oss --aspects @rules_mypy//:mypy.bzl%mypy_aspect --output_groups=mypy --config=_extended_oss --config=py3.9
build:typecheck_gpu_oss --aspects @rules_mypy//:mypy.bzl%mypy_aspect --output_groups=mypy --config=_extended_gpu_oss --config=py3.9
# Config to build the doc
build:docs --config=_sf_only --config=py3.9
# Public the extended setting
test:extended --config=_extended
run:extended --config=_extended
cquery:extended --config=_extended
test:extended_oss --config=_extended_oss
run:extended_oss --config=_extended_oss
cquery:extended_oss --config=_extended_oss
test:extended_gpu_oss --config=_extended_gpu_oss
run:extended_gpu_oss --config=_extended_gpu_oss
cquery:extended_gpu_oss --config=_extended_gpu_oss