Skip to content

Commit b4416df

Browse files
author
KadenZhang3321
committed
load-model: use matrix keys reader_id/writer_id to match workflow refs
Signed-off-by: KadenZhang3321 <1075567213@gmail.com>
1 parent 6c22628 commit b4416df

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎.github/workflows/scripts/obs_stability/setup_load.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import json
77
import os
88
import sys
9-
import time
109

1110
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
1211
from s3obj import S3, S3Error # noqa: E402
@@ -52,7 +51,6 @@ def main():
5251
snapshot_key = f"{args.prefix}/snapshot.bin"
5352
client = S3(args.endpoint, args.bucket, args.region, os.environ["HW_OBS_AK"], os.environ["HW_OBS_SK"])
5453
try:
55-
t0 = time.perf_counter()
5654
elapsed, parts, perr = client.multipart_put_file(snapshot_key, payload)
5755
except S3Error as exc:
5856
print(f"snapshot upload failed: {exc}", file=sys.stderr)
@@ -63,7 +61,7 @@ def main():
6361
def matrix(count, kind):
6462
return [
6563
{
66-
f"{kind}_id": i,
64+
("writer_id" if kind == "write" else "reader_id"): i,
6765
"runner": normalized[i % len(normalized)]["tag"],
6866
"region": normalized[i % len(normalized)]["region"],
6967
"image": normalized[i % len(normalized)]["image"],

0 commit comments

Comments
 (0)