github.com/GoogleCloudPlatform/testgrid@v0.0.174/.bazelrc (about)

     1  # populate env used for stamping builds etc
     2  build --workspace_status_command=./hack/print-workspace-status.sh
     3  run --workspace_status_command=./hack/print-workspace-status.sh
     4  
     5  # enable data race detection
     6  test --@io_bazel_rules_go//go/config:race --test_output=errors
     7  
     8  # only build tests when testing
     9  test --build_tests_only
    10  
    11  # Note needs an instance name
    12  # See --config=ci-instance for a concrete example
    13  # https://github.com/bazelbuild/bazel-toolchains/blob/master/bazelrc/bazel-0.27.0.bazelrc
    14  build:remote --jobs=500
    15  build:remote --java_runtime_version=rbe_jdk
    16  build:remote --tool_java_runtime_version=rbe_jdk
    17  build:remote --extra_toolchains=//java:all
    18  
    19  build:remote --crosstool_top=@rbe_default//cc:toolchain
    20  build:remote --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
    21  
    22  build:remote --extra_toolchains=//platform:cc-toolchain
    23  build:remote --extra_execution_platforms=//platform:with_network
    24  build:remote --host_platform=//platform:with_network
    25  build:remote --platforms=//platform:with_network
    26  #build:remote --extra_execution_platforms=@io_k8s_repo_infra//:rbe_with_network
    27  #build:remote --host_platform=@io_k8s_repo_infra//:rbe_with_network
    28  #build:remote --platforms=@io_k8s_repo_infra//:rbe_with_network
    29  
    30  build:remote --define=EXECUTOR=remote
    31  build:remote --remote_executor=grpcs://remotebuildexecution.googleapis.com
    32  build:remote --remote_timeout=3600
    33  
    34  # --google_credentials=some_file.json
    35  build:remote --google_default_credentials=true
    36  build:remote --config=toplevel
    37  
    38  run:remote --remote_download_outputs=all --noexperimental_inmemory_jdeps_files --noexperimental_inmemory_dotd_files
    39  
    40  # Improve cache hit rate
    41  build:remote --incompatible_strict_action_env=true
    42  
    43  # Minimize what is downloaded
    44  build:inmemory --experimental_inmemory_jdeps_files
    45  build:inmemory --experimental_inmemory_dotd_files
    46  
    47  build:toplevel --config=inmemory
    48  build:toplevel --remote_download_outputs=toplevel
    49  
    50  build:minimal --config=inmemory
    51  build:minimal --remote_download_outputs=minimal
    52  
    53  # Compose the remote configs with an instance name
    54  # A couple examples below:
    55  
    56  # --config=ci-instance adds the instance name
    57  build:ci-instance --remote_instance_name=projects/oss-prow-builds/instances/default_instance
    58  build:trusted-instance --remote_instance_name=projects/k8s-prow/instances/default_instance
    59  
    60  # Config we want to use in ci
    61  build:ci --config=remote --config=ci-instance
    62  
    63  # Used for non-interactive ci builds
    64  build:ci --noshow_progress # reduce log spam
    65  test:ci --nobuild_tests_only # yes, build everything
    66  
    67  # https://github.com/bazelbuild/rules_go/pull/2110#issuecomment-508713878
    68  build --stamp=true