Skip to content

Commit

Permalink
test archiving
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex6323 committed Oct 30, 2024
1 parent 2eb8746 commit 01876b6
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 9 deletions.
35 changes: 27 additions & 8 deletions .github/workflows/cargo-llvm-cov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,31 @@ jobs:
run: |
tar -czf nextest_coverage_report.tgz target/llvm-cov/html/
# Temporarily disabled until sim tests are no longer segfaulting
# - name: Run code coverage (simtest)
# run: |
# git clean -fd
# ./scripts/simtest/codecov.sh
# TEMP
- name: Upload coverage report
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # pin@v4
if: always()
with:
name: nextest_coverage_report.tgz
path: .
if-no-files-found: error
retention-days: 1

# - name: Create compressed archive
# run: |
# tar -czf simtest_coverage_report.tgz target/llvm-cov/html/
- name: Run code coverage (simtest)
run: |
git clean -fd
./scripts/simtest/codecov.sh
- name: Create compressed archive
run: |
tar -czf simtest_coverage_report.tgz target/llvm-cov/html/
# TEMP
- name: Upload coverage report
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # pin@v4
if: always()
with:
name: simtest_coverage_report.tgz
path: .
if-no-files-found: error
retention-days: 1
2 changes: 1 addition & 1 deletion scripts/simtest/codecov.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export SIMTEST_STATIC_INIT_MOVE=$root_dir"/examples/move/basics"

cargo llvm-cov clean

MSIM_WATCHDOG_TIMEOUT_MS=60000 MSIM_TEST_SEED=1 cargo llvm-cov --all-features --branch --ignore-run-fail --html nextest --cargo-profile simulator
RUSTFLAGS="-C debuginfo=0" MSIM_WATCHDOG_TIMEOUT_MS=60000 MSIM_TEST_SEED=1 cargo llvm-cov --ignore-run-fail --html nextest --cargo-profile simulator

# remove the patch
git checkout .cargo/config Cargo.toml Cargo.lock

0 comments on commit 01876b6

Please sign in to comment.