-
Notifications
You must be signed in to change notification settings - Fork 1.7k
uploader: only send data for allowed plugins #3300
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
f7b79df
uploader: add `PluginControl` handshake protos
wchargin bcfb575
uploader: only send data for allowed plugins
wchargin cb43d38
[update patch]
wchargin dd9c64b
[update patch]
wchargin 93a21aa
[update diffbase]
wchargin 548d55c
[update diffbase]
wchargin 7265308
[update patch]
wchargin ad99515
[update diffbase]
wchargin 33b5b1d
[update diffbase]
wchargin 39ee207
uploader: factor test defaults into helpers
wchargin 20e80df
[update diffbase]
wchargin 5147a5e
[update patch]
wchargin b262346
[update diffbase]
wchargin 791165f
[update patch]
wchargin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This mechanism of detecting 'first time' is a little entangled hard to follow. How about maintaining a collection of
plugin_names_seenand testingif plugin_name in plugin_names_seen:?Related, the 'first time' gets reset for every
_upload_once(). Is that desirable, or should we maintain a singletonplugin_names_seen(or similar) that persists over cycles? In this case you'd change the error message too, of course, so it's not time-series-specific but just appears once per plugin.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We warn once per time series, not once per plugin. So rather than a
collection of “plugin names seen”, we maintain a collection of “time
series seen”—but this is just the key set of
self._tag_metadata.Hmm; I’m not able to reproduce that? We create a
_BatchedRequestSenderonly once, at
create_experimenttime, and the “already seen?” sourceof truth is on its
self._tag_metadatainstance attribute, which isnever cleared.
It may help to look at the log output to address both questions. The
output looks like:
Note that each time series (run-tag combination) appears only once, even
though we process the some time series in multiple upload cycles. For
instance, the second upload cycle here doesn’t print any “Skipping…”
messages, and the messages in the third upload cycle are for new time
series (
conv=1vs.conv=2).