@@ -67,8 +67,9 @@ def run_aider_for_repo(
67
67
aider_config , target_edit_files_cmd_args , repo_path , ds
68
68
)
69
69
70
+ test_files = test_files [:1 ]
70
71
for test_file in test_files :
71
- test_cmd = f"python -m commit0.harness.run_pytest_ids --repo { repo_name } --test_ids { test_file } --branch_name aider "
72
+ test_cmd = f"uv run commit0 test-reference { repo_name } { test_file } "
72
73
73
74
aider_cmd = get_aider_cmd (
74
75
aider_config .llm_name ,
@@ -77,8 +78,14 @@ def run_aider_for_repo(
77
78
test_cmd ,
78
79
)
79
80
81
+ print (aider_cmd )
82
+
80
83
try :
81
- _ = subprocess .call (aider_cmd , shell = True )
84
+ process = subprocess .Popen (aider_cmd , shell = True , stdout = subprocess .PIPE , stderr = subprocess .PIPE , universal_newlines = True )
85
+ stdout , stderr = process .communicate ()
86
+ results = process .returncode
87
+ logger .info (f"STDOUT: { stdout } " )
88
+ logger .info (f"STDERR: { stderr } " )
82
89
except subprocess .CalledProcessError as e :
83
90
logger .error (f"Command failed with exit code { e .returncode } " )
84
91
logger .error (f"STDOUT: { e .stdout } " )
@@ -107,6 +114,7 @@ def main(config: BaselineConfig) -> None:
107
114
108
115
dataset = load_dataset (commit0_config .dataset_name , split = "test" )
109
116
117
+ dataset = [dataset [3 ]]
110
118
thread_map (
111
119
partial (run_aider_for_repo , commit0_config , aider_config ),
112
120
dataset ,
0 commit comments