20260531 拆分sequence triage工具并修复远端产物拉取
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user