File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -127,16 +127,30 @@ jobs:
127127 chmod +x base-engine/$OUTPUT_EXEC
128128 chmod +x tools/fastchess
129129 chmod +x tools/ordo-linux64
130- tools/fastchess \
131- -engine cmd=new-engine/engine name=new \
132- -engine cmd=base-engine/$OUTPUT_EXEC name=base \
133- -openings file=tools/UHO_Lichess_4852_v1.epd format=epd order=random \
134- -each tc=$TC \
135- -rounds 1500 \
136- -concurrency $(nproc) \
137- -pgnout notation=san nodes=true \
138- file=games_${{ matrix.shard }}.pgn \
139- | tee results_${{ matrix.shard }}.txt
130+ max_retries=3
131+ for attempt in $(seq 1 $max_retries); do
132+ echo "Fastchess attempt $attempt/$max_retries"
133+ if tools/fastchess \
134+ -recover -repeat \
135+ -engine cmd=new-engine/engine name=new \
136+ -engine cmd=base-engine/$OUTPUT_EXEC name=base \
137+ -openings file=tools/UHO_Lichess_4852_v1.epd format=epd order=random \
138+ -each tc=$TC \
139+ -rounds 1500 \
140+ -concurrency $(nproc) \
141+ -pgnout notation=san nodes=true \
142+ file=games_${{ matrix.shard }}.pgn \
143+ | tee results_${{ matrix.shard }}.txt; then
144+ echo "Fastchess completed successfully."
145+ exit 0
146+ fi
147+ if [ "$attempt" -lt "$max_retries" ]; then
148+ echo "Fastchess failed, retrying in 5 seconds..."
149+ sleep 5
150+ fi
151+ done
152+ echo "Fastchess failed after $max_retries attempts."
153+ exit 1
140154
141155 - uses : actions/upload-artifact@v4
142156 with :
You can’t perform that action at this time.
0 commit comments