-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
Increase default randomness for integer generators #59
Conversation
I think 10000 is just too low. Wwe have been having flakyness on our tests with UNIQUE constraints on Integer columns because of conflicting values we this generator.
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.
The PR looks great! I just left a minor comment to make bakery more consistent with this base operations class.
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.
Thanks! The code looks great now. One last thing, can also update the changelog with a short description of this new behavior?
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.
Thanks @AdrianLC for your PR! It's great now and I'm just waiting for travis to finish the build and then I'll merge it 👍
Hey fellows! I did not do big testing rounds yet, but noticed in a couple of projects that I have to adapt the code, for example, I am generating values for some external validation that does not accept integers with the length longer than 8, which was working before with just
Which is literally duplicating our code in |
Thanks for bringing this up @amureki. I tested this patch before merging it in a few projects from the company I work for, and I couldn't notice any performance or error being raised. I didn't think about the settings thing during my review and you're 100000% right about this being a best option. We give the user the ability to configure the numbers range without the need of introducing more repeated code. I'm a +1 for this refactoring. @amureki and @anapaulagomes I'm sorry for merging this one before getting your thoughts. It's totally on me and I'll be more careful to not repeat this in the future again. @amureki would you mind opening an issue addressing this conversation so we can go on with the settings solution? |
I've added an issue here: #61 |
I think 10000 is just too low.
We have been having flakyness in our tests with UNIQUE constraints on Integer columns because of conflicting values we this generator.