Skip to content

Commit 0e52863

Browse files
committed
tbdev turndown: No longer allow usage of tensorboard dev upload. (#6638)
In this step of the TensorBoard.dev turndown, we remove the ability to upload via the `tensorboard dev upload` command. Instead, when a user invokes `tensorboard dev upload`, we print the following message, which is similar to the message we currently return in the server info from TensorBoard.dev backends: ``` **************************************************************** **************************************************************** **************************************************************** Uploading TensorBoard logs to https://tensorboard.dev/ is no longer supported. TensorBoard.dev is shutting down. Please export your experiments by Dec 31, 2023. See the FAQ at https://tensorboard.dev. **************************************************************** **************************************************************** **************************************************************** ``` We also remove a bunch of upload-specific code. Testing: I tested the changes by trying some version of the following commands: `bazel run tensorboard -- dev auth revoke` `bazel run tensorboard -- dev upload` `bazel run tensorboard -- dev list` `bazel run tensorboard -- dev update-metadata` `bazel run tensorboard -- dev delete` `bazel run tensorboard -- dev export`
1 parent ac7574d commit 0e52863

9 files changed

+43
-3457
lines changed

Diff for: tensorboard/uploader/BUILD

+1-47
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ py_library(
6868
visibility = ["//tensorboard:internal"],
6969
deps = [
7070
":auth",
71-
":dry_run_stubs",
7271
":exporter",
7372
":flags_parser",
7473
":formatters",
@@ -79,7 +78,6 @@ py_library(
7978
"//tensorboard:expect_absl_logging_installed",
8079
"//tensorboard:expect_grpc_installed",
8180
"//tensorboard:program",
82-
"//tensorboard/compat:tensorflow",
8381
"//tensorboard/plugins:base_plugin",
8482
"//tensorboard/uploader/proto:protos_all_py_pb2_grpc",
8583
],
@@ -90,7 +88,6 @@ py_test(
9088
srcs = ["uploader_subcommand_test.py"],
9189
srcs_version = "PY3",
9290
deps = [
93-
":dry_run_stubs",
9491
":server_info",
9592
":uploader",
9693
":uploader_subcommand",
@@ -104,21 +101,11 @@ py_library(
104101
srcs = ["uploader.py"],
105102
srcs_version = "PY3",
106103
deps = [
107-
":logdir_loader",
108-
":upload_tracker",
109104
":util",
110105
"//tensorboard:expect_grpc_installed",
111-
"//tensorboard:expect_protobuf_installed",
112-
"//tensorboard/backend:process_graph",
113-
"//tensorboard/backend/event_processing:directory_loader",
114-
"//tensorboard/backend/event_processing:event_file_loader",
115-
"//tensorboard/backend/event_processing:io_wrapper",
116-
"//tensorboard/compat/proto:protos_all_py_pb2",
117-
"//tensorboard/plugins/graph:metadata",
118106
"//tensorboard/uploader/proto:protos_all_py_pb2",
119107
"//tensorboard/util:grpc_util",
120108
"//tensorboard/util:tb_logging",
121-
"//tensorboard/util:tensor_util",
122109
],
123110
)
124111

@@ -133,28 +120,15 @@ py_test(
133120
srcs = ["uploader_test.py"],
134121
srcs_version = "PY3",
135122
deps = [
136-
":dry_run_stubs",
137123
":server_info",
138124
":test_util",
139-
":upload_tracker",
140125
":uploader",
141-
":util",
142-
"//tensorboard:data_compat",
143-
"//tensorboard:dataclass_compat",
144126
"//tensorboard:expect_grpc_installed",
145127
"//tensorboard:expect_grpc_testing_installed",
146-
"//tensorboard:expect_protobuf_installed",
147128
"//tensorboard:expect_tensorflow_installed",
148129
"//tensorboard/compat:no_tensorflow",
149-
"//tensorboard/compat/proto:protos_all_py_pb2",
150-
"//tensorboard/plugins/graph:metadata",
151-
"//tensorboard/plugins/histogram:summary_v2",
152-
"//tensorboard/plugins/scalar:metadata",
153-
"//tensorboard/plugins/scalar:summary_v2",
154-
"//tensorboard/summary:summary_v1",
155130
"//tensorboard/uploader/proto:protos_all_py_pb2",
156131
"//tensorboard/uploader/proto:protos_all_py_pb2_grpc",
157-
"//tensorboard/util:test_util",
158132
],
159133
)
160134

@@ -168,26 +142,6 @@ py_test(
168142
],
169143
)
170144

171-
py_library(
172-
name = "dry_run_stubs",
173-
srcs = ["dry_run_stubs.py"],
174-
srcs_version = "PY3",
175-
deps = [
176-
"//tensorboard/uploader/proto:protos_all_py_pb2",
177-
],
178-
)
179-
180-
py_test(
181-
name = "dry_run_stubs_test",
182-
srcs = ["dry_run_stubs_test.py"],
183-
srcs_version = "PY3",
184-
deps = [
185-
":dry_run_stubs",
186-
"//tensorboard:test",
187-
"//tensorboard/uploader/proto:protos_all_py_pb2",
188-
],
189-
)
190-
191145
py_library(
192146
name = "auth",
193147
srcs = ["auth.py"],
@@ -257,8 +211,8 @@ py_test(
257211
name = "util_test",
258212
srcs = ["util_test.py"],
259213
deps = [
260-
":test_util",
261214
":util",
215+
"//tensorboard:expect_grpc_installed",
262216
"//tensorboard:expect_protobuf_installed",
263217
"//tensorboard:test",
264218
],

Diff for: tensorboard/uploader/dry_run_stubs.py

-53
This file was deleted.

Diff for: tensorboard/uploader/dry_run_stubs_test.py

-52
This file was deleted.

0 commit comments

Comments
 (0)