Skip to content

Commit

Permalink
last fixies
Browse files Browse the repository at this point in the history
add coverage repost MG action job and fix message-generator.sh
test interop-jdc-change-upstream.json excluded from MG action jobs
  • Loading branch information
lorbax committed May 13, 2024
1 parent b59758c commit e6cd798
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 13 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ jobs:
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov

- name: Clean llvm-cov
run: sh ./llvm-cov-clean.sh

- name: Run bad-pool-config-test
run: sh ./test/message-generator/test/bad-pool-config-test/bad-pool-config-test.sh

Expand Down Expand Up @@ -110,19 +113,10 @@ jobs:
run: sh ./test/message-generator/test/pool-sri-test-reject-auth/pool-sri-test-reject-auth.sh

- name: Run standard-coverage
run: sh ./test/message-generator/test/standard-coverage-test/standard-coverage-test.sh

- name: Run sv1-test
run: sh ./test/message-generator/test/sv1-test/sv1-test.sh

- name: Run translation-proxy
run: sh ./test/message-generator/test/translation-proxy/translation-proxy.sh
run: sh ./test/message-generator/test/standard-coverage-test/standard-coverage-test.json

- name: Run translation-proxy-broke-pool
run: sh ./test/message-generator/test/translation-proxy-broke-pool/translation-proxy-broke-pool.sh

- name: Coverage report
run: sh ./code-coverage-report.sh
- name: Run standard-coverage
run: sh ./test/message-generator/test/standard-coverage-test/standard-coverage-test.json

- name: Archive MG code coverage results
uses: actions/upload-artifact@v4
Expand Down
2 changes: 2 additions & 0 deletions llvm-cov-clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cd roles
cargo llvm-cov clean
14 changes: 13 additions & 1 deletion message-generator-tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
#! /bin/sh
#

search_dir="test/message-generator/test/"

for entry in `ls $search_dir`; do
if [ "$entry" = "interop-jdc-change-upstream" ]; then
echo "Skipping $entry"
continue
fi

echo $entry
$search_dir$entry/$entry.sh
done

cd roles
RUST_LOG=debug cargo llvm-cov --ignore-filename-regex "utils/message-generator/|experimental/|protocols/" --cobertura --output-path "target/mg_coverage.xml" report

0 comments on commit e6cd798

Please sign in to comment.