Make bazel output less verbose in CI (#62601)

Summary:
Fixes https://github.com/pytorch/pytorch/issues/62600

Adds `bazel --config=no-tty` that is useful for less verbose output in environments that don't implement full tty like CI.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/62601

Reviewed By: soulitzer

Differential Revision: D30070154

Pulled By: malfet

fbshipit-source-id: 5b89af8441c3c6c7ca7e9a0ebdfddee00c9ab576
This commit is contained in:
Sergei Vorobev
2021-08-03 07:57:43 -07:00
committed by Facebook GitHub Bot
parent 3bda4ea842
commit b37578b3c0
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
build --copt=--std=c++14
build --copt=-I.
build --copt=-isystem --copt bazel-out/k8-fastbuild/bin
# Configuration to disable tty features for environments like CI
build:no-tty --curses no
build:no-tty --progress_report_interval 10
build:no-tty --show_progress_rate_limit 10

View File

@ -215,7 +215,7 @@ if [[ "$BUILD_ENVIRONMENT" == *-bazel-* ]]; then
get_bazel
tools/bazel build :torch
tools/bazel build --config=no-tty :torch
else
# check that setup.py would fail with bad arguments
echo "The next three invocations are expected to fail with invalid command error messages."