diff --git a/.bazelrc b/.bazelrc index 0e4e9a9cb6..0619346d02 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1,17 +1,5 @@ -# Print test logs for failed tests -test --test_output=errors +# Import shared settings first so we can override below +import common.bazelrc # Mock versioning command to test the --stamp behavior build --workspace_status_command="echo BUILD_SCM_VERSION 1.2.3" - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates diff --git a/.circleci/config.yml b/.circleci/config.yml index 248c7c0486..10813a9220 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -65,8 +65,8 @@ var_8: &use_legacy_runfiles run: name: Use legacy runfiles command: | - sed -i -e 's/run --nolegacy_external_runfiles//' .bazelrc - sed -i -e 's/test --nolegacy_external_runfiles//' .bazelrc + echo 'run --legacy_external_runfiles' >> .bazelrc + echo 'test --legacy_external_runfiles' >> .bazelrc var_9: &job_defaults working_directory: ~/rules_nodejs diff --git a/common.bazelrc b/common.bazelrc new file mode 100644 index 0000000000..25b3af99b9 --- /dev/null +++ b/common.bazelrc @@ -0,0 +1,16 @@ +# Common Bazel settings +# These are imported into the .bazelrc files in each workspace in this repo + +# Print test logs for failed tests +test --test_output=errors + +# Enable debugging tests with --config=debug +test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results + +# Turn off legacy external runfiles +run --nolegacy_external_runfiles +test --nolegacy_external_runfiles + +# Turn on managed_directories +build --experimental_allow_incremental_repository_updates +run --experimental_allow_incremental_repository_updates diff --git a/e2e/bazel_bin/.bazelrc b/e2e/bazel_bin/.bazelrc index 51f6fea849..07ff9776b6 100644 --- a/e2e/bazel_bin/.bazelrc +++ b/e2e/bazel_bin/.bazelrc @@ -1,14 +1,2 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates \ No newline at end of file +# Import shared settings first so we can override below +import ../../common.bazelrc diff --git a/e2e/define_var/.bazelrc b/e2e/define_var/.bazelrc index 51f6fea849..07ff9776b6 100644 --- a/e2e/define_var/.bazelrc +++ b/e2e/define_var/.bazelrc @@ -1,14 +1,2 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates \ No newline at end of file +# Import shared settings first so we can override below +import ../../common.bazelrc diff --git a/e2e/jasmine/.bazelrc b/e2e/jasmine/.bazelrc index 51f6fea849..07ff9776b6 100644 --- a/e2e/jasmine/.bazelrc +++ b/e2e/jasmine/.bazelrc @@ -1,14 +1,2 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates \ No newline at end of file +# Import shared settings first so we can override below +import ../../common.bazelrc diff --git a/e2e/karma/.bazelrc b/e2e/karma/.bazelrc index 423eccb847..07ff9776b6 100644 --- a/e2e/karma/.bazelrc +++ b/e2e/karma/.bazelrc @@ -1,14 +1,2 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates +# Import shared settings first so we can override below +import ../../common.bazelrc diff --git a/e2e/karma_stack_trace/.bazelrc b/e2e/karma_stack_trace/.bazelrc index 423eccb847..07ff9776b6 100644 --- a/e2e/karma_stack_trace/.bazelrc +++ b/e2e/karma_stack_trace/.bazelrc @@ -1,14 +1,2 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates +# Import shared settings first so we can override below +import ../../common.bazelrc diff --git a/e2e/karma_typescript/.bazelrc b/e2e/karma_typescript/.bazelrc index 423eccb847..07ff9776b6 100644 --- a/e2e/karma_typescript/.bazelrc +++ b/e2e/karma_typescript/.bazelrc @@ -1,14 +1,2 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates +# Import shared settings first so we can override below +import ../../common.bazelrc diff --git a/e2e/ts_auto_deps/.bazelrc b/e2e/ts_auto_deps/.bazelrc index 51f6fea849..3443e08f46 100644 --- a/e2e/ts_auto_deps/.bazelrc +++ b/e2e/ts_auto_deps/.bazelrc @@ -1,14 +1,2 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates \ No newline at end of file +# Import shared settings first so we can override below +import %workspace%/../../common.bazelrc diff --git a/e2e/ts_devserver/.bazelrc b/e2e/ts_devserver/.bazelrc index 51f6fea849..07ff9776b6 100644 --- a/e2e/ts_devserver/.bazelrc +++ b/e2e/ts_devserver/.bazelrc @@ -1,14 +1,2 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates \ No newline at end of file +# Import shared settings first so we can override below +import ../../common.bazelrc diff --git a/e2e/ts_library/.bazelrc b/e2e/ts_library/.bazelrc index 51f6fea849..07ff9776b6 100644 --- a/e2e/ts_library/.bazelrc +++ b/e2e/ts_library/.bazelrc @@ -1,14 +1,2 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates \ No newline at end of file +# Import shared settings first so we can override below +import ../../common.bazelrc diff --git a/e2e/tsconfig_extends/.bazelrc b/e2e/tsconfig_extends/.bazelrc index 51f6fea849..07ff9776b6 100644 --- a/e2e/tsconfig_extends/.bazelrc +++ b/e2e/tsconfig_extends/.bazelrc @@ -1,14 +1,2 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates \ No newline at end of file +# Import shared settings first so we can override below +import ../../common.bazelrc diff --git a/e2e/typescript_2.7/.bazelrc b/e2e/typescript_2.7/.bazelrc index 51f6fea849..07ff9776b6 100644 --- a/e2e/typescript_2.7/.bazelrc +++ b/e2e/typescript_2.7/.bazelrc @@ -1,14 +1,2 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates \ No newline at end of file +# Import shared settings first so we can override below +import ../../common.bazelrc diff --git a/e2e/typescript_2.8/.bazelrc b/e2e/typescript_2.8/.bazelrc index 51f6fea849..07ff9776b6 100644 --- a/e2e/typescript_2.8/.bazelrc +++ b/e2e/typescript_2.8/.bazelrc @@ -1,14 +1,2 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates \ No newline at end of file +# Import shared settings first so we can override below +import ../../common.bazelrc diff --git a/e2e/typescript_2.9/.bazelrc b/e2e/typescript_2.9/.bazelrc index 51f6fea849..07ff9776b6 100644 --- a/e2e/typescript_2.9/.bazelrc +++ b/e2e/typescript_2.9/.bazelrc @@ -1,14 +1,2 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates \ No newline at end of file +# Import shared settings first so we can override below +import ../../common.bazelrc diff --git a/e2e/typescript_3.0/.bazelrc b/e2e/typescript_3.0/.bazelrc index 51f6fea849..07ff9776b6 100644 --- a/e2e/typescript_3.0/.bazelrc +++ b/e2e/typescript_3.0/.bazelrc @@ -1,14 +1,2 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates \ No newline at end of file +# Import shared settings first so we can override below +import ../../common.bazelrc diff --git a/e2e/typescript_3.1/.bazelrc b/e2e/typescript_3.1/.bazelrc index 51f6fea849..07ff9776b6 100644 --- a/e2e/typescript_3.1/.bazelrc +++ b/e2e/typescript_3.1/.bazelrc @@ -1,14 +1,2 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates \ No newline at end of file +# Import shared settings first so we can override below +import ../../common.bazelrc diff --git a/e2e/webpack/.bazelrc b/e2e/webpack/.bazelrc index 51f6fea849..07ff9776b6 100644 --- a/e2e/webpack/.bazelrc +++ b/e2e/webpack/.bazelrc @@ -1,14 +1,2 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates \ No newline at end of file +# Import shared settings first so we can override below +import ../../common.bazelrc diff --git a/examples/app/.bazelrc b/examples/app/.bazelrc index 51f6fea849..07ff9776b6 100644 --- a/examples/app/.bazelrc +++ b/examples/app/.bazelrc @@ -1,14 +1,2 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates \ No newline at end of file +# Import shared settings first so we can override below +import ../../common.bazelrc diff --git a/examples/bazel_managed_deps/.bazelrc b/examples/bazel_managed_deps/.bazelrc index 51f6fea849..07ff9776b6 100644 --- a/examples/bazel_managed_deps/.bazelrc +++ b/examples/bazel_managed_deps/.bazelrc @@ -1,14 +1,2 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates \ No newline at end of file +# Import shared settings first so we can override below +import ../../common.bazelrc diff --git a/examples/parcel/.bazelrc b/examples/parcel/.bazelrc index 51f6fea849..07ff9776b6 100644 --- a/examples/parcel/.bazelrc +++ b/examples/parcel/.bazelrc @@ -1,14 +1,2 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates \ No newline at end of file +# Import shared settings first so we can override below +import ../../common.bazelrc diff --git a/examples/program/.bazelrc b/examples/program/.bazelrc index 7aae185e56..80ca74ab55 100644 --- a/examples/program/.bazelrc +++ b/examples/program/.bazelrc @@ -1,9 +1,4 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles +# Import shared settings first so we can override below +# Note, this workspace doesn't need --experimental_allow_incremental_repository_updates +# but it's simpler to get all the shared settings anyway. +import ../../common.bazelrc diff --git a/examples/protocol_buffers/.bazelrc b/examples/protocol_buffers/.bazelrc index 423eccb847..07ff9776b6 100644 --- a/examples/protocol_buffers/.bazelrc +++ b/examples/protocol_buffers/.bazelrc @@ -1,14 +1,2 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates +# Import shared settings first so we can override below +import ../../common.bazelrc diff --git a/examples/vendored_node/.bazelrc b/examples/vendored_node/.bazelrc index 51f6fea849..07ff9776b6 100644 --- a/examples/vendored_node/.bazelrc +++ b/examples/vendored_node/.bazelrc @@ -1,14 +1,2 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates \ No newline at end of file +# Import shared settings first so we can override below +import ../../common.bazelrc diff --git a/examples/web_testing/.bazelrc b/examples/web_testing/.bazelrc index 423eccb847..07ff9776b6 100644 --- a/examples/web_testing/.bazelrc +++ b/examples/web_testing/.bazelrc @@ -1,14 +1,2 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates +# Import shared settings first so we can override below +import ../../common.bazelrc diff --git a/examples/webapp/.bazelrc b/examples/webapp/.bazelrc index 51f6fea849..07ff9776b6 100644 --- a/examples/webapp/.bazelrc +++ b/examples/webapp/.bazelrc @@ -1,14 +1,2 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates \ No newline at end of file +# Import shared settings first so we can override below +import ../../common.bazelrc diff --git a/internal/e2e/bazel_workspaces_compat/.bazelrc b/internal/e2e/bazel_workspaces_compat/.bazelrc index 4a42176786..6e84e76d97 100644 --- a/internal/e2e/bazel_workspaces_compat/.bazelrc +++ b/internal/e2e/bazel_workspaces_compat/.bazelrc @@ -1,10 +1,6 @@ -# Print test logs for failed tests -test --test_output=errors +# Import shared settings first so we can override below +import ../../../common.bazelrc -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates +# Turn on legacy external runfiles to workaround https://github.com/bazelbuild/bazel/issues/8088 +run --legacy_external_runfiles +test --legacy_external_runfiles \ No newline at end of file diff --git a/internal/e2e/fine_grained_symlinks/.bazelrc b/internal/e2e/fine_grained_symlinks/.bazelrc index 51f6fea849..819edb947d 100644 --- a/internal/e2e/fine_grained_symlinks/.bazelrc +++ b/internal/e2e/fine_grained_symlinks/.bazelrc @@ -1,14 +1,2 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates \ No newline at end of file +# Import shared settings first so we can override below +import ../../../common.bazelrc diff --git a/internal/e2e/node_loader_no_preserve_symlinks/.bazelrc b/internal/e2e/node_loader_no_preserve_symlinks/.bazelrc index 51f6fea849..819edb947d 100644 --- a/internal/e2e/node_loader_no_preserve_symlinks/.bazelrc +++ b/internal/e2e/node_loader_no_preserve_symlinks/.bazelrc @@ -1,14 +1,2 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates \ No newline at end of file +# Import shared settings first so we can override below +import ../../../common.bazelrc diff --git a/internal/e2e/node_loader_preserve_symlinks/.bazelrc b/internal/e2e/node_loader_preserve_symlinks/.bazelrc index 51f6fea849..819edb947d 100644 --- a/internal/e2e/node_loader_preserve_symlinks/.bazelrc +++ b/internal/e2e/node_loader_preserve_symlinks/.bazelrc @@ -1,14 +1,2 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates \ No newline at end of file +# Import shared settings first so we can override below +import ../../../common.bazelrc diff --git a/packages/jasmine/.bazelrc b/packages/jasmine/.bazelrc index 51f6fea849..07ff9776b6 100644 --- a/packages/jasmine/.bazelrc +++ b/packages/jasmine/.bazelrc @@ -1,14 +1,2 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates \ No newline at end of file +# Import shared settings first so we can override below +import ../../common.bazelrc diff --git a/packages/karma/.bazelrc b/packages/karma/.bazelrc index 423eccb847..07ff9776b6 100644 --- a/packages/karma/.bazelrc +++ b/packages/karma/.bazelrc @@ -1,14 +1,2 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates +# Import shared settings first so we can override below +import ../../common.bazelrc diff --git a/packages/labs/.bazelrc b/packages/labs/.bazelrc index 4b453d7f17..06c847fb3e 100644 --- a/packages/labs/.bazelrc +++ b/packages/labs/.bazelrc @@ -1,17 +1,5 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles +# Import shared settings first so we can override below +import ../../common.bazelrc # Faster TypeScript compiles build --strategy=TypeScriptCompile=worker - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates \ No newline at end of file diff --git a/packages/typescript/.bazelrc b/packages/typescript/.bazelrc index 51f6fea849..07ff9776b6 100644 --- a/packages/typescript/.bazelrc +++ b/packages/typescript/.bazelrc @@ -1,14 +1,2 @@ -# Print test logs for failed tests -test --test_output=errors - -# Enable debugging tests with --config=debug -test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results - -# Turn off legacy external runfiles -run --nolegacy_external_runfiles -test --nolegacy_external_runfiles - -# Turn on managed_directories -build --experimental_allow_incremental_repository_updates -test --experimental_allow_incremental_repository_updates -run --experimental_allow_incremental_repository_updates \ No newline at end of file +# Import shared settings first so we can override below +import ../../common.bazelrc diff --git a/scripts/setup_examples_angular.sh b/scripts/setup_examples_angular.sh index d1210f1ccb..5615a03070 100755 --- a/scripts/setup_examples_angular.sh +++ b/scripts/setup_examples_angular.sh @@ -50,7 +50,6 @@ printf "\n\nSetting up /examples/angular\n" echo "##################################################" >> .bazelrc echo "# Turn on managed_directories" >> .bazelrc echo "build --experimental_allow_incremental_repository_updates" >> .bazelrc - echo "test --experimental_allow_incremental_repository_updates" >> .bazelrc echo "run --experimental_allow_incremental_repository_updates" >> .bazelrc # Check that above replacements worked