Skip to content

Commit

Permalink
When running the same binary verify signature once
Browse files Browse the repository at this point in the history
SPSA tunes and same commit vs same commit runs the same binary so verify once
  • Loading branch information
peregrineshahin authored and ppigazzini committed May 7, 2024
1 parent d28ec43 commit fa38966
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions worker/games.py
Original file line number Diff line number Diff line change
Expand Up @@ -1383,16 +1383,20 @@ def parse_options(s):
except WorkerException as e:
raise e

try:
verify_signature(
new_engine,
run["args"]["new_signature"],
games_concurrency * threads,
)
except RunException as e:
run_errors.append(str(e))
except WorkerException as e:
raise e
if not (
run["args"]["base_signature"] == run["args"]["new_signature"]
and new_engine == base_engine
):
try:
verify_signature(
new_engine,
run["args"]["new_signature"],
games_concurrency * threads,
)
except RunException as e:
run_errors.append(str(e))
except WorkerException as e:
raise e

# Handle exceptions if any.
if run_errors:
Expand Down

0 comments on commit fa38966

Please sign in to comment.