-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: Skip unit tests in coverage report #1390
Conversation
The coverage workflow is misconfigured so that it fails to run: `cargo-tarpaulin` has command line arguments that don't match other cargo commands (`--packages` instead of `--package`, which cannot be mixed with `--workspace`). Furthermore, it doesn't seem that we actually benefit from running tarpaulin over our non-integration tests, since the coverage reports are not merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me! i did notice that there is a mechanism for running Tarpaulin with multiple feature sets, so it might be worth investigating that in a follow-up?
# XXX(ver) AFAICT, Tarpaulin doesn't allow us to compose a report over multiple invocations, | ||
# so we have to choose between getting coverage from unit tests and integration tests (since | ||
# integration tests require --no-default-features to avoid flakiness). Currently the | ||
# integration tests seem to cover more code, so we skip the unit tests for now :(. | ||
#- run: cargo tarpaulin --locked --workspace --exclude=linkerd2-proxy --exclude=linkerd-app-integration --no-run | ||
#- run: cargo tarpaulin --locked --workspace --exclude=linkerd2-proxy --exclude=linkerd-app-integration --skip-clean --ignore-tests --no-fail-fast --out=Xml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, that's kind of a bummer. Looking at the docs it looks like we might be able to define different configurations (with different featuresets) in Tarpaulin's config file, I wonder if we could use that instead of separate runs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool! If you can help figure that out, would be happy to use it :)
This release updates dependencies. --- * build(deps): bump serde_json from 1.0.71 to 1.0.72 (linkerd/linkerd2-proxy#1389) * build(deps): bump tracing-subscriber from 0.3.2 to 0.3.3 (linkerd/linkerd2-proxy#1391) * ci: Skip unit tests in coverage report (linkerd/linkerd2-proxy#1390) * build(deps): bump libc from 0.2.108 to 0.2.109 (linkerd/linkerd2-proxy#1395) * build(deps): bump EmbarkStudios/cargo-deny-action from 1.2.6 to 1.2.9 (linkerd/linkerd2-proxy#1394) * Fixes for compiling on macOS (linkerd/linkerd2-proxy#1392) * Remove macOS-specific transport label tests (linkerd/linkerd2-proxy#1396) * build(deps): bump actions/download-artifact from 2.0.10 to 2.1.0 (linkerd/linkerd2-proxy#1398) * build(deps): bump actions/upload-artifact from 2.2.4 to 2.3.0 (linkerd/linkerd2-proxy#1397) * build(deps): bump h2 from 0.3.7 to 0.3.8 (linkerd/linkerd2-proxy#1401) * build(deps): bump tonic-build from 0.6.0 to 0.6.2 (linkerd/linkerd2-proxy#1399) * build(deps): bump tonic from 0.6.1 to 0.6.2 (linkerd/linkerd2-proxy#1400) * build(deps): bump h2 from 0.3.8 to 0.3.9 (linkerd/linkerd2-proxy#1405) * build(deps): bump hyper from 0.14.15 to 0.14.16 (linkerd/linkerd2-proxy#1404) * build(deps): bump libc from 0.2.109 to 0.2.110 (linkerd/linkerd2-proxy#1403) * build(deps): bump async-trait from 0.1.51 to 0.1.52 (linkerd/linkerd2-proxy#1402) * build(deps): bump tokio from 1.14.0 to 1.15.0 (linkerd/linkerd2-proxy#1410) * inbound: Simplify GatewayIo type (linkerd/linkerd2-proxy#1414) * build(deps): bump actions/upload-artifact from 2.3.0 to 2.3.1 (linkerd/linkerd2-proxy#1409) * build(deps): bump boring from 1.1.6 to 2.0.0 (linkerd/linkerd2-proxy#1413) * build(deps): bump tokio-rustls from 0.23.1 to 0.23.2 (linkerd/linkerd2-proxy#1412) * build(deps): bump libc from 0.2.110 to 0.2.112 (linkerd/linkerd2-proxy#1408) * build(deps): bump futures from 0.3.18 to 0.3.19 (linkerd/linkerd2-proxy#1415) * build(deps): bump serde_json from 1.0.72 to 1.0.73 (linkerd/linkerd2-proxy#1407) * build(deps): bump num_cpus from 1.13.0 to 1.13.1 (linkerd/linkerd2-proxy#1418) * build(deps): bump linkerd2-proxy-api from 0.3.0 to 0.3.1 (linkerd/linkerd2-proxy#1419)
This release updates dependencies. --- * build(deps): bump serde_json from 1.0.71 to 1.0.72 (linkerd/linkerd2-proxy#1389) * build(deps): bump tracing-subscriber from 0.3.2 to 0.3.3 (linkerd/linkerd2-proxy#1391) * ci: Skip unit tests in coverage report (linkerd/linkerd2-proxy#1390) * build(deps): bump libc from 0.2.108 to 0.2.109 (linkerd/linkerd2-proxy#1395) * build(deps): bump EmbarkStudios/cargo-deny-action from 1.2.6 to 1.2.9 (linkerd/linkerd2-proxy#1394) * Fixes for compiling on macOS (linkerd/linkerd2-proxy#1392) * Remove macOS-specific transport label tests (linkerd/linkerd2-proxy#1396) * build(deps): bump actions/download-artifact from 2.0.10 to 2.1.0 (linkerd/linkerd2-proxy#1398) * build(deps): bump actions/upload-artifact from 2.2.4 to 2.3.0 (linkerd/linkerd2-proxy#1397) * build(deps): bump h2 from 0.3.7 to 0.3.8 (linkerd/linkerd2-proxy#1401) * build(deps): bump tonic-build from 0.6.0 to 0.6.2 (linkerd/linkerd2-proxy#1399) * build(deps): bump tonic from 0.6.1 to 0.6.2 (linkerd/linkerd2-proxy#1400) * build(deps): bump h2 from 0.3.8 to 0.3.9 (linkerd/linkerd2-proxy#1405) * build(deps): bump hyper from 0.14.15 to 0.14.16 (linkerd/linkerd2-proxy#1404) * build(deps): bump libc from 0.2.109 to 0.2.110 (linkerd/linkerd2-proxy#1403) * build(deps): bump async-trait from 0.1.51 to 0.1.52 (linkerd/linkerd2-proxy#1402) * build(deps): bump tokio from 1.14.0 to 1.15.0 (linkerd/linkerd2-proxy#1410) * inbound: Simplify GatewayIo type (linkerd/linkerd2-proxy#1414) * build(deps): bump actions/upload-artifact from 2.3.0 to 2.3.1 (linkerd/linkerd2-proxy#1409) * build(deps): bump boring from 1.1.6 to 2.0.0 (linkerd/linkerd2-proxy#1413) * build(deps): bump tokio-rustls from 0.23.1 to 0.23.2 (linkerd/linkerd2-proxy#1412) * build(deps): bump libc from 0.2.110 to 0.2.112 (linkerd/linkerd2-proxy#1408) * build(deps): bump futures from 0.3.18 to 0.3.19 (linkerd/linkerd2-proxy#1415) * build(deps): bump serde_json from 1.0.72 to 1.0.73 (linkerd/linkerd2-proxy#1407) * build(deps): bump num_cpus from 1.13.0 to 1.13.1 (linkerd/linkerd2-proxy#1418) * build(deps): bump linkerd2-proxy-api from 0.3.0 to 0.3.1 (linkerd/linkerd2-proxy#1419)
The coverage workflow is misconfigured so that it fails to run:
cargo-tarpaulin
has command line arguments that don't match othercargo commands (
--packages
instead of--package
, which cannot bemixed with
--workspace
). Furthermore, it doesn't seem that we actuallybenefit from running tarpaulin over our non-integration tests, since the
coverage reports are not merged.