Answer product-owner round 1: 0 🔴, 2 🟡 (0 misread); print the checks even where the epic stays, stop a do-epic that hangs, and state the sandbox's needs in the README

This commit is contained in:
2026-11-19 03:09:36 +01:00
parent 098bfddef9
commit b00470996b
6 changed files with 81 additions and 20 deletions
+10 -6
View File
@@ -1,4 +1,4 @@
"""The do-epic-e2e command: runs do-epic's commands that need no tmux session and no worker against a sandbox epic on a real Jira site (docs/decisions.md → `do-epic: drives one Jira epic …`). It is no part of `run-tests`."""
"""The do-epic-e2e command: runs do-epic's commands that need no tmux session and no worker against a sandbox epic on a real Jira site (docs/decisions.md → `do-epic: drives one Jira epic …`)."""
import pathlib
import sys
import typing
@@ -22,6 +22,8 @@ def main(argv: list[str], env: typing.Mapping[str, str], launcher: pathlib.Path)
if isinstance(found, Failure):
print(f"do-epic-e2e cannot start: {found.reason}", file=sys.stderr)
return 1
report = scenario.Report()
left: sandbox.Leftover | None = None
try:
with sandbox.epic_made(found, "do-epic e2e sandbox epic") as key:
if isinstance(key, Failure):
@@ -29,12 +31,14 @@ def main(argv: list[str], env: typing.Mapping[str, str], launcher: pathlib.Path)
return 1
print(f"Sandbox epic {key} in {found.jira_url}")
report = scenario.run(found, key, launcher)
except sandbox.Leftover as left:
print(f"do-epic-e2e: {left}", file=sys.stderr)
return 1
except sandbox.Leftover as failure:
left = failure
# The checks are printed even where the epic could not be deleted.
for line in report.held:
print(f"ok {line}")
for line in report.broke:
print(f"FAIL {line}")
print(f"{len(report.held)} held, {len(report.broke)} broke; the sandbox epic is deleted")
return 1 if report.broke else 0
print(f"{len(report.held)} held, {len(report.broke)} broke")
if left:
print(f"do-epic-e2e: {left}", file=sys.stderr)
return 1 if report.broke or left else 0