From 01876b678ca7240b4711885819fe5113862b19c2 Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Wed, 30 Oct 2024 10:39:31 +0100 Subject: [PATCH] test archiving --- .github/workflows/cargo-llvm-cov.yml | 35 +++++++++++++++++++++------- scripts/simtest/codecov.sh | 2 +- 2 files changed, 28 insertions(+), 9 deletions(-) diff --git a/.github/workflows/cargo-llvm-cov.yml b/.github/workflows/cargo-llvm-cov.yml index 06b6e058456..1ca38e94d4c 100644 --- a/.github/workflows/cargo-llvm-cov.yml +++ b/.github/workflows/cargo-llvm-cov.yml @@ -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 diff --git a/scripts/simtest/codecov.sh b/scripts/simtest/codecov.sh index d3d25759edf..c7405a42e56 100755 --- a/scripts/simtest/codecov.sh +++ b/scripts/simtest/codecov.sh @@ -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