hotfix: bring COMPARE_SCHEDULE=0 back (#6657)

This commit is contained in:
qazal 2024-09-23 10:39:43 +08:00 committed by GitHub
parent e945fa9c5c
commit 6be1bf09f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 5 deletions

View File

@ -20,6 +20,7 @@ logging.basicConfig(level=logging.INFO, format="%(message)s")
# user config
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 = (k:="[skip_process_replay]") in os.getenv("COMMIT_MESSAGE", "") or k in os.getenv("PR_TITLE", "")
COMPARE_SCHEDULE = getenv("COMPARE_SCHEDULE", 1)
if REF == "master": SKIP_PROCESS_REPLAY = True
# *** differs
@ -127,11 +128,12 @@ if __name__ == "__main__":
logging.info("skipping process replay.")
exit(0)
logging.info("***** schedule diff")
try: process_replay_schedule()
except Exception as e:
if ASSERT_DIFF: raise e
logging.error(f"schedule diff err {e}")
if COMPARE_SCHEDULE:
logging.info("***** schedule diff")
try: process_replay_schedule()
except Exception as e:
if ASSERT_DIFF: raise e
logging.error(f"schedule diff err {e}")
logging.info("***** kernel diff")
try: process_replay_kernel()