Skip to content

Commit ea62bc7

Browse files
vdberghppigazzini
authored andcommitted
Insert a few missing "format_returncode" calls.
Raise worker version to 296 (also server side)
1 parent 358679d commit ea62bc7

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

server/fishtest/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
according to the route/URL mapping defined in `__init__.py`.
3737
"""
3838

39-
WORKER_VERSION = 295
39+
WORKER_VERSION = 296
4040

4141

4242
@exception_view_config(HTTPException)

worker/games.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ def run_single_bench(engine, hash_size, threads, depth, timeout=600):
464464
message = f"Bench of {engine.name} timed out after {timeout} seconds."
465465
raise RunException(message) from e
466466
if p.returncode != 0:
467-
message = f"Bench run failed with exit code {p.returncode}."
467+
message = f"Bench run failed with exit code {format_returncode(p.returncode)}."
468468
raise RunException(message)
469469
for line in stderr_data.splitlines():
470470
if "Total time (ms)" in line:

worker/sri.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"__version": 295, "updater.py": "eDDBPKA/vrTCadgtEJFdL06vSoiysF0JhiHKdEnjQv3zS4kfdOAqnco/DJpDWbvh", "worker.py": "LFWwPl6NeiFOWQzj5TPiMPuP0wdaS22jLJMa2PLyhl9F8rSemFPNq3Rpk7tKf5uk", "games.py": "sbNzCoZRY4NoJoOYMVevv0JRbfRWYndkukrXe2krhD6h3ktmo2YL/Z5NTJyY96iL"}
1+
{"__version": 296, "updater.py": "eDDBPKA/vrTCadgtEJFdL06vSoiysF0JhiHKdEnjQv3zS4kfdOAqnco/DJpDWbvh", "worker.py": "zNLe3/BhRGUwIttR+kXMQW8uN1J39NHBi/NATt7QRTSOd2tbjAEomo+zqbV6Y/Zs", "games.py": "bMlVV6EIMp6Cul5LzOHxG+46dgTInfzde11K99WGRDcqBmUM+9pvKkUrG/0ijlRA"}

worker/worker.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373

7474
FASTCHESS_SHA = "66cac47f06dc1a09d3d1865cdbf560a7814f82ea"
7575

76-
WORKER_VERSION = 295
76+
WORKER_VERSION = 296
7777
FILE_LIST = ["updater.py", "worker.py", "games.py"]
7878
HTTP_TIMEOUT = 30.0
7979
INITIAL_RETRY_TIME = 15.0
@@ -1024,7 +1024,9 @@ def gcc_version():
10241024
print("No g++ or g++ is not executable.")
10251025
return None
10261026
if p.returncode != 0:
1027-
print(f"g++ version query failed with return code {p.returncode}.")
1027+
print(
1028+
f"g++ version query failed with return code {format_returncode(p.returncode)}."
1029+
)
10281030
return None
10291031

10301032
try:
@@ -1067,7 +1069,9 @@ def clang_version():
10671069
print("No clang++ or clang++ is not executable.")
10681070
return None
10691071
if p.returncode != 0:
1070-
print(f"clang++ version query failed with return code {p.returncode}.")
1072+
print(
1073+
f"clang++ version query failed with return code {format_returncode(p.returncode)}."
1074+
)
10711075
return None
10721076
try:
10731077
major = int(clang_major)
@@ -1129,7 +1133,7 @@ def verify_toolchain():
11291133
p = subprocess.run(cmd, stdout=subprocess.DEVNULL, stderr=subprocess.PIPE)
11301134
if p.returncode != 0:
11311135
print(
1132-
f"'{cmd_str}' returned code: {p.returncode} and error: {p.stderr.decode().strip()}"
1136+
f"'{cmd_str}' returned code: {format_returncode(p.returncode)} and error: {p.stderr.decode().strip()}"
11331137
)
11341138
missing_tools.append(name)
11351139
except (OSError, subprocess.SubprocessError) as e:

0 commit comments

Comments
 (0)