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
consolidate all duplicate CVRs #708
Conversation
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.
Placing a hold on this until we get the parent branch merged. Will review once that's done.
977a128
to
15d2534
Compare
15d2534
to
a147699
Compare
a147699
to
7080eaf
Compare
940d45d
to
b441466
Compare
# Conflicts: # src/main/java/network/brightspots/rcv/TabulatorSession.java # src/test/java/network/brightspots/rcv/TabulatorTests.java
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.
This is great clean-up! Just a few questions before merging.
.../rcv/test_data/minneapolis_multi_seat_threshold/minneapolis_multi_seat_threshold_config.json
Outdated
Show resolved
Hide resolved
.../resources/network/brightspots/rcv/test_data/skip_to_next_test/skip_to_next_test_config.json
Outdated
Show resolved
Hide resolved
...ots/rcv/test_data/test_set_2_overvote_skip_to_next/test_set_2_overvote_skip_to_next_cvr.xlsx
Outdated
Show resolved
Hide resolved
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.
Same question on this... wondering why this was around if it apparently wasn't being used?
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.
Response to all four comments:
The two unused files were duplicates, which is why the two unshared CVRs were moved to _shared
.
In particular, ../_shared/skipped_ranking_cvr.xlsx
== test_set_2_overvote_skip_to_next_cvr.xlsx
and
../_shared/minneapolis_multi_seat_cvr.xlsx
== ../minneapolis_multi_seat_threshold/minneapolis_multi_seat_cvr.xlsx
.
It seems as though the XLSX CVRs are indeed never used -- they're not related to the CDF CVRs in any way I can discern. Of particular note, the candidate names in the XLSX are not the same as what's in the config.
To summarize:
- The files in
_shared
were duplicate files, but - One of the duplicates was never used, so
- I've moved the files out of
_shared
and left their corresponding duplicates deleted.
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.
Good deal, thanks for examining this so closely!
b8270de
to
80ba4d8
Compare
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.
Awesome job! Left a few last nit comments, but pre-approving.
@@ -10,7 +10,7 @@ | |||
"generateCdfJson" : false | |||
}, | |||
"cvrFileSources" : [ { | |||
"filePath" : "skip_to_next_test_cvr.xlsx", | |||
"filePath" : "skipped_ranking_cvr.xlsx", |
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.
Nit: Is it worth renaming this one? Have a slight preference to just revert these two files so the name stays aligned with the directory / config file naming.
@@ -11,7 +11,7 @@ | |||
}, | |||
"cvrFileSources": [ | |||
{ | |||
"filePath" : "minneapolis_multi_seat_threshold_cvr.xlsx", | |||
"filePath" : "minneapolis_multi_seat_cvr.xlsx", |
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.
Nit: same question here -- can we just revert this and the file to stay aligned with directory name?
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.
Good deal, thanks for examining this so closely!
closes #692
Note: one of the original goals was to specifically get rid of the duplicate files in #650, but I opted to skip that: while most files are the same, one test removes the Precinct file, and the other doesn't, meaning the test sets aren't identical. I'm sure we could solve that with some added complexity, but I'm not sure that complexity is worth it.