Skip to content

Commit 513fa23

Browse files
authored
Improve file name of shard distribution (#2051)
1 parent f489d4c commit 513fa23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

buildkite/bazelci.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2466,7 +2466,8 @@ def upload_shard_distribution(sorted_test_targets, shard_count):
24662466
s: get_targets_for_shard(sorted_test_targets, s, shard_count)
24672467
for s in range(shard_count)
24682468
}
2469-
path = os.path.join(tmpdir, "shard_distribution.json")
2469+
base = f"{os.getenv('BUILDKITE_PIPELINE_SLUG')}_{os.getenv('BUILDKITE_BUILD_NUMBER')}_shards.json"
2470+
path = os.path.join(tmpdir, base)
24702471
with open(path, mode="w", encoding="utf-8") as fp:
24712472
json.dump(data, fp, indent=2, sort_keys=True)
24722473

0 commit comments

Comments
 (0)