Page MenuHomePhabricator

Enable SecurePoll extension and electionclerk user group on fawiki
Closed, ResolvedPublic

Description

Rationale

fawiki has been one of the frequent users of SecurePoll for local elections, having held elections for its local ArbCom-like function for six years via votewiki. However, the process of setting up elections through votewiki has been seen as burdensome both for the local users and for WMF staff, especially because they had to change the interface language of votewiki to Persian each time, and the timing of those elections were close to other elections held in English.

Consensus

In April 2025, fawiki decided that for its to restart elections for its local ArbCom-like function, it shall resort to local in-wiki elections because local implementation of SecurePoll is still not available (link). This was accepted as a last resort option and was deemed undesirable by some users. Enabling SecurePoll locally at fawiki can allow the wiki to resume in ArbCom elections sooner and more securely--i.e., without the undesirable consequences of the votes being public throughout the election period.

Related tasks

This task follows the example of T378287

Event Timeline

Novem_Linguae subscribed.

The consensus on the linked fawiki page looks good. Google translate says...

There is a consensus on conducting elections locally.

I'm removing Wikimedia-Extension-setup since I think SecurePoll is already fully installed on all wikis (shows up in fa:Special:Version, and I think in another ticket we discovered that every wiki has all 12 SecurePoll SQL tables).

Next step would probably be to write a mediawiki-config repo patch like the one recently written for enwiki. Although you should double check the details and make changes as needed. Your user groups may be different, you may not want to split up election clerks and scrutineers like we did, you may want to have a different group able to grant election clerk, etc. Someone from fawiki should make those decisions, consulting onwiki if needed, then a config repo patch can be written.

Change #1155805 had a related patch set uploaded (by Huji; author: Huji):

[operations/mediawiki-config@master] Enable electionclerk user group on fawiki

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

The change has been drafted. Discussion is ongoing on fawiki about the specifics, but so far it seems like the community is in agreement with using the same config as enwiki. I will mark the change as active for review once local consensus has been achieved.

Does the SQL table securepoll_log exist on fawiki? It didn't exist on enwiki and that surprised us when we deployed our patch and it caused a production error. (T378287, T396483). Can someone with the proper access please check that securepoll_log exists on fawiki? And maybe audit for the other 11 securepoll tables too? These should all exist:

image.png (307×218 px, 8 KB)

Does the SQL table securepoll_log exist on fawiki? It didn't exist on enwiki and that surprised us when we deployed our patch and it caused a production error. (T378287, T396483). Can someone with the proper access please check that securepoll_log exists on fawiki? And maybe audit for the other 11 securepoll tables too? These should all exist:

mysql:research@dbstore1008.eqiad.wmnet [fawiki]> show tables like 'securepoll%';
+--------------------------------+
| Tables_in_fawiki (securepoll%) |
+--------------------------------+
| securepoll_cookie_match        |
| securepoll_elections           |
| securepoll_entity              |
| securepoll_lists               |
| securepoll_msgs                |
| securepoll_options             |
| securepoll_properties          |
| securepoll_questions           |
| securepoll_strike              |
| securepoll_u4c2025_edits       |
| securepoll_ucocar2025_edits    |
| securepoll_voters              |
| securepoll_votes               |
+--------------------------------+
13 rows in set (0.001 sec)

Thanks. Looks like we are missing fawiki securepoll_log. Maybe DBA could create that table for us?

It would be nice if we could get a code review on the patch, to hopefully be able to restore the September-ish timeline for next annual election at fawp

Code review part is done since I +1'd it. It needs someone to deploy it now via a backport window: https://wikitech.wikimedia.org/wiki/Deployments

It would be nice if we could get a code review on the patch, to hopefully be able to restore the September-ish timeline for next annual election at fawp

AFAICS this just requires adding it to a backport window to get it deployed, as it's got a +1?

Gotcha. I can try to help with that.

I scheduled it for tomorrow's late afternoon backport as I'll be around doing another deploy. I don't have rights but I can at least poke around the read-only sections a bit. If anyone else wants to deploy, feel free to do so instead or if they would prefer someone with more access to robust testing wants to deploy, just let me know and I'll cancel it.

Change #1155805 merged by jenkins-bot:

[operations/mediawiki-config@master] Enable electionclerk user group on fawiki

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

Mentioned in SAL (#wikimedia-operations) [2025-09-01T13:15:03Z] <lucaswerkmeister-wmde@deploy1003> Started scap sync-world: Backport for [[gerrit:1183610|Setup tracking for CentralNotice banners experiment for WE2.1.1 (T402496)]], [[gerrit:1155805|Enable electionclerk user group on fawiki (T396347)]]

Mentioned in SAL (#wikimedia-operations) [2025-09-01T13:20:56Z] <lucaswerkmeister-wmde@deploy1003> huji, hueitan, lucaswerkmeister-wmde: Backport for [[gerrit:1183610|Setup tracking for CentralNotice banners experiment for WE2.1.1 (T402496)]], [[gerrit:1155805|Enable electionclerk user group on fawiki (T396347)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

@STran I had also scheduled it for today, in an earlier time slot. It was just merged.

@Lucas_Werkmeister_WMDE thanks for your help today. Shortly after my last message to you on the IRC, the machine on which I have the IRC client installed crashed irrecoverably. Speaking of being lucky ...

Mentioned in SAL (#wikimedia-operations) [2025-09-01T13:29:57Z] <lucaswerkmeister-wmde@deploy1003> Finished scap sync-world: Backport for [[gerrit:1183610|Setup tracking for CentralNotice banners experiment for WE2.1.1 (T402496)]], [[gerrit:1155805|Enable electionclerk user group on fawiki (T396347)]] (duration: 14m 53s)

Huji claimed this task.