Carry the edits the first commit left unstaged
CI / tests (pull_request) Has been cancelled

This commit is contained in:
2026-12-03 23:52:10 +01:00
parent 3b07c05eba
commit f3f9c91348
19 changed files with 366 additions and 332 deletions
+3 -3
View File
@@ -15,7 +15,7 @@ Clock = typing.Callable[[], float]
def trace_folder(env: typing.Mapping[str, str], home: pathlib.Path) -> pathlib.Path:
"""The folder each cut keeps its trace in, under the state folder as run-heavy finds it."""
return state_folder(env, home) / "deploy-release"
return state_folder(env, home) / "cut-release"
def run_name(began: float, pid: int) -> str:
@@ -46,12 +46,12 @@ def kept(trace: pathlib.Path | None, line: str, now: Clock, out: typing.TextIO)
with trace.open("a", encoding="utf-8") as file:
file.write(stamped(now(), line))
except OSError as failure:
print(f"deploy-release: warning: the trace {trace} could not be written: {failure}", file=out)
print(f"cut-release: warning: the trace {trace} could not be written: {failure}", file=out)
def saying(trace: pathlib.Path | None, now: Clock, out: typing.TextIO) -> Say:
"""Says each step on out, so the human sees how far the cut got before the changelog fills the screen, and keeps it in trace."""
def say(step: str) -> None:
print(f"deploy-release: {step}", file=out)
print(f"cut-release: {step}", file=out)
kept(trace, step, now, out)
return say