Skip to content

Conversation

@wchargin
Copy link
Contributor

Summary:
When running tensorboard dev export, experiment names and descriptions
(set with the update-metadata subcommand or the --name and
--description flags to upload) as well as experiment creation and
modification times are now emitted to a new metadata.json file in the
experiment directory.

Test Plan:
Unit tests included. Also end-to-end tested against a live server,
exporting some experiments with name/description and some without.

wchargin-branch: uploader-export-metadata

Summary:
We now emit an experiments scalar data to `experiment_123/scalars.json`
rather than `scalars_123.json`. This generalizes more cleanly to writing
multiple files under an experiment’s directory.

Test Plan:
Unit tests updated. One previous test case can no longer be hit and has
thus been removed.

wchargin-branch: uploader-export-subdirs
wchargin-source: baa128470c061d7d2c0153f6491a1cdf8dd416c5
Summary:
When running `tensorboard dev export`, experiment names and descriptions
(set with the `update-metadata` subcommand or the `--name` and
`--description` flags to `upload`) as well as experiment creation and
modification times are now emitted to a new `metadata.json` file in the
experiment directory.

Test Plan:
Unit tests included. Also end-to-end tested against a live server,
exporting some experiments with name/description and some without.

wchargin-branch: uploader-export-metadata
wchargin-source: 7ea3720bd9e84ab9cc006532b53d80393130dba4
wchargin-branch: uploader-export-subdirs
wchargin-source: f5009e29cf96dd119b769ad553c5666438f4df99
wchargin-branch: uploader-export-metadata
wchargin-source: be420ce7930146aec02da3db4766137d035e824c
Copy link
Collaborator

@bileschi bileschi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIce timestamps!

experiment.update_time
),
}
elif isinstance(experiment, str):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there actually anymore of these old servers that stream experimen_id instead of experiment proto?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question—no, there shouldn’t be. I was considering what to do about
this and thought that it was easier and a bit more conservative to keep
the code as is (this is moved out of _request_experiment_ids) than to
change list_experiments below and drop the old code path. But you’re
right that this has been deployed for a while, so it looks unlikely that
we’ll need to roll the server back. I can go ahead and make that change.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done as a pre-change in #3310, which indeed simplifies this diff by a
fair amount.

@wchargin wchargin changed the base branch from wchargin-uploader-export-subdirs to master February 29, 2020 01:25
Summary:
The `StreamExperiments` RPC response used to send only `experiment_ids`,
but now sends `experiments` with additional metadata. This server-side
change has been live since late November 2019, so we’re confident that
we won’t need to roll it back. Thus, we can drop compatibility for the
old code path in new uploader clients.

Test Plan:
Unit tests updated; verified that the `list` and `export` subcommands
still work.

wchargin-branch: uploader-require-experiment-metadata
wchargin-source: ff0abea38230373d281391f5de90eea4a1f4c01b
@wchargin wchargin changed the base branch from master to wchargin-uploader-require-experiment-metadata February 29, 2020 03:20
wchargin-branch: uploader-export-metadata
wchargin-source: 40a50bafa7c90072b0c179e8ddc5d3980394943f

# Conflicts:
#	tensorboard/uploader/exporter.py
#	tensorboard/uploader/exporter_test.py
wchargin-branch: uploader-export-metadata
wchargin-source: 40a50bafa7c90072b0c179e8ddc5d3980394943f
wchargin-branch: uploader-require-experiment-metadata
wchargin-source: b53f6cf6c7b49a4ebb34dd3314867bfbca38b4d9
wchargin-branch: uploader-export-metadata
wchargin-source: e365339e461182df80bc3ca35c9a3af9c941abe2
@bileschi bileschi requested a review from ericdnielsen March 2, 2020 15:54
@wchargin wchargin changed the base branch from wchargin-uploader-require-experiment-metadata to master March 2, 2020 18:07
wchargin added 2 commits March 2, 2020 10:07
wchargin-branch: uploader-export-metadata
wchargin-source: 3817d7485290fcd77cc4e2baaacc23676b3cb823

# Conflicts:
#	tensorboard/uploader/exporter.py
#	tensorboard/uploader/exporter_test.py
wchargin-branch: uploader-export-metadata
wchargin-source: 3817d7485290fcd77cc4e2baaacc23676b3cb823
@wchargin wchargin merged commit 5717630 into master Mar 2, 2020
@wchargin wchargin deleted the wchargin-uploader-export-metadata branch March 2, 2020 18:26
bileschi pushed a commit to bileschi/tensorboard that referenced this pull request Mar 3, 2020
Summary:
When running `tensorboard dev export`, experiment names and descriptions
(set with the `update-metadata` subcommand or the `--name` and
`--description` flags to `upload`) as well as experiment creation and
modification times are now emitted to a new `metadata.json` file in the
experiment directory.

Test Plan:
Unit tests included. Also end-to-end tested against a live server,
exporting some experiments with name/description and some without.

wchargin-branch: uploader-export-metadata
@bileschi bileschi mentioned this pull request Mar 3, 2020
nfelt pushed a commit that referenced this pull request Mar 4, 2020
Summary:
When running `tensorboard dev export`, experiment names and descriptions
(set with the `update-metadata` subcommand or the `--name` and
`--description` flags to `upload`) as well as experiment creation and
modification times are now emitted to a new `metadata.json` file in the
experiment directory.

Test Plan:
Unit tests included. Also end-to-end tested against a live server,
exporting some experiments with name/description and some without.

wchargin-branch: uploader-export-metadata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants