From 290071d22489d8f600ed9b1e78244ecc1a5bf565 Mon Sep 17 00:00:00 2001 From: Kevin Lu Date: Sun, 7 Apr 2024 01:31:11 +0000 Subject: [PATCH] Cleanup and fixes --- harness/constants.py | 1 + harness/context_manager.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/harness/constants.py b/harness/constants.py index aa7ed4d2..b8c9a09d 100644 --- a/harness/constants.py +++ b/harness/constants.py @@ -1,3 +1,4 @@ +# Note: Need build-esential for sklearn to work properly MAP_VERSION_TO_INSTALL_SKLEARN = { k: { "python": "3.6", diff --git a/harness/context_manager.py b/harness/context_manager.py index 6dcd52f9..77c2c672 100644 --- a/harness/context_manager.py +++ b/harness/context_manager.py @@ -695,7 +695,6 @@ def run_tests_task(self, instance: dict): try: # Run test command for task instance test_cmd = f"{self.cmd_activate} && {instance['test_cmd']}" - # test_cmd = test_cmd.replace("./tests/runtests.py ", "pip install -e . && ./tests/runtests.py --parallel=1 ") # Fix Django installs with open(self.log_file, "a") as f: f.write(f"Test Script: {test_cmd};\n") print(self.exec( @@ -707,7 +706,7 @@ def run_tests_task(self, instance: dict): text=True, env=None )) - breakpoint() + # breakpoint() out_test = self.exec( test_cmd, shell=True,