From 93bc03622eebb0bab4a79511c61e73b7315bf961 Mon Sep 17 00:00:00 2001 From: zhouzhuojie Date: Wed, 1 Sep 2021 14:53:25 -0700 Subject: [PATCH] Silent rm error for sccache log file (#64388) Summary: Sample reporting from dr.ci ![image](https://user-images.githubusercontent.com/658840/131724645-75afa04f-7554-4674-8e7c-cf139c84d994.png) The `rm` command is not actually running into problems, just need to silent the console output. Pull Request resolved: https://github.com/pytorch/pytorch/pull/64388 Reviewed By: walterddr, malfet, seemethere Differential Revision: D30704439 Pulled By: zhouzhuojie fbshipit-source-id: ecd35531decf05b75cef30d08d46635f81112f67 --- .jenkins/caffe2/common.sh | 2 +- .jenkins/pytorch/common.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/caffe2/common.sh b/.jenkins/caffe2/common.sh index 026cb83..168e823 100644 --- a/.jenkins/caffe2/common.sh +++ b/.jenkins/caffe2/common.sh @@ -18,7 +18,7 @@ if [[ "${BUILD_ENVIRONMENT}" == *rocm* ]]; then if which sccache > /dev/null; then # Save sccache logs to file sccache --stop-server || true - rm ~/sccache_error.log || true + rm -f ~/sccache_error.log || true SCCACHE_ERROR_LOG=~/sccache_error.log SCCACHE_IDLE_TIMEOUT=0 sccache --start-server # Report sccache stats for easier debugging diff --git a/.jenkins/pytorch/common.sh b/.jenkins/pytorch/common.sh index 52b9151..09e814b 100644 --- a/.jenkins/pytorch/common.sh +++ b/.jenkins/pytorch/common.sh @@ -74,7 +74,7 @@ if [[ "$BUILD_ENVIRONMENT" != *win-* ]]; then if which sccache > /dev/null; then # Save sccache logs to file sccache --stop-server > /dev/null 2>&1 || true - rm ~/sccache_error.log || true + rm -f ~/sccache_error.log || true if [[ -n "${SKIP_SCCACHE_INITIALIZATION:-}" ]]; then # sccache --start-server seems to hang forever on self hosted runners for GHA # so let's just go ahead and skip the --start-server altogether since it seems -- 2.7.4