Skip to content

build(deps): Update tokio to v1.36.0 (#2736) #1723

build(deps): Update tokio to v1.36.0 (#2736)

build(deps): Update tokio to v1.36.0 (#2736) #1723

Workflow file for this run

name: coverage
permissions:
contents: read
on:
# We run coverage on main so that PRs can have a meaninful comparison that
# doesn't lag a whole day.
push:
branches:
- main
# Coverage runs on all code changes (as well as changes to the workflow).
pull_request:
paths:
- .codecov.yml
- .github/workflows/coverage.yml
- '**/*.rs'
env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUSTFLAGS: "-D warnings -A deprecated -C debuginfo=2"
RUSTUP_MAX_RETRIES: 10
jobs:
# Cancel any previous runs of this workflow so coverage runs don't back up,
# especially on main (i.e. after merging several PRs).
cleanup:
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa
with:
all_but_latest: true
access_token: ${{ github.token }}
test:
name: codecov
runs-on: ubuntu-latest
timeout-minutes: 30
container:
image: docker://ghcr.io/linkerd/dev:v43-rust
options: --security-opt seccomp=unconfined # 🤷
env:
CXX: "/usr/bin/clang++-14"
steps:
# XXX(ver) Workaround for a linking problem in the binary we store in the
# devcontainer.
- run: scurl https://github.com/xd009642/tarpaulin/releases/download/0.27.1/cargo-tarpaulin-x86_64-unknown-linux-musl.tar.gz | tar -C /usr/local/bin -zxvf -
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
# linkerd-transport-header and opencencus-proto tests only check codegen.
- run: cargo tarpaulin --locked --workspace --exclude=linkerd2-proxy --exclude=linkerd-transport-header --exclude=opencensus-proto --no-run
- run: cargo tarpaulin --locked --workspace --exclude=linkerd2-proxy --exclude=linkerd-transport-header --exclude=opencensus-proto --skip-clean --ignore-tests --no-fail-fast --out=Xml
# Some tests are especially flakey in coverage tests. That's fine. We
# only really care to measure how much of our codebase is covered.
continue-on-error: true
- uses: codecov/codecov-action@e0b68c6749509c5f83f984dd99a76a1c1a231044