Skip to content

Commit

Permalink
Tighten up parsing of "Finished game" lines in c-cli output.
Browse files Browse the repository at this point in the history
  • Loading branch information
vdbergh authored and ppigazzini committed Sep 25, 2023
1 parent ac57a8a commit 186c38d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion server/fishtest/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
on how frequently the main instance flushes its run cache.
"""

WORKER_VERSION = 217
WORKER_VERSION = 218


def validate_request(request):
Expand Down
2 changes: 1 addition & 1 deletion worker/games.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion worker/sri.txt
Original file line number Diff line number Diff line change
@@ -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"}
2 changes: 1 addition & 1 deletion worker/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 186c38d

Please sign in to comment.