Skip to content

Commit

Permalink
Additional bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlu1248 committed Apr 7, 2024
1 parent 5595053 commit 925baa8
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 5 deletions.
17 changes: 13 additions & 4 deletions harness/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
k: {
"python": "3.9",
"install": "python setup.py install",
"pip_packages": "pytest extension-helpers numpy",
"pip_packages": "pytest extension-helpers numpy==1.19.5",
}
for k in ["0.1", "0.2", "0.3", "0.4", "1.1", "1.2", "1.3", "3.0", "3.1", "3.2"]
}
Expand All @@ -238,12 +238,22 @@
k: {
"python": "3.9",
"install": "pip install -e .[test]",
"pip_packages": "pytest extension-helpers numpy",
"pip_packages": "pytest extension-helpers numpy==1.19.5",
}
for k in ["4.1", "4.2", "4.3", "5.0", "5.1", "5.2"]
}
)

MAP_VERSION_TO_INSTALL_SYMPY = {
k: {
"python": "3.7",
"packages": "mpmath flake8",
"pip_packages": "flake8-comprehensions",
"install": "pip install -e .",
}
for k in
["0.7", "1.0", "1.1", "1.10", "1.11", "1.12", "1.2", "1.4", "1.5"]
}
MAP_VERSION_TO_INSTALL_SYMPY = {
k: {
"python": "3.9",
Expand All @@ -252,8 +262,7 @@
"install": "pip install -e .",
}
for k in
["0.7", "1.0", "1.1", "1.10", "1.11", "1.12", "1.2", "1.4", "1.5", "1.6"] + \
["1.7", "1.8", "1.9"]
["1.6", "1.7", "1.8", "1.9"]
}
MAP_VERSION_TO_INSTALL_SYMPY.update(
{
Expand Down
18 changes: 17 additions & 1 deletion harness/context_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,14 @@ def __enter__(self):
logger_testbed.info(
f"[Testbed] Installing environment dependencies {pkgs}; Command: {full_cmd}"
)
self.exec(full_cmd, shell=True)
# breakpoint()
self.exec(
full_cmd,
shell=True,
executable="/bin/bash",
timeout=self.timeout,
env=None
)

# Install additional packages if specified
if "pip_packages" in install:
Expand Down Expand Up @@ -692,6 +699,15 @@ def run_tests_task(self, instance: dict):
# 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(
"pwd",
shell=True,
timeout=self.timeout,
check=False,
executable="/bin/bash",
text=True,
env=None
))
breakpoint()
out_test = self.exec(
test_cmd,
Expand Down

0 comments on commit 925baa8

Please sign in to comment.