From f72c6a7a400b150ba632b6e268e1176e5325052b Mon Sep 17 00:00:00 2001 From: psamanoelton Date: Thu, 11 Jun 2026 17:17:51 -0600 Subject: [PATCH 1/3] Fix Buildifier warnings --- third_party/repo.bzl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/third_party/repo.bzl b/third_party/repo.bzl index 5bda8c33fe..a04a4e6fd4 100644 --- a/third_party/repo.bzl +++ b/third_party/repo.bzl @@ -56,7 +56,14 @@ _tb_http_archive = repository_rule( ) def tb_http_archive(name, sha256, urls, **kwargs): - """Downloads a mirrored archive for TensorBoard-specific repo wiring.""" + """Downloads a mirrored archive for TensorBoard-specific repo wiring. + + Args: + name: The name of the repository. + sha256: The expected SHA-256 hash of the downloaded file. + urls: A list of URLs where the file can be downloaded. + **kwargs: Additional arguments passed to the underlying rule. + """ if len(urls) < 2: fail("tb_http_archive(urls) must have redundant URLs.") @@ -68,6 +75,7 @@ def tb_http_archive(name, sha256, urls, **kwargs): fail("The first entry of tb_http_archive(urls) must be a mirror URL.") if native.existing_rule(name): + # buildifier: disable=print print("\n\033[1;33mWarning:\033[0m skipping import of repository '" + name + "' because it already exists.\n") return From ac6c3a071ee0e1b65d8564a067010def29cc1ede Mon Sep 17 00:00:00 2001 From: psamanoelton Date: Thu, 11 Jun 2026 17:27:52 -0600 Subject: [PATCH 2/3] fix whitespace --- third_party/repo.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/repo.bzl b/third_party/repo.bzl index a04a4e6fd4..5ac26c0b5a 100644 --- a/third_party/repo.bzl +++ b/third_party/repo.bzl @@ -57,7 +57,7 @@ _tb_http_archive = repository_rule( def tb_http_archive(name, sha256, urls, **kwargs): """Downloads a mirrored archive for TensorBoard-specific repo wiring. - + Args: name: The name of the repository. sha256: The expected SHA-256 hash of the downloaded file. From b4e0dc798ed595e021ec6267ae708d97753df421 Mon Sep 17 00:00:00 2001 From: psamanoelton Date: Thu, 11 Jun 2026 21:36:18 -0600 Subject: [PATCH 3/3] fix tf dependency in demo_utils_test --- tensorboard/plugins/mesh/BUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorboard/plugins/mesh/BUILD b/tensorboard/plugins/mesh/BUILD index 54e7796c31..627b6a6c28 100644 --- a/tensorboard/plugins/mesh/BUILD +++ b/tensorboard/plugins/mesh/BUILD @@ -163,11 +163,11 @@ py_test( srcs = ["demo_utils_test.py"], data = [ ":test_data", - "//tensorboard/compat:tensorflow", ], srcs_version = "PY3", deps = [ ":demo_utils", + "//tensorboard/compat:tensorflow", ], )