Skip to content

Commit

Permalink
Debug coverage workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fpoli authored Feb 29, 2024
1 parent df9b3ac commit 1a3d32c
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,37 @@ jobs:
echo "RUSTFLAGS=-Cinstrument-coverage" >> $GITHUB_ENV
echo "LLVM_PROFILE_FILE=${GITHUB_WORKSPACE}/target/coverage/gcov-%p-%m.profraw" >> $GITHUB_ENV
- name: Report disk usage
run: df -h

- name: Build with cargo
run: python x.py build --all

- name: Run cargo tests
run: python x.py test --all
- name: Report disk usage
run: df -h

- name: Clear coverage generated by prusti-contracts-build
run: rm -rf target/coverage

- name: Report disk usage
run: df -h

- name: Run quick cargo tests
run: python x.py test --all quick

- name: Report disk usage
run: df -h

- name: Rerun quick cargo tests, enabling debug dumps to cover more code
# Disabled because it causes CI to run out of disk space
if: false
run: python x.py test quick
env:
PRUSTI_DUMP_DEBUG_INFO: true
PRUSTI_DUMP_VIPER_PROGRAM: true
PRUSTI_IGNORE_REGIONS: true

- name: Report disk usage
run: df -h

- name: Check prusti-contracts
run: |
cd prusti-contracts/prusti-contracts-test/
Expand All @@ -61,6 +77,12 @@ jobs:
- name: Report disk usage
run: df -h

- name: Run cargo tests
run: python x.py test --all

- name: Report disk usage
run: df -h

- name: Collect coverage
run: |
curl -sL https://github.com/mozilla/grcov/releases/latest/download/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar jxf -
Expand Down

0 comments on commit 1a3d32c

Please sign in to comment.