sccache logs to stdout (#10596)
* sccache logs to stdout * trace level puts it to stdout * superhardcore * debug log listing * debug log listing * no more logs in artifacts, logs are in logs window
This commit is contained in:
parent
92e770e916
commit
e7cdad6146
@ -10,6 +10,7 @@ variables:
|
|||||||
GIT_SUBMODULE_STRATEGY: recursive
|
GIT_SUBMODULE_STRATEGY: recursive
|
||||||
CI_SERVER_NAME: "GitLab CI"
|
CI_SERVER_NAME: "GitLab CI"
|
||||||
CARGO_TARGET: x86_64-unknown-linux-gnu
|
CARGO_TARGET: x86_64-unknown-linux-gnu
|
||||||
|
SCCACHE_CACHE_SIZE: 50G
|
||||||
|
|
||||||
.no_git: &no_git # disable git strategy
|
.no_git: &no_git # disable git strategy
|
||||||
variables:
|
variables:
|
||||||
@ -31,41 +32,30 @@ variables:
|
|||||||
paths:
|
paths:
|
||||||
- artifacts/
|
- artifacts/
|
||||||
|
|
||||||
.collect_logs: &collect_logs
|
|
||||||
artifacts:
|
|
||||||
name: "${CI_JOB_NAME}_${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}"
|
|
||||||
when: always
|
|
||||||
expire_in: 7 days
|
|
||||||
paths:
|
|
||||||
- artifacts/
|
|
||||||
|
|
||||||
.docker-cache-status: &docker-cache-status
|
.docker-cache-status: &docker-cache-status
|
||||||
variables:
|
variables:
|
||||||
CARGO_HOME: "/ci-cache/parity-ethereum/cargo/${CI_JOB_NAME}"
|
CARGO_HOME: "/ci-cache/parity-ethereum/cargo/${CI_JOB_NAME}"
|
||||||
dependencies: []
|
dependencies: []
|
||||||
before_script:
|
before_script:
|
||||||
- SCCACHE_ERROR_LOG=/builds/parity/parity-ethereum/sccache_debug.log
|
- SCCACHE_ERROR_LOG=/builds/parity/parity-ethereum/sccache_debug.log
|
||||||
RUST_LOG=sccache::server=debug
|
RUST_LOG=sccache=debug
|
||||||
SCCACHE_CACHE_SIZE=50G
|
|
||||||
SCCACHE_DIR=/ci-cache/parity-ethereum/sccache/
|
|
||||||
sccache --start-server
|
sccache --start-server
|
||||||
- sccache -s
|
- sccache -s
|
||||||
after_script:
|
after_script:
|
||||||
# sccache debug info
|
# sccache debug info
|
||||||
- if test -e sccache_debug.log;
|
- if test -e sccache_debug.log;
|
||||||
then
|
then
|
||||||
|
echo "_____sccache_debug.log listing start:_____";
|
||||||
|
cat sccache_debug.log;
|
||||||
|
echo "_____sccache_debug.log listing end_____";
|
||||||
echo "All crate-types:";
|
echo "All crate-types:";
|
||||||
grep 'parse_arguments.*--crate-type' sccache_debug.log | sed -re 's/.*"--crate-type", "([^"]+)".*/\1/' | sort | uniq -c;
|
grep 'parse_arguments.*--crate-type' sccache_debug.log | sed -re 's/.*"--crate-type", "([^"]+)".*/\1/' | sort | uniq -c;
|
||||||
echo "Non-cacheable reasons:";
|
echo "_____Non-cacheable reasons:_____";
|
||||||
grep CannotCache sccache_debug.log | sed -re 's/.*CannotCache\((.+)\).*/\1/' | sort | uniq -c;
|
grep CannotCache sccache_debug.log | sed -re 's/.*CannotCache\((.+)\).*/\1/' | sort | uniq -c;
|
||||||
else
|
else
|
||||||
echo "No logs from sccache";
|
echo "_____No logs from sccache_____";
|
||||||
exit 0;
|
exit 0;
|
||||||
fi
|
fi
|
||||||
# collect log files
|
|
||||||
- mkdir -p ./artifacts
|
|
||||||
- find . -name "*.log"
|
|
||||||
- find . -name "*.log" | xargs tar --append -f ./artifacts/logs_"${CI_JOB_NAME}_${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}".tar
|
|
||||||
tags:
|
tags:
|
||||||
- linux-docker
|
- linux-docker
|
||||||
|
|
||||||
@ -81,7 +71,6 @@ variables:
|
|||||||
cargo-check 0 3:
|
cargo-check 0 3:
|
||||||
stage: test
|
stage: test
|
||||||
<<: *docker-cache-status
|
<<: *docker-cache-status
|
||||||
<<: *collect_logs
|
|
||||||
script:
|
script:
|
||||||
- time cargo check --target $CARGO_TARGET --locked --no-default-features --verbose --color=always
|
- time cargo check --target $CARGO_TARGET --locked --no-default-features --verbose --color=always
|
||||||
- sccache -s
|
- sccache -s
|
||||||
@ -89,7 +78,6 @@ cargo-check 0 3:
|
|||||||
cargo-check 1 3:
|
cargo-check 1 3:
|
||||||
stage: test
|
stage: test
|
||||||
<<: *docker-cache-status
|
<<: *docker-cache-status
|
||||||
<<: *collect_logs
|
|
||||||
script:
|
script:
|
||||||
- time cargo check --target $CARGO_TARGET --locked --manifest-path util/io/Cargo.toml --no-default-features --verbose --color=always
|
- time cargo check --target $CARGO_TARGET --locked --manifest-path util/io/Cargo.toml --no-default-features --verbose --color=always
|
||||||
- sccache -s
|
- sccache -s
|
||||||
@ -97,7 +85,6 @@ cargo-check 1 3:
|
|||||||
cargo-check 2 3:
|
cargo-check 2 3:
|
||||||
stage: test
|
stage: test
|
||||||
<<: *docker-cache-status
|
<<: *docker-cache-status
|
||||||
<<: *collect_logs
|
|
||||||
script:
|
script:
|
||||||
- time cargo check --target $CARGO_TARGET --locked --manifest-path util/io/Cargo.toml --features "mio" --verbose --color=always
|
- time cargo check --target $CARGO_TARGET --locked --manifest-path util/io/Cargo.toml --features "mio" --verbose --color=always
|
||||||
- sccache -s
|
- sccache -s
|
||||||
@ -111,7 +98,6 @@ cargo-audit:
|
|||||||
validate-chainspecs:
|
validate-chainspecs:
|
||||||
stage: test
|
stage: test
|
||||||
<<: *docker-cache-status
|
<<: *docker-cache-status
|
||||||
<<: *collect_logs
|
|
||||||
script:
|
script:
|
||||||
- ./scripts/gitlab/validate-chainspecs.sh
|
- ./scripts/gitlab/validate-chainspecs.sh
|
||||||
- sccache -s
|
- sccache -s
|
||||||
@ -119,7 +105,6 @@ validate-chainspecs:
|
|||||||
test-cpp:
|
test-cpp:
|
||||||
stage: build
|
stage: build
|
||||||
<<: *docker-cache-status
|
<<: *docker-cache-status
|
||||||
<<: *collect_logs
|
|
||||||
script:
|
script:
|
||||||
- ./scripts/gitlab/test-cpp.sh
|
- ./scripts/gitlab/test-cpp.sh
|
||||||
- sccache -s
|
- sccache -s
|
||||||
@ -127,7 +112,6 @@ test-cpp:
|
|||||||
test-linux:
|
test-linux:
|
||||||
stage: build
|
stage: build
|
||||||
<<: *docker-cache-status
|
<<: *docker-cache-status
|
||||||
<<: *collect_logs
|
|
||||||
script:
|
script:
|
||||||
- ./scripts/gitlab/test-linux.sh stable
|
- ./scripts/gitlab/test-linux.sh stable
|
||||||
- sccache -s
|
- sccache -s
|
||||||
@ -136,7 +120,6 @@ test-linux-beta:
|
|||||||
stage: build
|
stage: build
|
||||||
only: *releaseable_branches
|
only: *releaseable_branches
|
||||||
<<: *docker-cache-status
|
<<: *docker-cache-status
|
||||||
<<: *collect_logs
|
|
||||||
script:
|
script:
|
||||||
- ./scripts/gitlab/test-linux.sh beta
|
- ./scripts/gitlab/test-linux.sh beta
|
||||||
- sccache -s
|
- sccache -s
|
||||||
@ -145,7 +128,6 @@ test-linux-nightly:
|
|||||||
stage: build
|
stage: build
|
||||||
only: *releaseable_branches
|
only: *releaseable_branches
|
||||||
<<: *docker-cache-status
|
<<: *docker-cache-status
|
||||||
<<: *collect_logs
|
|
||||||
script:
|
script:
|
||||||
- ./scripts/gitlab/test-linux.sh nightly
|
- ./scripts/gitlab/test-linux.sh nightly
|
||||||
- sccache -s
|
- sccache -s
|
||||||
|
Loading…
Reference in New Issue
Block a user