From 50aba32ea86b493a8486b79978a50a5ee8d1ab37 Mon Sep 17 00:00:00 2001 From: qazal <77887910+Qazalin@users.noreply.github.com> Date: Fri, 19 Jul 2024 03:05:00 +0800 Subject: [PATCH] hotfix: don't assert process replay in master. (#5562) This is because https://github.com/tinygrad/tinygrad/actions/runs/9996754763/job/27631802686 ran exactly when master changed state, causing the diff to assert. if [run_process_replay] is green pre merge it's ok. --- test/external/process_replay/process_replay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/external/process_replay/process_replay.py b/test/external/process_replay/process_replay.py index d8e5ca2534..90a789e715 100755 --- a/test/external/process_replay/process_replay.py +++ b/test/external/process_replay/process_replay.py @@ -7,9 +7,9 @@ from tinygrad.helpers import Context, ContextVar, colored, db_connection, VERSIO PAGE_SIZE = 100 TABLE_NAME = f"process_replay_{getenv('GITHUB_RUN_ID', 'HEAD')}_{VERSION}" ASSERT_DIFF = getenv("ASSERT_PROCESS_REPLAY", int((k:="[run_process_replay]") in os.getenv("COMMIT_MESSAGE", k) or k in os.getenv("PR_TITLE", k))) -SKIP_PROCESS_REPLAY = int((k:="[skip_process_replay]") in os.getenv("COMMIT_MESSAGE", "") or k in os.getenv("PR_TITLE", "")) +REF = os.getenv("GITHUB_REF_NAME", "") +SKIP_PROCESS_REPLAY = int((k:="[skip_process_replay]") in os.getenv("COMMIT_MESSAGE", "") or k in os.getenv("PR_TITLE", "")) or REF == "master" MAX_DIFF_PCT = getenv("PROCESS_REPLAY_MAX_DIFF_PCT", 20) -assert MAX_DIFF_PCT < 100 early_stop = multiprocessing.Event() logging.basicConfig(level=logging.INFO, format='%(message)s')