Fixing the analytics side-channel for curriculum learning.#5586
Merged
Conversation
hvpeteet
approved these changes
Oct 13, 2021
Comment on lines
+36
to
+38
| def test_sanitize_run_options(): | ||
| run_options = RunOptions.from_dict(yaml.safe_load(test_curriculum_config_yaml)) | ||
| TrainingAnalyticsSideChannel._sanitize_run_options(run_options) |
Contributor
There was a problem hiding this comment.
Love more tests, while you are here would you mind adding a couple of checks to see that the fields are actually hashed correctly. Maybe something like:
Suggested change
| def test_sanitize_run_options(): | |
| run_options = RunOptions.from_dict(yaml.safe_load(test_curriculum_config_yaml)) | |
| TrainingAnalyticsSideChannel._sanitize_run_options(run_options) | |
| def test_sanitize_run_options(): | |
| run_options = RunOptions.from_dict(yaml.safe_load(test_curriculum_config_yaml)) | |
| sanitized = TrainingAnalyticsSideChannel._sanitize_run_options(run_options) | |
| assert 'param_1' not in sanitized['environment_parameters'] | |
| assert TrainingAnalyticsSideChannel.hash('param_1') in sanitized['environment_parameters'] |
(I haven't checked to see if this passes)
miguelalonsojr
approved these changes
Oct 14, 2021
mkmibrahim
approved these changes
Oct 15, 2021
maryamhonari
left a comment
Contributor
There was a problem hiding this comment.
Looks good, please add a line in this PR description and changelog under bugfixes for posterity.
Co-authored-by: Maryam Honari <honari.m94@gmail.com>
maryamhonari
added a commit
that referenced
this pull request
Nov 4, 2021
* Fixing the analytics side-channel for curriculum learning. * Made a more robust test. * Update the changelog. * Update com.unity.ml-agents/CHANGELOG.md Co-authored-by: Maryam Honari <honari.m94@gmail.com> Co-authored-by: Maryam Honari <honari.m94@gmail.com>
Merged
10 tasks
maryamhonari
added a commit
that referenced
this pull request
Nov 4, 2021
…5512) harden analytics (#5604) * Harden user PII protection logic and extend TrainingAnalytics to expose detailed configuration parameters. (#5512) * Hash128 is not a cryptographic hash, replace with HMAC-SHA256. * Extend TrainingAnalytics side channel to expose configuration details * Change member function scopes and hash demo_paths * Extract tbiEvent hashing method and add test coverage * Fixing the analytics side-channel for curriculum learning. (#5586) * Fixing the analytics side-channel for curriculum learning. * Made a more robust test. * Update the changelog. * Update com.unity.ml-agents/CHANGELOG.md Co-authored-by: Maryam Honari <honari.m94@gmail.com> Co-authored-by: Maryam Honari <honari.m94@gmail.com> * update CHANGELOG Co-authored-by: Jason Bowman <jasonb@unity3d.com>
maryamhonari
added a commit
that referenced
this pull request
Nov 4, 2021
* update package version from 2.0.0 to 2.0.1 * Update README.md with new survey link(#5500) (#5585) Co-authored-by: jmercado1985 <75792879+jmercado1985@users.noreply.github.com> * [Cherry-pick for 2.0.1 verified patch] default analytics channel (#5511) (#5584) * update changelog from #5511 * set gym=0.20.0 #5540, update changelog * Cap cattrs version for now(#5397) * clean up Co-authored-by: Vincent-Pierre BERGES <vincentpierre@unity3d.com> Co-authored-by: Ruo-Ping Dong <ruoping.dong@unity3d.com> * Cherry picking #5283 and #5519 into 2.0.1-verified-patch to fix gRPC for mac m1 (MLA 2259) (#5602) * Only update the native library and the c# calls that need to be made to clean up channels. (#5283) * Fix Mac backcompat test (#5519) Co-authored-by: Chris Goy <christopherg@unity3d.com> * [Cherry-pick for 2.0.1 verified patch]Harden user PII in analytics (#5512) harden analytics (#5604) * Harden user PII protection logic and extend TrainingAnalytics to expose detailed configuration parameters. (#5512) * Hash128 is not a cryptographic hash, replace with HMAC-SHA256. * Extend TrainingAnalytics side channel to expose configuration details * Change member function scopes and hash demo_paths * Extract tbiEvent hashing method and add test coverage * Fixing the analytics side-channel for curriculum learning. (#5586) * Fixing the analytics side-channel for curriculum learning. * Made a more robust test. * Update the changelog. * Update com.unity.ml-agents/CHANGELOG.md Co-authored-by: Maryam Honari <honari.m94@gmail.com> Co-authored-by: Maryam Honari <honari.m94@gmail.com> * update CHANGELOG Co-authored-by: Jason Bowman <jasonb@unity3d.com> Co-authored-by: jmercado1985 <75792879+jmercado1985@users.noreply.github.com> Co-authored-by: Vincent-Pierre BERGES <vincentpierre@unity3d.com> Co-authored-by: Ruo-Ping Dong <ruoping.dong@unity3d.com> Co-authored-by: Jason Rupert <92821409+jrupert-unity@users.noreply.github.com> Co-authored-by: Chris Goy <christopherg@unity3d.com> Co-authored-by: Jason Bowman <jasonb@unity3d.com>
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Proposed change(s)
Fixing the bug where curriculum learning would crash because the of the incorrect run_options parsing.
Types of change(s)
Checklist
Other comments