From 186c38db80424079d8ad989fdca2613c714ef591 Mon Sep 17 00:00:00 2001 From: Michel Van den Bergh Date: Mon, 25 Sep 2023 07:43:16 +0200 Subject: [PATCH] Tighten up parsing of "Finished game" lines in c-cli output. See https://tests.stockfishchess.org/actions?max_actions=3&text=%22update_pentanomial%22&before=1695591050.683729 Raise worker version to 218 (also server side) --- server/fishtest/api.py | 2 +- worker/games.py | 2 +- worker/sri.txt | 2 +- worker/worker.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/fishtest/api.py b/server/fishtest/api.py index 21adbb861..936629df3 100644 --- a/server/fishtest/api.py +++ b/server/fishtest/api.py @@ -25,7 +25,7 @@ on how frequently the main instance flushes its run cache. """ -WORKER_VERSION = 217 +WORKER_VERSION = 218 def validate_request(request): diff --git a/worker/games.py b/worker/games.py index 2dfcb3c14..108666acf 100644 --- a/worker/games.py +++ b/worker/games.py @@ -1012,7 +1012,7 @@ def shorten_hash(match): # Act on line like this: # Finished game 4 (Base-SHA vs New-SHA): 1/2-1/2 {Draw by adjudication} - if "Finished game" in line: + if line.startswith("Finished game"): update_pentanomial(line, rounds) else: raise WorkerException( diff --git a/worker/sri.txt b/worker/sri.txt index a3b3f439f..08b5b2b71 100644 --- a/worker/sri.txt +++ b/worker/sri.txt @@ -1 +1 @@ -{"__version": 217, "updater.py": "Mg+pWOgGA0gSo2TuXuuLCWLzwGwH91rsW1W3ixg3jYauHQpRMtNdGnCfuD1GqOhV", "worker.py": "cFunWo4iviMvzdV9b/8PTfOLoXbovy4hWwmGR6OI70agi5dkwoCJ07BoYwBU+xjd", "games.py": "pqyY62ZE491mecjnXvByfr1mMuhXU5NDg6BbE6WZ4aKuzR12bSFQUSHrQnDt7374"} +{"__version": 218, "updater.py": "Mg+pWOgGA0gSo2TuXuuLCWLzwGwH91rsW1W3ixg3jYauHQpRMtNdGnCfuD1GqOhV", "worker.py": "JTcLpyoueO7A/L7xaZVhPowKXwqXzIcQL615cc0Gm+bwbefz9hUNuIUyUD+pL8is", "games.py": "jvH/ezkXwWUtTniX0jbqhAsNWqn0BNkHtJZ6PK85HXBGwDdmPrVgfaPAUPN4Us9r"} diff --git a/worker/worker.py b/worker/worker.py index 372b94da7..30d8c89cd 100644 --- a/worker/worker.py +++ b/worker/worker.py @@ -54,7 +54,7 @@ # Several packages are called "expression". # So we make sure to use the locally installed one. -WORKER_VERSION = 217 +WORKER_VERSION = 218 FILE_LIST = ["updater.py", "worker.py", "games.py"] HTTP_TIMEOUT = 30.0 INITIAL_RETRY_TIME = 15.0