Page MenuHomePhabricator

Create job to tally elections [M]
Closed, ResolvedPublic5 Estimated Story Points

Description

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.

Related Objects

Event Timeline

STran set the point value for this task to 5.Mar 11 2021, 7:49 PM

Change 673601 had a related patch set uploaded (by Tchanders; owner: Tchanders):
[mediawiki/extensions/SecurePoll@master] WIP Introduce job for tallying large encrypted elections

https://gerrit.wikimedia.org/r/673601

Change 673601 merged by jenkins-bot:
[mediawiki/extensions/SecurePoll@master] Tally elections via DeferredUpdate to avoid timeout

https://gerrit.wikimedia.org/r/673601

Tchanders added a subscriber: dom_walden.

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!

Niharika triaged this task as Medium priority.
ARamirez_WMF renamed this task from Create job to tally elections to Create job to tally elections [M].May 26 2021, 4:27 PM
Tchanders subscribed.

Change 698629 had a related patch set uploaded (by AGueyte; author: AGueyte):

[mediawiki/extensions/SecurePoll@master] Create job to tally elections

https://gerrit.wikimedia.org/r/698629

Change 698629 merged by jenkins-bot:

[mediawiki/extensions/SecurePoll@master] Create job to tally elections

https://gerrit.wikimedia.org/r/698629

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:

(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.

I started 4 tallying jobs one after the other, but they all appear to be stuck:

(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.

@dom_walden do they also fail to tally if we try to tally them from the cli?

I started 4 tallying jobs one after the other, but they all appear to be stuck:

(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.

@dom_walden do they also fail to tally if we try to tally them from the cli?

@Niharika They all successfully tally if I do it from the CLI.