-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Raise error for duplicate params in param group #40967 #41597
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
Conversation
vincentqb
left a comment
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.
LGTM, thanks!
facebook-github-bot
left a comment
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.
@vincentqb has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
|
@vincentqb Since I'm not a Facebook employee, is it possible to find out what caused the warning during internal tests so I can fix it. Don't know if these tests are just ordinary tests from this repo, or there are additionional tests on top of that. This PR is relatively small, so I didn't build it from source and run tests, since I'm working on Windows and building from source seems a bit tricky (probably should use Linux for this sort of development in the future). |
|
Hey, It seems like the tests for If it is just an oversight on their side. A simple way to move forward is to make the error a warning stating that this will become an error in future versions. |
|
Will do. |
💊 CI failures summary and remediationsAs of commit f1c6235 (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group. This comment has been revised 3 times. |
|
@albanD @vincentqb Replaced the error with a warning. |
facebook-github-bot
left a comment
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.
@vincentqb has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
|
@albanD @vincentqb Not sure what breaks the tests now. If it's related to third party modules, when I fetched from the master to be up to date (before making my changes), I forgot to update submodules so I can push that fully updated version of the branch if you think it can solve the issue. |
|
The errors showing up internally are now unrelated. I'm trying to land the diff again. |
|
@vincentqb merged this pull request in 4281240. |
This PR fixes an issue in #40967 where duplicate parameters across different parameter groups are not allowed, but duplicates inside the same parameter group are accepted. After this PR, both cases are treated equally and raise
ValueError.