Anti-Harassment Tools/SecurePoll Improvements/Test Results/math-stackexchange-com-2017-election-results

Comments
SecurePoll and OpaVote agree on elected candidates.

Election: https://math.stackexchange.com/election/6

Election setup

 * Candidates: 9
 * Seats: 2
 * Votes: 2161

Actual results latest
SecurePoll tally page (patch 28):

Elected
Election for 2 seats with 8 candidates. Total 2,068 votes.


 * 1) "Candidate 3"
 * 2) "Candidate 8"

Rounds table
(Results from 14:46, 29 July 2021)

Actual results archive
Patch 17: Output from SecurePoll: array(3) { ["elected"]=> array(2) { [0]=>   int(3) [1]=>   int(8) } ["eliminated"]=> array(0) { } ["rounds"]=> array(2) { [0]=>   array(8) { ["round"]=> int(1) ["surplus"]=> int(0) ["rankings"]=> array(8) { [1]=>       array(3) { ["votes"]=> int(0) ["earned"]=> int(27) ["total"]=> int(27) }       [2]=>        array(3) { ["votes"]=> int(0) ["earned"]=> int(147) ["total"]=> int(147) }       [3]=>        array(3) { ["votes"]=> int(0) ["earned"]=> int(712) ["total"]=> int(712) }       [4]=>        array(3) { ["votes"]=> int(0) ["earned"]=> int(267) ["total"]=> int(267) }       [5]=>        array(3) { ["votes"]=> int(0) ["earned"]=> int(111) ["total"]=> int(111) }       [6]=>        array(3) { ["votes"]=> int(0) ["earned"]=> int(33) ["total"]=> int(33) }       [7]=>        array(3) { ["votes"]=> int(0) ["earned"]=> int(38) ["total"]=> int(38) }       [8]=>        array(3) { ["votes"]=> int(0) ["earned"]=> int(733) ["total"]=> int(733) }     }      ["totalVotes"]=> int(2068) ["keepFactors"]=> array(8) { [1]=>       int(1) [2]=>       int(1) [3]=>       int(1) [4]=>       int(1) [5]=>       int(1) [6]=>       int(1) [7]=>       int(1) [8]=>       int(1) }     ["quota"]=> int(690) ["elected"]=> array(0) { }     ["eliminated"]=> array(0) { }   }    [1]=>    array(8) { ["round"]=> int(2) ["elected"]=> array(2) { [0]=>       int(3) [1]=>       int(8) }     ["eliminated"]=> array(0) { }     ["surplus"]=> int(65) ["keepFactors"]=> array(8) { [1]=>       int(1) [2]=>       int(1) [3]=>       int(1) [4]=>       int(1) [5]=>       int(1) [6]=>       int(1) [7]=>       int(1) [8]=>       int(1) }     ["quota"]=> int(690) ["rankings"]=> array(8) { [1]=>       array(3) { ["votes"]=> int(27) ["earned"]=> int(0) ["total"]=> int(27) }       [2]=>        array(3) { ["votes"]=> int(147) ["earned"]=> int(0) ["total"]=> int(147) }       [3]=>        array(3) { ["votes"]=> int(712) ["earned"]=> int(0) ["total"]=> int(712) }       [4]=>        array(3) { ["votes"]=> int(267) ["earned"]=> int(0) ["total"]=> int(267) }       [5]=>        array(3) { ["votes"]=> int(111) ["earned"]=> int(0) ["total"]=> int(111) }       [6]=>        array(3) { ["votes"]=> int(33) ["earned"]=> int(0) ["total"]=> int(33) }       [7]=>        array(3) { ["votes"]=> int(38) ["earned"]=> int(0) ["total"]=> int(38) }       [8]=>        array(3) { ["votes"]=> int(733) ["earned"]=> int(0) ["total"]=> int(733) }     }      ["totalVotes"]=> int(2068) } } }

Expected
Output from OpaVote:
 * https://www.opavote.com/results/4828042769727488
 * https://math.stackexchange.com/election/6

Files

 * blt: https://math.stackexchange.com/election/download-result/6
 * php:

Environment

 * Where you tested: local docker using phpunit
 * Latest version of SecurePoll tested:
 * commit 010a55df713367194b6772a07013cb667c333072 (patch 28 https://gerrit.wikimedia.org/r/c/mediawiki/extensions/SecurePoll/+/704454/)
 * commit dedf92f6aa5d2a1c4ffe7935f1c695623587c26d (patch 18 https://gerrit.wikimedia.org/r/c/mediawiki/extensions/SecurePoll/+/704210/)