Move sccache compilation log to its own group (#71444)

Summary:
The sccache compilation log is often misleading.

We can move it to its own group so people don't see it right away

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

Reviewed By: atalman

Differential Revision: D33659650

Pulled By: janeyx99

fbshipit-source-id: f22fd21640a8747beeacce8857bbb8281efd76f4
(cherry picked from commit e25970abf9)
This commit is contained in:
Jane Xu 2022-01-19 08:43:43 -08:00 committed by PyTorch MergeBot
parent 7ed2a43d26
commit 671a0b5376

View File

@ -95,11 +95,13 @@ if [[ "$BUILD_ENVIRONMENT" != *win-* ]]; then
# Report sccache stats for easier debugging # Report sccache stats for easier debugging
sccache --zero-stats sccache --zero-stats
function sccache_epilogue() { function sccache_epilogue() {
echo "::group::Sccache Compilation Log"
echo '=================== sccache compilation log ===================' echo '=================== sccache compilation log ==================='
python "$SCRIPT_DIR/print_sccache_log.py" ~/sccache_error.log 2>/dev/null python "$SCRIPT_DIR/print_sccache_log.py" ~/sccache_error.log 2>/dev/null
echo '=========== If your build fails, please take a look at the log above for possible reasons ===========' echo '=========== If your build fails, please take a look at the log above for possible reasons ==========='
sccache --show-stats sccache --show-stats
sccache --stop-server || true sccache --stop-server || true
echo "::endgroup::"
} }
if [[ "${JOB_BASE_NAME}" == *-build ]]; then if [[ "${JOB_BASE_NAME}" == *-build ]]; then