Skip to content

Commit

Permalink
error tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
tomato42 committed Dec 31, 2023
1 parent 8df3bb8 commit 1364e89
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ jobs:
needs: mutation-prepare
runs-on: ubuntu-latest
strategy:
fail-fast: true
fail-fast: false
matrix:
include:
- name: 0
Expand Down Expand Up @@ -467,7 +467,7 @@ jobs:
cp sessions/session-${{ matrix.name }}.sqlite session.sqlite
systemd-run --user --scope -p MemoryMax=2G -p MemoryHigh=2G cosmic-ray exec cosmic-ray.toml session.sqlite &
cosmic_pid=$!
for i in $(seq 1 10); do
for i in $(seq 1 2); do
echo $i
sleep 60
done
Expand Down Expand Up @@ -616,16 +616,17 @@ jobs:
run: |
cp sessions-done/session-0-done.sqlite session.sqlite
for i in $(seq 1 19); do
cp sessions-done/session-$i-done.sqlite session-to_merge.sqlite
sqlite3 session.sqlite "$(cat sql/combine.sql)"
cp sessions-done/session-$i-done.sqlite session-to_merge.sqlite && sqlite3 session.sqlite "$(cat sql/combine.sql)" || true
done
- name: Report executed
run: |
cr-report session.sqlite | tail -n 3
- name: Check survival estimate
run: cr-rate --estimate --fail-over 32 --confidence 99.9 session.sqlite
- name: Log survival estimate
run: cr-rate --estimate --fail-over 32 --confidence 99.9 session.sqlite || true
- name: Get mutation score
run: echo "MUT_SCORE=$(python -c 'print(100-$(cr-rate session.sqlite))')" >> $GITHUB_ENV
run: |
echo "print(100-$(cr-rate session.sqlite))" > print-score.py
echo "MUT_SCORE=$(python print-score.py)" >> $GITHUB_ENV
- name: Create mutation score badge
uses: schneegans/[email protected]
with:
Expand Down

0 comments on commit 1364e89

Please sign in to comment.