Skip to content

Commit 45143be

Browse files
Disservinppigazzini
authored andcommitted
feat: add new -testEnv option to fastchess
With this option fastchess prints all necessary debug information for illegal pv moves in one line. Which means fishtest is able to properly propagate this back to the user viewing the Events log. See Disservin/fastchess#812.
1 parent 11be666 commit 45143be

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

server/fishtest/api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
according to the route/URL mapping defined in `__init__.py`.
3636
"""
3737

38-
WORKER_VERSION = 268
38+
WORKER_VERSION = 269
3939

4040

4141
@exception_view_config(HTTPException)

worker/games.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -1198,7 +1198,6 @@ def launch_fastchess(
11981198
+ cmd[idx + 1 :]
11991199
)
12001200

1201-
# print(cmd)
12021201
try:
12031202
with subprocess.Popen(
12041203
cmd,
@@ -1564,7 +1563,6 @@ def make_player(arg):
15641563

15651564
# Handle book or PGN file.
15661565
pgn_cmd = []
1567-
book_cmd = []
15681566
if int(book_depth) <= 0:
15691567
pass
15701568
elif book.endswith(".pgn") or book.endswith(".epd"):
@@ -1590,6 +1588,7 @@ def make_player(arg):
15901588
cmd = (
15911589
[
15921590
str(fastchess_path),
1591+
"-testEnv",
15931592
"-recover",
15941593
"-repeat",
15951594
"-games",
@@ -1661,7 +1660,6 @@ def make_player(arg):
16611660
+ ["-each", "proto=uci"]
16621661
+ nodestime_cmd
16631662
+ threads_cmd
1664-
+ book_cmd
16651663
)
16661664

16671665
task_alive = launch_fastchess(

worker/sri.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"__version": 268, "updater.py": "PLWj7cnPP4rG8g5R5bJV0Za4kZpuRxbpcpebyFByXeFDUtfat/gfBn/0kJBMOY/m", "worker.py": "EIVTZsH4tTkjuaE4XCFD9AfGaq4zNUnBW0STxp5qhQMxA/bGa8/ZAu35pOW8y8Ai", "games.py": "aAEzDfhGu4C1E+Vj+ENPM0ISxp6ldAJzhtSvZPIpqHUotHYvKOLiVd+cXRucqKhX"}
1+
{"__version": 269, "updater.py": "PLWj7cnPP4rG8g5R5bJV0Za4kZpuRxbpcpebyFByXeFDUtfat/gfBn/0kJBMOY/m", "worker.py": "Jq6D0WLIj6eHxxQYZOklP/HVaZY4y03qrJ4fJE4aDNbx502mhFZfHa+JR8veWpZM", "games.py": "tXjHfqYxfOb7co+FP1DXHByGzuCm8ubqHtqsLW/QcXPoP2fxclaYPBHN5QhrrIVd"}

worker/worker.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@
6969
MIN_CLANG_MAJOR = 8
7070
MIN_CLANG_MINOR = 0
7171

72-
FASTCHESS_SHA = "eda8b0040d030306dfe1aec63f5437b7d234eb30"
72+
FASTCHESS_SHA = "f8e58066992e5e130f07fb3ba49b89b603e32f21"
7373

74-
WORKER_VERSION = 268
74+
WORKER_VERSION = 269
7575
FILE_LIST = ["updater.py", "worker.py", "games.py"]
7676
HTTP_TIMEOUT = 30.0
7777
INITIAL_RETRY_TIME = 15.0

0 commit comments

Comments
 (0)