Skip to content

Conversation

@wchargin
Copy link
Contributor

@wchargin wchargin commented Oct 21, 2019

Summary:
By happenstance, none of our existing proto definitions need build-level
dependencies (dependencies on proto files from other build targets). But
this is no fundamental restriction. We teach tb_proto_library a deps
argument, pointing to other tb_proto_library macro invocations.

Test Plan:
Unit tests added. After building the Pip package and installing it into
a new virtualenv, we can still use tensorboard.compat.proto modules.

wchargin-branch: proto-deps

Summary:
By happenstance, none of our existing proto definitions need build-level
dependencies (dependencies on proto files from other build targets). But
this is no fundamental restriction. We teach `tb_proto_library` a `deps`
argument, pointing to other targets generated by `tb_proto_library`.

Test Plan:
Unit tests added. After building the Pip package and installing it into
a new virtualenv, we can still use `tensorboard.compat.proto` modules.

wchargin-branch: proto-deps
Copy link
Contributor

@stephanwlee stephanwlee left a comment

Choose a reason for hiding this comment

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

Tests look good but I kinda wish the test_*.proto appeared inside tensorboard/defs/test directory.

@wchargin
Copy link
Contributor Author

I kinda wish the test_*.proto appeared inside tensorboard/defs/test
directory

No such directory yet exists, and given that the tests are for a file in
the same package I think that it’s reasonable to keep them as is. For
instance, //tensorboard:program has //tensorboard:program_test, not
//tensorboard/test:program_test.

It’s testonly = True, so no risk of people accidentally depending on
them in real code without hitting a build error.

@wchargin wchargin merged commit b4e547f into master Oct 21, 2019
@wchargin wchargin deleted the wchargin-proto-deps branch October 21, 2019 23:49
wchargin added a commit to wchargin/tensorboard that referenced this pull request Oct 29, 2019
Summary:
By happenstance, none of our existing proto definitions need build-level
dependencies (dependencies on proto files from other build targets). But
this is no fundamental restriction. We teach `tb_proto_library` a `deps`
argument, pointing to other `tb_proto_library` macro invocations.

Test Plan:
Unit tests added. After building the Pip package and installing it into
a new virtualenv, we can still use `tensorboard.compat.proto` modules.

wchargin-branch: proto-deps
@wchargin wchargin mentioned this pull request Oct 29, 2019
wchargin added a commit that referenced this pull request Oct 29, 2019
Summary:
By happenstance, none of our existing proto definitions need build-level
dependencies (dependencies on proto files from other build targets). But
this is no fundamental restriction. We teach `tb_proto_library` a `deps`
argument, pointing to other `tb_proto_library` macro invocations.

Test Plan:
Unit tests added. After building the Pip package and installing it into
a new virtualenv, we can still use `tensorboard.compat.proto` modules.

wchargin-branch: proto-deps
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.

3 participants