Skip to content
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: use nextest for unit tests, disable grcov collation and codecov o… #3811

Merged
merged 12 commits into from
Jul 27, 2023
19 changes: 18 additions & 1 deletion .github/workflows/stacks-blockchain-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ jobs:
run: |
rustup component add llvm-tools-preview
cargo install grcov
- name: Add nextest
run: |
cargo install cargo-nextest
- name: Checkout the latest code
id: git_checkout
uses: actions/checkout@v3
Expand All @@ -53,9 +56,23 @@ jobs:
RUSTFLAGS: -Cinstrument-coverage
LLVM_PROFILE_FILE: stacks-blockchain-%p-%m.profraw
run: |
cargo test --workspace
cargo nextest run --workspace
- name: Collate grcov
# grcov doesn't work with cargo nextest currently, getting
# that to work again will have to happen separately. Getting unit
# test run times below 2 hours is more important for now.
if: ${{ false }}
id: unit_tests_grcov
env:
RUSTFLAGS: -Cinstrument-coverage
LLVM_PROFILE_FILE: stacks-blockchain-%p-%m.profraw
run: |
grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info
- name: Upload codecov results
# grcov doesn't work with cargo nextest currently, getting
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. i'll have to double check my fork - i was under the impression this was working in that fork's workflows. lack of an error != it's working though, so i'll verify that.

# that to work again will have to happen separately. Getting unit
# test run times below 2 hours is more important for now.
if: ${{ false }}
uses: codecov/codecov-action@v3
id: codedov
with:
Expand Down