Skip to content

Commit 60c96bc

Browse files
authored
Merge pull request #17 from commit-0/fast-container-run
Speed up container run
2 parents a17d06b + 6666cf3 commit 60c96bc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

commit0/harness/docker_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def log_info(x: str) -> None:
244244
try:
245245
if container:
246246
log_info(f"Attempting to stop container {container.name}...")
247-
container.stop(timeout=15)
247+
container.kill()
248248
except Exception as e:
249249
log_error(
250250
f"Failed to stop container {container.name}: {e}. Trying to forcefully kill..."

commit0/harness/spec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def make_eval_script_list(instance: RepoInstance, repo_directory: str) -> list[s
156156
f"git fetch {origin_name}",
157157
"git checkout {commit_id}",
158158
"git status",
159-
f"{instance['test']['test_cmd']} --json-report --json-report-file=report.json {{test_ids}}",
159+
f"uv run {instance['test']['test_cmd']} --json-report --json-report-file=report.json {{test_ids}}",
160160
f"git checkout {instance['base_commit']}",
161161
f"git remote remove {origin_name}",
162162
"git status",

0 commit comments

Comments
 (0)