-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Update rand
with C++11 random generators in tests module
#3867
Update rand
with C++11 random generators in tests module
#3867
Conversation
@kunaltyagi Before I go ahead and implement this for the remaining modules. Is the any problem or changes needed in the current implementation? |
Word of advice for this PR: split changes which make unit test fail into isolated PRs. They usually involve a lot of discussion and considerable changes on their own. |
So do you mean split into separate PR's based on modules? |
Not necessarily. Make all the changes that you can, which do not require you to touch the unit tests. We merge those first. Then we open a PR for each change which requires modifying the unit tests, because those tend to be noisy PRs. They usually involve digging around the reason the unit test is failing, occasionally rewriting unit tests from scratch to actually do sane testing. As an example have a look at how I split the commits for the following PR #3862. I made all the changes I could until the point I knew it would break the unit tests. The followup commits are to address the broken unit test. Everything is in a single PR because I was only touching a single class. |
Rebase and push to trigger another CI run. As per Ubuntu, there seems to be no issues, but let's see with the latest master once again The API seems awkward, but that's upto another PR to make it better (or replace/remove it) (discussion issue created) Usage is correct and I'd recommend moving forwards, specially with the cloud generators. The API update seems the only reason I'd consider for not moving ahead. |
1009521
to
29a8eb7
Compare
Got it thanks 👍 . Will keep this in mind in the future and will modify this PR accordingly.
Done
Yeah will defer this until API update no point doing a refactor again if there is some major API change and making some modifications to the API will definitely make it cleaner. |
Marking this as stale due to 30 days of inactivity. Commenting or adding a new commit to the pull request will revert this. |
Closing this will pick it up again once we have the new random interface as being discussed #3996 |
Solves
rand
uses in tests module as mentioned in #3781Modules left in tests: