Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion codeflash/verification/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,13 @@ def run_behavioral_tests(

if enable_coverage:
coverage_database_file, coverage_config_file = prepare_coverage_files()

# disable jit for coverage
pytest_test_env["NUMBA_DISABLE_JIT"] = str(1)
pytest_test_env["TORCHDYNAMO_DISABLE"] = str(1)
pytest_test_env["PYTORCH_JIT"] = str(0)
pytest_test_env["TF_XLA_FLAGS"] = "--tf_xla_auto_jit=0"
pytest_test_env["TF_ENABLE_ONEDNN_OPTS"] = str(0)
pytest_test_env["JAX_DISABLE_JIT"] = str(0)
cov_erase = execute_test_subprocess(
shlex.split(f"{SAFE_SYS_EXECUTABLE} -m coverage erase"), cwd=cwd, env=pytest_test_env
) # this cleanup is necessary to avoid coverage data from previous runs, if there are any,
Expand Down
Loading