Skip to content

disable Thrashing until fixed #3435

disable Thrashing until fixed

disable Thrashing until fixed #3435

Workflow file for this run

name: Fuzz
on:
schedule:
- cron: '36 */6 * * *'
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
fuzz:
strategy:
fail-fast: false
matrix:
gen: [1]
options: ['', '-Dshowdown']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: goto-bus-stop/setup-zig@default
- run: npm install --ignore-scripts
- run: zig build -Doptimize=ReleaseSafe -Dlog -Dchance -Dcalc ${{matrix.options}} fuzz -- ${{matrix.gen}} 15m | tee seed.txt
shell: bash
- run: |
node src/bin/install-pkmn-engine
npm run --silent fuzz -- ${{matrix.options == '' && 'pkmn' || 'showdown' }} ${{matrix.gen}} 1s $(cat seed.txt)
if: failure()
- run: |
node src/bin/install-pkmn-engine --options="-Dshowdown -Dlog -Dchance -Dcalc"
npm run integration -- --gen=${{matrix.gen}} --duration=15m --maxFailures=5 --debug=false
if: ${{ matrix.options != '' }}
- uses: actions/upload-artifact@v4
if: failure()
with:
name: logs
path: logs
if-no-files-found: error