forked from dfinity/ic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bazelrc
80 lines (58 loc) · 3.17 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
common --experimental_allow_tags_propagation
build --nosandbox_default_allow_network
build --incompatible_strict_action_env # use an environment with a static value for PATH and do not inherit LD_LIBRARY_PATH
# default to optimized and stripped binaries. These greatly optimized rust test runtimes.
build --compilation_mode=opt
build --@rules_rust//:extra_rustc_flag=-Cdebug-assertions=on
build --strip=never
build --strategy_regexp=ic-os/.*=local
build --disk_cache=~/.cache/bazel_disk_cache
# CI relies on remote cache.
build:ci --disk_cache=
build --incompatible_remote_results_ignore_disk # Do not apply `--noremote_upload_local_results` to the disk cache.
build --remote_cache=buildfarm.zh1-idx1.dfinity.network
build --experimental_remote_cache_async
build --incompatible_remote_build_event_upload_respect_no_cache
build --noremote_upload_local_results # Whether to upload locally executed action results to the remote cache.
build --remote_timeout=30s # Defauilt is 60s.
build:ci --remote_timeout=5m # Defauilt is 60s.
build --execution_log_json_file=bazel-build-log.json
build --bes_results_url=https://dash.buildfarm.dfinity.systems/invocation/
build --bes_backend=bes.buildfarm.dfinity.systems
build --bes_timeout=30s # Defauilt is no timeout.
build --bes_upload_mode=fully_async
build:ci --bes_timeout=180s # Defauilt is no timeout.
build:ci --bes_upload_mode=wait_for_upload_complete
build --remote_local_fallback
build --workspace_status_command=$(pwd)/bazel/workspace_status.sh
build --cxxopt='-std=c++17'
build --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect
build --output_groups=+clippy_checks
build --@rules_rust//:clippy.toml=//:clippy.toml --@rules_rust//:clippy_flags=-D,warnings,-D,clippy::all,-A,clippy::redundant_closure,-C,debug-assertions=off
build --aspects=@rules_rust//rust:defs.bzl%rustfmt_aspect
build --output_groups=+rustfmt_checks
build --@rules_rust//:rustfmt.toml=//:rustfmt.toml
build --@rules_rust//:source_path_prefix=""
build --flag_alias=ic_version=//bazel:ic_version
# Exclude system tests by default
# https://github.com/bazelbuild/bazel/issues/8439
build --build_tag_filters="-system_test"
test --test_tag_filters="-system_test,-post_master"
test:alltests --test_tag_filters=""
test --test_output=errors
test --test_env=RUST_BACKTRACE=full
test:precommit --build_tests_only --test_tag_filters="smoke"
# For sandboxed actions, mount an empty, writable directory at this absolute path
# (if supported by the sandboxing implementation, ignored otherwise).
test --sandbox_tmpfs_path=/tmp
test --test_timeout=-1,-1,1200,-1 # timeout in seconds for short, moderate(default), long and eternal tests. Defauilt is 60,300,900,3600. -1 is to use default.
# TODO(IDX-2374): enable alltests in CI when we will have actual system tests.
#test:ci --config=alltests
build:ci --noremote_local_fallback
build:ci --remote_upload_local_results # Whether to upload locally executed action results to the remote cache.
# So that developers can build in debug mode.
build:dev --compilation_mode=fastbuild
# Run `bazel build ... --config=local` if you don't have access to the buildfarm infrastructure.
build:local --remote_cache=
build:local --bes_backend=
try-import %workspace%/user.bazelrc