Skip to content

Commit 6653e68

Browse files
committed
pre-commit
1 parent ffbcfd3 commit 6653e68

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

commit0/cli.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,9 @@ def test(
222222
reference: Annotated[
223223
bool, typer.Option("--reference", help="Test the reference commit.")
224224
] = False,
225-
rebuild: bool = typer.Option(False, "--rebuild", help="Whether to rebuild an image"),
225+
rebuild: bool = typer.Option(
226+
False, "--rebuild", help="Whether to rebuild an image"
227+
),
226228
commit0_dot_file_path: str = typer.Option(
227229
".commit0.yaml",
228230
help="Path to the commit0 dot file, where the setup config is stored",

commit0/harness/execution_context.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def __init__(
4444
log_dir: Path,
4545
files_to_copy: Optional[Files] = None,
4646
files_to_collect: Optional[list[str]] = None,
47+
rebuild_image: bool = False,
4748
):
4849
"""Create the remote execution context
4950
@@ -85,6 +86,7 @@ def __init__(
8586
log_dir: Path,
8687
files_to_copy: Optional[Files] = None,
8788
files_to_collect: Optional[list[str]] = None,
89+
rebuild_image: bool = False,
8890
):
8991
super().__init__(
9092
spec,

commit0/harness/run_pytest_ids.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,14 @@ def main(
126126

127127
try:
128128
with execution_context(
129-
spec, logger, timeout, num_cpus, log_dir, files_to_copy, files_to_collect, rebuild_image
129+
spec,
130+
logger,
131+
timeout,
132+
num_cpus,
133+
log_dir,
134+
files_to_copy,
135+
files_to_collect,
136+
rebuild_image,
130137
) as context:
131138
output, timed_out, total_runtime = context.exec_run_with_timeout(
132139
"/bin/bash /eval.sh"

0 commit comments

Comments
 (0)