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

test: Use deterministic RNG for tests #2694

Merged
merged 10 commits into from
Nov 20, 2023

Conversation

andiwand
Copy link
Contributor

@andiwand andiwand commented Nov 17, 2023

apparently otherwise the random engine can be different on different platforms which I observed in #2625 with macos

at the same time I hardcoded the type for the std::uniform_int_distribution. apparently this can also make a difference for the random value

@andiwand andiwand added this to the next milestone Nov 17, 2023
@github-actions github-actions bot added the Component - Core Affects the Core module label Nov 17, 2023
paulgessinger
paulgessinger previously approved these changes Nov 17, 2023
@andiwand
Copy link
Contributor Author

of course this fails a unit test 😄

Copy link

codecov bot commented Nov 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (eae867a) 49.56% compared to head (568b353) 49.56%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2694   +/-   ##
=======================================
  Coverage   49.56%   49.56%           
=======================================
  Files         474      474           
  Lines       26928    26928           
  Branches    12422    12422           
=======================================
  Hits        13348    13348           
  Misses       4751     4751           
  Partials     8829     8829           

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

AJPfleger
AJPfleger previously approved these changes Nov 18, 2023
@andiwand andiwand added 🛑 blocked This item is blocked by another item and removed automerge labels Nov 18, 2023
@acts-policybot acts-policybot bot dismissed AJPfleger’s stale review November 18, 2023 13:36

Invalidated by push of caf87cb

@github-actions github-actions bot added Component - Examples Affects the Examples module Vertexing labels Nov 18, 2023
@andiwand andiwand removed the 🛑 blocked This item is blocked by another item label Nov 20, 2023
AJPfleger
AJPfleger previously approved these changes Nov 20, 2023
Copy link
Contributor

@AJPfleger AJPfleger left a comment

Choose a reason for hiding this comment

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

lgtm

@acts-policybot acts-policybot bot dismissed AJPfleger’s stale review November 20, 2023 10:40

Invalidated by push of e5fe692

@github-actions github-actions bot added the Component - Plugins Affects one or more Plugins label Nov 20, 2023
@andiwand andiwand changed the title refactor: Hardcode boost test random engine test: Use deterministic RNG for tests Nov 20, 2023
@kodiakhq kodiakhq bot removed the automerge label Nov 20, 2023
Copy link
Contributor

kodiakhq bot commented Nov 20, 2023

This PR currently has a merge conflict. Please resolve this and then re-add the automerge label.

@kodiakhq kodiakhq bot merged commit 1d8d3ec into acts-project:main Nov 20, 2023
53 checks passed
@andiwand andiwand deleted the hardcode-boost-test-random-engine branch November 20, 2023 13:30
@acts-project-service
Copy link
Collaborator

@acts-project-service acts-project-service added the Fails Athena tests This PR causes a failure in the Athena tests label Nov 20, 2023
LaraCalic added a commit to LaraCalic/acts that referenced this pull request Dec 2, 2023
apparently otherwise the random engine can be different on different platforms which I observed in acts-project#2625 with macos

at the same time I hardcoded the type for the `std::uniform_int_distribution`. apparently this can also make a difference for the random value
@paulgessinger paulgessinger modified the milestones: next, v31.1.0 Dec 7, 2023
LaraCalic added a commit to LaraCalic/acts that referenced this pull request Dec 11, 2023
apparently otherwise the random engine can be different on different platforms which I observed in acts-project#2625 with macos

at the same time I hardcoded the type for the `std::uniform_int_distribution`. apparently this can also make a difference for the random value
LaraCalic added a commit to LaraCalic/acts that referenced this pull request Dec 18, 2023
apparently otherwise the random engine can be different on different platforms which I observed in acts-project#2625 with macos

at the same time I hardcoded the type for the `std::uniform_int_distribution`. apparently this can also make a difference for the random value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clustering Component - Core Affects the Core module Component - Examples Affects the Examples module Component - Fatras Affects the Fatras module Component - Plugins Affects one or more Plugins Fails Athena tests This PR causes a failure in the Athena tests Vertexing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants