Skip to content

Commit

Permalink
Problem: testground testcase output artifact not collectiable in k8s …
Browse files Browse the repository at this point in the history
…workflow (#1535)

* Problem: testground testcase output artifact not collectiable in k8s workflow

Solution:
- create static filename for argo artifact collection

* fix filename
  • Loading branch information
yihuang authored Aug 2, 2024
1 parent 281b830 commit 918fede
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions testground/benchmark/benchmark/stateless.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,15 @@ def run(
proc.wait()

# collect outputs
output = Path("/data.tar.bz2")
with tarfile.open(output, "x:bz2") as tar:
tar.add(home, arcname="data")
outdir = Path(outdir)
if outdir.exists():
assert outdir.is_dir()
filename = outdir / f"{group}_{group_seq}.tar.bz2"
filename.unlink(missing_ok=True)
with tarfile.open(filename, "x:bz2") as tar:
tar.add(home, arcname="data")
shutil.copy(output, filename)


def detect_idle(idle_blocks: int, interval: int):
Expand Down

0 comments on commit 918fede

Please sign in to comment.