Merge remote-tracking branch 'origin/main' into item-481
CI / tests (pull_request) Has been cancelled

This commit is contained in:
2026-12-03 15:06:19 +01:00
14 changed files with 243 additions and 59 deletions
+2 -2
View File
@@ -514,7 +514,7 @@ def benched(bench: Bench, planned: Planner) -> list[str] | Failure:
def baseline_failure(bench: Bench) -> Failure | None:
"""Why a side's tests don't pass without a task; None where they pass at both sides."""
for side, tree in bench.trees.items():
ran = tests_in_copy(bench.containers, tree, bench.folder)
ran = tests_in_copy(bench.containers, tree, bench.folder, bench.git)
if isinstance(ran, Failure) or ran.code:
return ran if isinstance(ran, Failure) else failed(f"The tests fail at the {side} without {bench.asked.kind.without}: the test command", ran)
return None
@@ -630,7 +630,7 @@ def planted_tree(bench: Bench, side: Side, tree: pathlib.Path, path: str, change
(tree / path).write_bytes(changed)
except OSError as failure:
return Failure(f"could not plant the bug in {tree}: {failure}")
ran = tests_in_copy(bench.containers, str(tree), bench.folder)
ran = tests_in_copy(bench.containers, str(tree), bench.folder, bench.git)
# Tests that never end under the bug have no message.
if isinstance(ran, TimedOut):
return None