This should be kicked off at the time someone tries to tally. The job should write the results to the securepoll_properties in JSON format. The UI does not respond to this job at the moment.
Description
Details
| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| Create job to tally elections | mediawiki/extensions/SecurePoll | master | +342 -155 | |
| Tally elections via DeferredUpdate to avoid timeout | mediawiki/extensions/SecurePoll | master | +306 -13 |
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Open | None | T277226 Make Echo notification for when tallying is done | |||
| Resolved | Tchanders | T277224 Check on TallyPage.php for tally results and display them | |||
| Resolved | • AGueyte | T277222 Create job to tally elections [M] | |||
| Resolved | DLynch | T277221 Add getJSONMethod to ElectionTallier and Tallier and make getHTMLResult use it | |||
| Duplicate | • AGueyte | T277220 Add getJSONResult to SchulzeTallier and make getHTMLResult use it | |||
| Duplicate | • TThoabala | T277219 Add getJSONResult to HistorgramRangeTallier and make getHTMLResult use it | |||
| Duplicate | • wikitrent | T277216 Add getJSONResult to PluralityTallier and make getHTMLResult use it | |||
| Resolved | phuedx | T288361 SecurePoll: Tallying an encrypted election on votewiki produces no results | |||
| Resolved | STran | T288366 Add more logging to determine what happens to jobs in the wild | |||
| Resolved | tstarling | T288711 /wiki/Special:SecurePoll/create Error: Call to a member function getId() on null |
Event Timeline
Change 673601 had a related patch set uploaded (by Tchanders; owner: Tchanders):
[mediawiki/extensions/SecurePoll@master] WIP Introduce job for tallying large encrypted elections
Change 673601 merged by jenkins-bot:
[mediawiki/extensions/SecurePoll@master] Tally elections via DeferredUpdate to avoid timeout
Note that we went with a DeferredUpdate in the end, since we've been told admins may want to tally and re-tally, so waiting for a job each time wouldn't be great.
@dom_walden I think the easiest way to test this would be via T277224, but feel free to move back to QA column if you disagree!
Revived this following the conversation in T280275: Investigate why tallying a large, encrypted election did not complete on votewiki when kicked off via the tally page [8h].
We should be able to start from this old patch set: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/SecurePoll/+/673601/2
Change 698629 had a related patch set uploaded (by AGueyte; author: AGueyte):
[mediawiki/extensions/SecurePoll@master] Create job to tally elections
Change 698629 merged by jenkins-bot:
[mediawiki/extensions/SecurePoll@master] Create job to tally elections
For greater visibility, I am moving this back into In Progress.
So far, I have not been able to successfully tally an encrypted election with 1000 votes (https://vote.wikimedia.beta.wmflabs.org/wiki/Special:SecurePoll/tally/632)
I started 4 tallying jobs one after the other, but they all appear to be stuck:
- https://vote.wikimedia.beta.wmflabs.org/wiki/Special:SecurePoll/tally/1427
- https://vote.wikimedia.beta.wmflabs.org/wiki/Special:SecurePoll/tally/1449
- https://vote.wikimedia.beta.wmflabs.org/wiki/Special:SecurePoll/tally/1471
- https://vote.wikimedia.beta.wmflabs.org/wiki/Special:SecurePoll/tally/1493
(they are all unencrypted, 5000 votes).
I started them while https://vote.wikimedia.beta.wmflabs.org/wiki/Special:SecurePoll/tally/632 still had tally-job-enqueued=1 in the DB (tally-ongoing was not set). I have deleted that row from the DB but the jobs still appear stuck.