Skip to content

Commit a54c71d

Browse files
clee-codegengithub-actions[bot]
authored andcommitted
Automated pre-commit update
1 parent b5f1828 commit a54c71d

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

codegen-examples/examples/swebench_agent_run/run_swebench_modal_harness.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ def _get_sandbox(self, timeout: int | None = None):
7373
LOCAL_SANDBOX_ENTRYPOINT_PATH,
7474
REMOTE_SANDBOX_ENTRYPOINT_PATH,
7575
),
76-
timeout=120
77-
* 60, # Much larger than default timeout to account for image build time
76+
timeout=120 * 60, # Much larger than default timeout to account for image build time
7877
)
7978
def run_instance_modal(
8079
test_spec: TestSpec,
@@ -187,9 +186,7 @@ def run_instance_modal(
187186
test_log_path=test_output_path,
188187
include_tests_status=True,
189188
)
190-
logger.info(
191-
f"report: {report}\nResult for {instance_id}: resolved: {report[instance_id]['resolved']}"
192-
)
189+
logger.info(f"report: {report}\nResult for {instance_id}: resolved: {report[instance_id]['resolved']}")
193190

194191
return TestOutput(
195192
instance_id=instance_id,
@@ -256,9 +253,7 @@ def run_instances_modal(
256253

257254
# Check for instances that have already been run
258255
for test_spec in test_specs:
259-
log_dir = get_log_dir(
260-
predictions[test_spec.instance_id], run_id, test_spec.instance_id
261-
)
256+
log_dir = get_log_dir(predictions[test_spec.instance_id], run_id, test_spec.instance_id)
262257
if log_dir.exists():
263258
continue
264259
run_test_specs.append(test_spec)

0 commit comments

Comments
 (0)