Skip to content

Commit

Permalink
debug run
Browse files Browse the repository at this point in the history
  • Loading branch information
tomato42 committed Jan 4, 2024
1 parent 48cc136 commit 229214a
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -296,27 +296,30 @@ jobs:
cosmic-ray init cosmic-ray.toml session-vs-master.sqlite
git branch master origin/master
cr-filter-git --config cosmic-ray.toml session-vs-master.sqlite
cr-report session-vs-master.sqlite | tail -n 5
cr-report session-vs-master.sqlite | tail -n 3
- name: Exec mutation testing for PR
if: ${{ matrix.mutation == 'true' && github.event.pull_request }}
run: |
systemd-run --user --scope -p MemoryMax=2G -p MemoryHigh=2G cosmic-ray exec cosmic-ray.toml session-vs-master.sqlite &
systemd-run --user --scope -p MemoryMax=2G -p MemoryHigh=2G cosmic-ray --verbosity INFO exec cosmic-ray.toml session-vs-master.sqlite &
cosmic_pid=$!
for i in $(seq 1 10); do
echo $i
for j in $(seq 1 60); do
echo -n .
sleep 1
done
done
sleep 120
kill $cosmic_pid
wait $cosmic_pid || true
- name: Check test coverage for PR
if: ${{ matrix.mutation == 'true' && github.event.pull_request }}
run: |
# remove not-executed results
sqlite3 session-vs-master.sqlite "DELETE from work_results WHERE work_results.worker_outcome = 'SKIPPED'"
cr-report session-vs-master.sqlite | tail -n 5
cr-report session-vs-master.sqlite | tail -n 3
- name: Generate html report
run: |
cr-html session.sqlite > cosmic-ray.html
- name: Archive mutation testing results
uses: actions/upload-artifact@v3
with:
name: mutation-PR-coverage-report
path: cosmic-ray.html
- name: Check test coverage for PR
# check if executed have at most 15% survival rate
cr-rate --estimate --confidence 99.9 --fail-over 15 session-vs-master.sqlite
- name: instrumental test coverage on PR
Expand Down

0 comments on commit 229214a

Please sign in to comment.