-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
feat(core): deterministic snapshots #14037
Conversation
c6595c7
to
055bae1
Compare
// Make sure that snapshot flags don't affect runtime. | ||
#[test] | ||
fn eval_randomness() { |
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.
Can we have a test that checks that snapshots are actually predictable?
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.
I'd be happy to hard code the snapshot checksum in the tests (0205db97c85b0a06d5b0ea6b23258e6f)
We just have to have a comment on how to update it easily
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.
I'd be happy to hard code the snapshot checksum in the tests (0205db97c85b0a06d5b0ea6b23258e6f)
We just have to have a comment on how to update it easily
The snapshot/checksum will change pretty much all the time (slightest JS change in this repo) so that would be impractical IMO
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.
Probably not that often - only if you change the JS code. Many PRs would not update it.
Maybe the hick-up isn't worth it. I feel like we might discover something if we watched the checksum change.
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.
Added a hardcoded checksum test.
Weird this test doesn't work on the CI but passes locally. https://github.com/denoland/deno/runs/5737674731?check_suite_focus=true#step:32:3144 |
It's not really surprising to me that you get different checksum on CI than locally. I'm skeptical about this test being useful at all. |
Closes #10783