add pickle support for pattern matchers [run_process_replay] (#6816)

* add pickle support for pattern matchers [run_process_replay]

* cleaner and all

* no closures

* fix tests

* revert that

* final

* cleaner

* python 3.8 fix

* add round trip back

* this

* waste lines on this. that's the final line count

* max print better

* more targetted fix

* regrettably add 3.8 support
This commit is contained in:
George Hotz
2024-09-30 21:54:46 +08:00
committed by GitHub
parent f59517754e
commit 0f28e93224
6 changed files with 62 additions and 9 deletions

2
sz.py
View File

@@ -74,4 +74,4 @@ if __name__ == "__main__":
total_lines = sum([x[1] for x in table])
print(f"\ntotal line count: {total_lines}")
max_line_count = int(os.getenv("MAX_LINE_COUNT", "-1"))
assert max_line_count == -1 or total_lines < max_line_count, f"OVER {max_line_count} LINES"
assert max_line_count == -1 or total_lines <= max_line_count, f"OVER {max_line_count} LINES"