Skip to content

Commit

Permalink
Make bazel output less verbose in CI (pytorch#62601)
Browse files Browse the repository at this point in the history
Summary:
Fixes pytorch#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: pytorch#62601

Reviewed By: soulitzer

Differential Revision: D30070154

Pulled By: malfet

fbshipit-source-id: 5b89af8441c3c6c7ca7e9a0ebdfddee00c9ab576
  • Loading branch information
vors authored and facebook-github-bot committed Aug 3, 2021
1 parent 3bda4ea commit b37578b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion .jenkins/pytorch/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit b37578b

Please sign in to comment.