From 701b9ed2436909076b1e22687f7437778370917f Mon Sep 17 00:00:00 2001 From: Kunal Bhargava Date: Thu, 16 May 2024 17:30:42 +0000 Subject: [PATCH] ledger: codecov --- .github/codecov.yml | 2 ++ src/flamenco/runtime/tests/run_ledger_tests.sh | 4 ++-- src/flamenco/runtime/tests/run_nightly_tests.sh | 8 ++------ 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/codecov.yml b/.github/codecov.yml index 5d1f8d64b7..8c5c4bf62b 100644 --- a/.github/codecov.yml +++ b/.github/codecov.yml @@ -9,3 +9,5 @@ flags: carryforward: true ledgers: carryforward: true + nightly_ledgers: + carryforward: true diff --git a/src/flamenco/runtime/tests/run_ledger_tests.sh b/src/flamenco/runtime/tests/run_ledger_tests.sh index 5c91bcabdc..0d9da49820 100755 --- a/src/flamenco/runtime/tests/run_ledger_tests.sh +++ b/src/flamenco/runtime/tests/run_ledger_tests.sh @@ -55,7 +55,7 @@ PRUNE_FAILURE=0 TILE_CPUS="--tile-cpus 5-21" POSITION_ARGS=() -OBJDIR=${OBJDIR:-build/native/gcc} +OBJDIR=${OBJDIR:-build/native/clang} while [[ $# -gt 0 ]]; do case $1 in @@ -200,7 +200,7 @@ while [[ $# -gt 0 ]]; do done -export LLVM_PROFILE_FILE=$OBJDIR/cov/raw/ledger_test_$LEDGER.profraw +export LLVM_PROFILE_FILE=$OBJDIR/cov/raw/ledger_test_$$.profraw mkdir -p $OBJDIR/cov/raw if [[ ! -e dump/$CHECKPT && SKIP_INGEST -eq 1 ]]; then diff --git a/src/flamenco/runtime/tests/run_nightly_tests.sh b/src/flamenco/runtime/tests/run_nightly_tests.sh index 597028f8a4..038ec381ba 100755 --- a/src/flamenco/runtime/tests/run_nightly_tests.sh +++ b/src/flamenco/runtime/tests/run_nightly_tests.sh @@ -53,17 +53,13 @@ EOF curl -X POST -H 'Content-type: application/json' --data "$start_json_payload" $SLACK_WEBHOOK_URL # Set up environment -PATH=/opt/rh/gcc-toolset-12/root/usr/bin:$PATH -export PATH -PKG_CONFIG_PATH=/usr/lib64/pkgconfig:$PKG_CONFIG_PATH - make distclean && make clean ./deps.sh nuke echo "y" | ./deps.sh +dev -make -j +make -j CC=clang EXTRAS=llvm-cov # Run the test -make run-runtime-test-nightly > ~/run_nightly_tests.txt +make run-runtime-test-nightly -j CC=clang EXTRAS=llvm-cov > ~/run_nightly_tests.txt status=$? # Notify the test status