From 0dc19b61ae4d2f361787b043228191403bec8c22 Mon Sep 17 00:00:00 2001 From: Joost VandeVondele Date: Sun, 14 Jun 2026 09:47:12 +0200 Subject: [PATCH] More stable matetrack CI This version handles aborting engine processes more gracefully. This also test the engine prior to use, as the process is nevertheless not fully robust. closes https://github.com/official-stockfish/Stockfish/pull/6893 No functional change --- .github/workflows/matetrack.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/matetrack.yml b/.github/workflows/matetrack.yml index f0ff643eb..dcd1bf850 100644 --- a/.github/workflows/matetrack.yml +++ b/.github/workflows/matetrack.yml @@ -7,6 +7,9 @@ jobs: Matetrack: name: Matetrack runs-on: ubuntu-22.04 + defaults: + run: + shell: bash steps: - name: Checkout SF repo uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -24,7 +27,7 @@ jobs: with: repository: vondele/matetrack path: matetrack - ref: 9d77be284e8cba37e2f8a59e54cd2bcbf4e3ee4d + ref: 1e7f6c6fff8e2f23923880a94fae596281346395 persist-credentials: false - name: matetrack install deps @@ -47,6 +50,13 @@ jobs: wget --no-verbose -r -nH --cut-dirs=2 --no-parent --reject="index.html*" -e robots=off https://tablebase.lichess.ovh/tables/standard/3-4-5-wdl/ wget --no-verbose -r -nH --cut-dirs=2 --no-parent --reject="index.html*" -e robots=off https://tablebase.lichess.ovh/tables/standard/3-4-5-dtz/ + + # matecheck/python chess is not good at handling crashing engines. Do a basic check first. + - name: Test engine functionality + working-directory: Stockfish/src + run: | + python3 ../tests/instrumented.py --none ./stockfish + - name: Run matetrack th1 working-directory: matetrack run: |