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

Add seed and freeze test to loudly detect when breaking changes are made #378

Merged
merged 2 commits into from
Jan 10, 2022

Conversation

InnovativeInventor
Copy link
Member

Some time ago, I flagged a few historical commits that unintentionally produce different chain outputs (with the same seed, etc). This is concerning (since it could mean that correctness issues were introduced in those commits). This PR adds a "seed and freeze" test to loudly detect such changes.

@InnovativeInventor
Copy link
Member Author

If anyone's watching this PR and is curious about the list of commits that changed GerryChain outputs (and were flagged for careful correctness review), here it is:

456eddc
8e8a73f
e2ec301
77b6ede
b7f0289
dc2896f
01b8801

Note that a fair number of these commits appear to be correct. However, they're totally worth a second look.

@codecov-commenter
Copy link

Codecov Report

Merging #378 (967ba84) into main (832ad0c) will increase coverage by 0.30%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #378      +/-   ##
==========================================
+ Coverage   87.89%   88.19%   +0.30%     
==========================================
  Files          37       37              
  Lines        1660     1660              
==========================================
+ Hits         1459     1464       +5     
+ Misses        201      196       -5     
Impacted Files Coverage Δ
gerrychain/tree.py 76.61% <0.00%> (-0.41%) ⬇️
gerrychain/graph/graph.py 92.03% <0.00%> (+5.30%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 832ad0c...967ba84. Read the comment docs.

@pjrule pjrule merged commit dc0ceac into main Jan 10, 2022
@InnovativeInventor InnovativeInventor deleted the seed-and-freeze branch May 24, 2022 16:07
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.

3 participants