Page MenuHomePhabricator

SecurePoll: Tallying an encrypted election on votewiki produces no results
Closed, ResolvedPublic

Description

What's the problem?

While doing a test run for the upcoming Board election, we created "JS - Testing with encryption" election on votewiki. The election is encrypted, as the name says. It has 9 votes.
The Tally for the election did not appear to have finished (even ~an hour later). Hitting the Tally button shows:

image.png (518×2 px, 97 KB)

Expected behavior:

Tally completes rather quickly given the low number of votes.

Observed behavior:

Tally did not apparently finish.

Things to note:
  • showJobs.php did not list any running jobs for SecurePoll when it was tried ~10 mins after kicking off the tally job

Event Timeline

Niharika triaged this task as Medium priority.
Niharika raised the priority of this task from Medium to High.Aug 6 2021, 5:32 PM

For comparison, this election is also encrypted but only has 1 vote, and it finished almost immediately: https://vote.wikimedia.org/wiki/Special:SecurePoll/tally/1055

Change 711177 had a related patch set uploaded (by Phuedx; author: Phuedx):

[mediawiki/extensions/SecurePoll@master] tallyElectionJob: Catch and log exceptions

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

Change 711177 merged by jenkins-bot:

[mediawiki/extensions/SecurePoll@master] tallyElectionJob: Catch and log exceptions

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

Change 713361 had a related patch set uploaded (by Phuedx; author: Phuedx):

[mediawiki/extensions/SecurePoll@wmf/1.37.0-wmf.18] tallyElectionJob: Catch and log exceptions

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

Change 713361 merged by jenkins-bot:

[mediawiki/extensions/SecurePoll@wmf/1.37.0-wmf.18] tallyElectionJob: Catch and log exceptions

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

Mentioned in SAL (#wikimedia-operations) [2021-08-17T11:29:42Z] <phuedx@deploy1002> Synchronized php-1.37.0-wmf.18/extensions/SecurePoll/includes/Jobs/TallyElectionJob.php: Backport: [[gerrit:713361|tallyElectionJob: Catch and log exceptions (T288361)]] (duration: 00m 58s)

If we are not going to be doing UI tallying in the future, we can safely close this ticket.

If we are, we can reopen this ticket or raise another.

If we are not going to be doing UI tallying in the future, we can safely close this ticket.

If we are, we can reopen this ticket or raise another.

We do want to have UI tallying. We talked in the team meeting today and said we will test this more with T287976: [M] Add UI fallbacks for failed tally jobs and investigate the issues that make tallying unreliable at the moment.
I'll close this ticket since this specific issue has not been reproducible.