-
-
Notifications
You must be signed in to change notification settings - Fork 944
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
Return values differ between package version #1464
Comments
It's not a bug, but seems we are missing documentation about that The deterministic can only be within one exact version and change when you upgrade to a different version |
Thank you, @Shinigami92 , worth to know, will pin version in my project then :) |
I think I will write a new page regarding reproducibility of our results and other related suggestions/workarounds for this. |
@Shinigami92 would be nice to have it in the changelog. I used seeds with faker-js/faker and relied on a non-changing values because i saw this project had tests to ensure them. The tests go removed with #1653 it seems. |
No, we still have the tests. Due to their similar nature, we simplified them in a helper utility. Line 14 in 4ce8e98
You still can. However, you need to be aware that the values might change if you update faker because we might change the impl or locale entries to address issues such as #1633. We have plans for explicitly recording and replaying results, but those wont make it into v8.x for now. As that either requires test runner integration/support or manual configuration to ensure max resillience against changes in user tests (swapping the first and last name generation, shouldnt break the test). As a workaround, you can either not update faker or update faker in a separate commit and update the fixed values if neccessary (should rarely happen). |
Oh 🦆 , so no changelog entry is needed , if this never worked and was never supposed to work. |
i think this can be closed now, as there is a note about this in new Reproducible Results section about this |
Pre-Checks
Describe the bug
Up to version 7.4 if provided same seed, address and other values generated were predictable, always same, since version 7.5 they are different. See example:
Minimal reproduction code
Additional Context
No response
Environment Info
Which module system do you use?
Used Package Manager
npm
The text was updated successfully, but these errors were encountered: