Skip to content
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

all: migrate to math/rand/v2 #801

Merged
merged 4 commits into from
Mar 25, 2025
Merged

all: migrate to math/rand/v2 #801

merged 4 commits into from
Mar 25, 2025

Conversation

Juneezee
Copy link
Contributor

Closes #797.

Please take a look.

Closes #797.

Signed-off-by: Eng Zer Jun <[email protected]>
@Juneezee Juneezee marked this pull request as draft March 23, 2025 16:39
AMD64 and ARM64 seems to have small difference in float64 calculations.

Reference: golang/go#36536
Signed-off-by: Eng Zer Jun <[email protected]>
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.26%. Comparing base (c96920b) to head (20fe218).
Report is 100 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #801      +/-   ##
==========================================
+ Coverage   70.78%   72.26%   +1.48%     
==========================================
  Files          60       59       -1     
  Lines        5291     7353    +2062     
==========================================
+ Hits         3745     5314    +1569     
- Misses       1350     1852     +502     
+ Partials      196      187       -9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor Author

@Juneezee Juneezee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For commit 20fe218, although the differences between the AMD64 and ARM64 golden images for the Contour and Filled Line tests are not distinguishable to the human eye, there appears to be a slight difference in floating-point calculations between AMD64 and ARM64.

golang/go#36536

@Juneezee Juneezee marked this pull request as ready for review March 23, 2025 17:20
@sbinet sbinet requested a review from kortschak March 23, 2025 18:21
sbinet
sbinet previously approved these changes Mar 23, 2025
Reference: #801 (comment)
Signed-off-by: Eng Zer Jun <[email protected]>
sbinet
sbinet previously approved these changes Mar 24, 2025
Copy link
Member

@sbinet sbinet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: Eng Zer Jun <[email protected]>
Copy link
Member

@kortschak kortschak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@kortschak kortschak merged commit 6cdb326 into gonum:master Mar 25, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace golang.org/x/exp/rand with math/rand/v2
4 participants