20260531 拆分sequence triage工具并修复远端产物拉取

This commit is contained in:
2026-06-01 11:01:42 +08:00
parent a29fe266a4
commit 00d7109503
10 changed files with 2034 additions and 1972 deletions

View File

@@ -56,17 +56,16 @@ def rsync_from_remote(target: str, source: str | Path, destination: Path) -> Non
def rsync_run_artifacts_from_remote(target: str, source: str | Path, destination: Path) -> None:
destination.mkdir(parents=True, exist_ok=True)
include_args = [
"--include", "result.ccr",
"--include", "result.cir",
"--include", "process-time.txt",
"--include", "remote-run-meta.json",
"--include", "exit-code.txt",
"--include", "started-at.txt",
"--include", "finished-at.txt",
"--exclude", "*",
]
run_local(["rsync", "-a", *include_args, f"{target}:{source}/", f"{destination}/"])
for name in [
"result.ccr",
"result.cir",
"process-time.txt",
"remote-run-meta.json",
"exit-code.txt",
"started-at.txt",
"finished-at.txt",
]:
run_local(["rsync", "-a", f"{target}:{source}/{name}", f"{destination}/"])
def load_json(path: Path) -> Any: