From 753b923ee9fe8c59e3a8464a5754456e80dffe1e Mon Sep 17 00:00:00 2001 From: "Denis S. Soldatov aka General-Beck" Date: Tue, 12 Nov 2019 20:54:05 +0300 Subject: [PATCH] Beta sccache backport (#11254) fix check-benches --- .gitlab-ci.yml | 17 +++++++++++------ scripts/gitlab/build-linux.sh | 4 ++-- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bdd39dccb..5de89420f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -37,6 +37,12 @@ variables: before_script: - rustup show - cargo --version + retry: + max: 2 + when: + - runner_system_failure + - unknown_failure + - api_failure tags: - linux-docker @@ -63,28 +69,28 @@ cargo-check 0 3: <<: *docker-cache-status script: - time cargo check --target $CARGO_TARGET --locked --no-default-features --verbose --color=always - - sccache --stop-server + - sccache --show-stats cargo-check 1 3: stage: test <<: *docker-cache-status script: - time cargo check --target $CARGO_TARGET --locked --manifest-path util/io/Cargo.toml --no-default-features --verbose --color=always - - sccache --stop-server + - sccache --show-stats cargo-check 2 3: stage: test <<: *docker-cache-status script: - time cargo check --target $CARGO_TARGET --locked --manifest-path util/io/Cargo.toml --features "mio" --verbose --color=always - - sccache --stop-server + - sccache --show-stats cargo-check-evmbin: stage: test <<: *docker-cache-status script: - time cargo check -p evmbin --target $CARGO_TARGET --locked --verbose --color=always - - sccache -s + - sccache --show-stats cargo-check-benches: stage: test @@ -94,8 +100,7 @@ cargo-check-benches: cargo check --all --benches --exclude ethash --target $CARGO_TARGET --locked --verbose --color=always; (cd ethash; time cargo check --benches --features bench --target $CARGO_TARGET --locked --verbose --color=always) ) - - sccache -s - allow_failure: true # temp + - sccache --show-stats cargo-audit: stage: test diff --git a/scripts/gitlab/build-linux.sh b/scripts/gitlab/build-linux.sh index ea22857ce..21c455a08 100755 --- a/scripts/gitlab/build-linux.sh +++ b/scripts/gitlab/build-linux.sh @@ -56,8 +56,8 @@ do then ./parity tools hash $binary > $binary.sha3 else - echo "> ${binary} cannot be hashed with cross-compiled binary (keccak256)" + echo ">[WARN] ${binary} cannot be hashed with cross-compiled binary (keccak256)" fi done #show sccache statistics -sccache --stop-server +sccache --show-stats