diff --git a/.buildkite/code.pipeline.yml b/.buildkite/code.pipeline.yml index a1f600d9c16..71801fff7da 100644 --- a/.buildkite/code.pipeline.yml +++ b/.buildkite/code.pipeline.yml @@ -307,11 +307,10 @@ steps: <<: *docker_plugin_sgx #################################### - # Rust coverage job (only on master) + # Rust coverage job. #################################### - label: Coverage Rust crates - branches: master stable/* command: # Build storage interoperability test helpers first. - make build-helpers diff --git a/.buildkite/rust/coverage.sh b/.buildkite/rust/coverage.sh index 84143959a4f..ca3fa32de96 100755 --- a/.buildkite/rust/coverage.sh +++ b/.buildkite/rust/coverage.sh @@ -45,13 +45,16 @@ git checkout -B ${BUILDKITE_BRANCH} # Calculate coverage. set +x cargo tarpaulin \ + --locked \ --ignore-tests \ --out Xml \ --all \ + --avoid-cfg-tarpaulin \ --exclude simple-keyvalue \ --exclude-files '*generated*' \ --exclude-files tests \ --exclude-files runtime/src/storage/mkvs/interop \ + --exclude-files tools \ --coveralls ${coveralls_api_token} \ -v set -x diff --git a/.changelog/4197.internal.md b/.changelog/4197.internal.md new file mode 100644 index 00000000000..0bae6bb1725 --- /dev/null +++ b/.changelog/4197.internal.md @@ -0,0 +1 @@ +rust/ci: bump tarpaulin to 0.18.0 diff --git a/docker/testing/Dockerfile b/docker/testing/Dockerfile index da8b37d7998..b78cc7bb848 100644 --- a/docker/testing/Dockerfile +++ b/docker/testing/Dockerfile @@ -13,4 +13,4 @@ RUN wget -O codecov https://codecov.io/bash && \ # Install tarpaulin. RUN RUSTFLAGS="--cfg procmacro2_semver_exempt" \ - cargo install --version 0.16.0 cargo-tarpaulin + cargo install --version 0.18.0 cargo-tarpaulin