mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
committed by
Facebook GitHub Bot
parent
3bda4ea842
commit
b37578b3c0
6
.bazelrc
6
.bazelrc
@ -1,3 +1,9 @@
|
|||||||
build --copt=--std=c++14
|
build --copt=--std=c++14
|
||||||
build --copt=-I.
|
build --copt=-I.
|
||||||
build --copt=-isystem --copt bazel-out/k8-fastbuild/bin
|
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
|
||||||
|
@ -215,7 +215,7 @@ if [[ "$BUILD_ENVIRONMENT" == *-bazel-* ]]; then
|
|||||||
|
|
||||||
get_bazel
|
get_bazel
|
||||||
|
|
||||||
tools/bazel build :torch
|
tools/bazel build --config=no-tty :torch
|
||||||
else
|
else
|
||||||
# check that setup.py would fail with bad arguments
|
# check that setup.py would fail with bad arguments
|
||||||
echo "The next three invocations are expected to fail with invalid command error messages."
|
echo "The next three invocations are expected to fail with invalid command error messages."
|
||||||
|
Reference in New Issue
Block a user