Fix format_shard() (#1871)
diff --git a/buildkite/bazelci.py b/buildkite/bazelci.py
index 574d233..4827b82 100755
--- a/buildkite/bazelci.py
+++ b/buildkite/bazelci.py
@@ -3984,9 +3984,9 @@
return os.path.join(LOG_BUCKET, job_id, local_log_path)
def format_shard(s):
- overall, statistics = shard.get_details()
+ overall, statistics = s.get_details()
return (
- f"{format_test_status(overall)} {statistics}: [log]({get_log_url_for_shard(shard)})"
+ f"{format_test_status(overall)} {statistics}: [log]({get_log_url_for_shard(s)})"
)
failing_shards = [s for s in self.shards if s.overall_status != "PASSED"]