mac.bazelrc 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Configuration for mac bazel test runs on CI
  2. # Bazel RBE doesn't currently support MacOS platform,
  3. # so we configure tests to build and run locally,
  4. # but try to use RBE build cache and upload results
  5. # to ResultStore
  6. startup --host_jvm_args=-Dbazel.DigestFunction=SHA256
  7. # remote cache is needed not only for build speedup,
  8. # but also for the test logs to be available in ResultStore
  9. # for now, don't upload results to cache, only the test logs.
  10. # TODO(jtattermusch): setup a "cache-silo-key" before enabling uploads to build cache
  11. build --remote_cache=grpcs://remotebuildexecution.googleapis.com
  12. build --remote_instance_name=projects/grpc-testing/instances/default_instance
  13. build --remote_upload_local_results=false
  14. build --auth_enabled=true
  15. build --verbose_failures=true
  16. build --test_tag_filters=-no_mac
  17. build --build_tag_filters=-no_mac
  18. # without verbose gRPC logs the test outputs are not very useful
  19. test --test_env=GRPC_VERBOSITY=debug
  20. # Set flags for uploading to BES in order to view results in the Bazel Build
  21. # Results UI.
  22. build --bes_backend=grpcs://buildeventservice.googleapis.com
  23. build --bes_timeout=600s
  24. build --bes_results_url="https://source.cloud.google.com/results/invocations/"
  25. build --project_id=grpc-testing
  26. # print output for tests that fail (default is "summary")
  27. build --test_output=errors
  28. # Enable strict warnings to keep it warning-free.
  29. build --define=use_strict_warning=true
  30. # Dynamic link cause issues like: `dyld: malformed mach-o: load commands size (59272) > 32768`
  31. # https://github.com/bazelbuild/bazel/issues/9190
  32. build --dynamic_mode=off