Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup: fix undeclared and incorrect BUILD deps #3641

Merged
merged 2 commits into from
May 18, 2020

Conversation

nfelt
Copy link
Contributor

@nfelt nfelt commented May 16, 2020

This fixes various issues with inaccurate BUILD deps as pre-work for a coming change to split up application.py. A number of the changes are to *_plugin_notf_test targets that have drifted out of sync with their non-no-TF equivalents, so I've factored out the first commit which just mechanically fixes all of those targets in a first pass so that they use the same deps as *_plugin_test.

The second commit adds explicit dependencies that were being silently inherited through //tensorboard/backend:application, typically related to event multiplexer or event processing.

nfelt added 2 commits May 15, 2020 19:35
Generated mechanically by the following (note that for graphs, we special case and
copy from graphs_plugin_test_lib rather than graphs_plugin_test):

buildozer 'copy deps audio_plugin_test' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/audio:audio_plugin_notf_test
buildozer 'copy deps custom_scalars_plugin_test' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/custom_scalar:custom_scalars_plugin_notf_test
buildozer 'copy deps distributions_plugin_test' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/distribution:distributions_plugin_notf_test
buildozer 'copy deps graphs_plugin_test_lib' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/graph:graphs_plugin_notf_test
buildozer 'copy deps histograms_plugin_test' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/histogram:histograms_plugin_notf_test
buildozer 'copy deps images_plugin_test' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/image:images_plugin_notf_test
buildozer 'copy deps pr_curves_plugin_test' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/pr_curve:pr_curves_plugin_notf_test
buildozer 'copy deps projector_plugin_test' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/projector:projector_plugin_notf_test
buildozer 'copy deps scalars_plugin_test' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/scalar:scalars_plugin_notf_test
buildozer 'copy deps text_plugin_test' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/text:text_plugin_notf_test
@nfelt nfelt requested a review from wchargin May 16, 2020 02:42
@nfelt nfelt merged commit 02edc8d into tensorflow:master May 18, 2020
@nfelt nfelt deleted the dep-cleanup branch May 18, 2020 17:36
caisq pushed a commit to caisq/tensorboard that referenced this pull request May 19, 2020
* update `*_plugin_notf_test` target deps to match `*_plugin_test` deps

Generated mechanically by the following (note that for graphs, we special case and
copy from graphs_plugin_test_lib rather than graphs_plugin_test):

```
buildozer 'copy deps audio_plugin_test' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/audio:audio_plugin_notf_test
buildozer 'copy deps custom_scalars_plugin_test' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/custom_scalar:custom_scalars_plugin_notf_test
buildozer 'copy deps distributions_plugin_test' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/distribution:distributions_plugin_notf_test
buildozer 'copy deps graphs_plugin_test_lib' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/graph:graphs_plugin_notf_test
buildozer 'copy deps histograms_plugin_test' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/histogram:histograms_plugin_notf_test
buildozer 'copy deps images_plugin_test' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/image:images_plugin_notf_test
buildozer 'copy deps pr_curves_plugin_test' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/pr_curve:pr_curves_plugin_notf_test
buildozer 'copy deps projector_plugin_test' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/projector:projector_plugin_notf_test
buildozer 'copy deps scalars_plugin_test' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/scalar:scalars_plugin_notf_test
buildozer 'copy deps text_plugin_test' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/text:text_plugin_notf_test
```

* add missing deps inherited transitively through application
caisq pushed a commit that referenced this pull request May 27, 2020
* update `*_plugin_notf_test` target deps to match `*_plugin_test` deps

Generated mechanically by the following (note that for graphs, we special case and
copy from graphs_plugin_test_lib rather than graphs_plugin_test):

```
buildozer 'copy deps audio_plugin_test' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/audio:audio_plugin_notf_test
buildozer 'copy deps custom_scalars_plugin_test' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/custom_scalar:custom_scalars_plugin_notf_test
buildozer 'copy deps distributions_plugin_test' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/distribution:distributions_plugin_notf_test
buildozer 'copy deps graphs_plugin_test_lib' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/graph:graphs_plugin_notf_test
buildozer 'copy deps histograms_plugin_test' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/histogram:histograms_plugin_notf_test
buildozer 'copy deps images_plugin_test' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/image:images_plugin_notf_test
buildozer 'copy deps pr_curves_plugin_test' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/pr_curve:pr_curves_plugin_notf_test
buildozer 'copy deps projector_plugin_test' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/projector:projector_plugin_notf_test
buildozer 'copy deps scalars_plugin_test' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/scalar:scalars_plugin_notf_test
buildozer 'copy deps text_plugin_test' 'add deps //tensorboard/compat:no_tensorflow' //tensorboard/plugins/text:text_plugin_notf_test
```

* add missing deps inherited transitively through application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants