Attempt to debug sccache in more locations

This should hopefully add support for debugging OSX and Windows presumed sccache
failures instead of just the Linux ones.
This commit is contained in:
Alex Crichton 2017-03-11 09:06:44 -08:00
parent 5d0be0d72a
commit c60a58b6d1
2 changed files with 18 additions and 0 deletions

View File

@ -46,6 +46,8 @@ matrix:
RUST_CONFIGURE_ARGS=--build=x86_64-apple-darwin RUST_CONFIGURE_ARGS=--build=x86_64-apple-darwin
SRC=. SRC=.
RUSTC_RETRY_LINKER_ON_SEGFAULT=1 RUSTC_RETRY_LINKER_ON_SEGFAULT=1
SCCACHE_ERROR_LOG=/tmp/sccache.log
RUST_LOG=sccache
os: osx os: osx
osx_image: xcode8.2 osx_image: xcode8.2
install: &osx_install_sccache > install: &osx_install_sccache >
@ -56,6 +58,8 @@ matrix:
RUST_CONFIGURE_ARGS=--build=i686-apple-darwin RUST_CONFIGURE_ARGS=--build=i686-apple-darwin
SRC=. SRC=.
RUSTC_RETRY_LINKER_ON_SEGFAULT=1 RUSTC_RETRY_LINKER_ON_SEGFAULT=1
SCCACHE_ERROR_LOG=/tmp/sccache.log
RUST_LOG=sccache
os: osx os: osx
osx_image: xcode8.2 osx_image: xcode8.2
install: *osx_install_sccache install: *osx_install_sccache
@ -66,6 +70,8 @@ matrix:
SRC=. SRC=.
DEPLOY=1 DEPLOY=1
RUSTC_RETRY_LINKER_ON_SEGFAULT=1 RUSTC_RETRY_LINKER_ON_SEGFAULT=1
SCCACHE_ERROR_LOG=/tmp/sccache.log
RUST_LOG=sccache
os: osx os: osx
osx_image: xcode8.2 osx_image: xcode8.2
install: > install: >
@ -77,6 +83,8 @@ matrix:
SRC=. SRC=.
DEPLOY=1 DEPLOY=1
RUSTC_RETRY_LINKER_ON_SEGFAULT=1 RUSTC_RETRY_LINKER_ON_SEGFAULT=1
SCCACHE_ERROR_LOG=/tmp/sccache.log
RUST_LOG=sccache
os: osx os: osx
osx_image: xcode8.2 osx_image: xcode8.2
install: *osx_install_sccache install: *osx_install_sccache
@ -92,6 +100,8 @@ matrix:
SRC=. SRC=.
DEPLOY_ALT=1 DEPLOY_ALT=1
RUSTC_RETRY_LINKER_ON_SEGFAULT=1 RUSTC_RETRY_LINKER_ON_SEGFAULT=1
SCCACHE_ERROR_LOG=/tmp/sccache.log
RUST_LOG=sccache
os: osx os: osx
osx_image: xcode8.2 osx_image: xcode8.2
install: *osx_install_sccache install: *osx_install_sccache
@ -133,6 +143,7 @@ after_failure:
df -h; df -h;
du . | sort -nr | head -n100 du . | sort -nr | head -n100
- cat obj/tmp/sccache.log - cat obj/tmp/sccache.log
- cat /tmp/sccache.log
# Save tagged docker images we created and load them if they're available # Save tagged docker images we created and load them if they're available
before_cache: before_cache:

View File

@ -130,12 +130,19 @@ install:
- set PATH=%PATH%;%CD%\handle - set PATH=%PATH%;%CD%\handle
- handle.exe -accepteula -help - handle.exe -accepteula -help
# Attempt to debug sccache failures
- set RUST_LOG=sccache
- set SCCACHE_ERROR_LOG=%CD%/sccache.log
test_script: test_script:
- appveyor-retry sh -c 'git submodule deinit -f . && git submodule update --init' - appveyor-retry sh -c 'git submodule deinit -f . && git submodule update --init'
- set SRC=. - set SRC=.
- set NO_CCACHE=1 - set NO_CCACHE=1
- sh src/ci/run.sh - sh src/ci/run.sh
on_failure:
- cat %CD%/sccache.log
cache: cache:
- "build/i686-pc-windows-msvc/llvm -> src/rustllvm/llvm-auto-clean-trigger" - "build/i686-pc-windows-msvc/llvm -> src/rustllvm/llvm-auto-clean-trigger"
- "build/x86_64-pc-windows-msvc/llvm -> src/rustllvm/llvm-auto-clean-trigger" - "build/x86_64-pc-windows-msvc/llvm -> src/rustllvm/llvm-auto-clean-trigger"