Page MenuHomePhabricator

`cli/dump.php` does not accept the --votes modifier
Closed, ResolvedPublic

Description

Attempting to run extensions/SecurePoll/cli/dump.php on mwmaint1002 as (previously) described on Wikitech throws an error, since it no longer accepts --votes as a parameter:

foks@mwmaint1002:~$ mwscript extensions/SecurePoll/cli/dump.php --wiki=enwiki --votes '2018 English Wikipedia Arbitration Committee election'
Notice: Undefined variable: wmgSessionStoreHMACKey in /srv/mediawiki/wmf-config/CommonSettings.php on line 474
Unexpected option votes!

...followed by the --help dialog.

There does not appear to be a parameter one can use to get this information into a dump (possible that I'm just missing it, but it's not addressed in the script's --help).

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

I've documented a workaround on the SecurePoll page (just in case anyone interested in the ongoing enwiki ArbCom elections sees this and is worried).

Reedy renamed this task from `extensions/SecurePoll/cli/dump.php` does not accept the --votes modifier to `cli/dump.php` does not accept the --votes modifier.Dec 6 2019, 1:14 AM

Change 554983 had a related patch set uploaded (by Reedy; owner: Reedy):
[mediawiki/extensions/SecurePoll@master] Call addOption in constructor, not getOption

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

Change 554984 had a related patch set uploaded (by Reedy; owner: Reedy):
[mediawiki/extensions/SecurePoll@wmf/1.35.0-wmf.5] Call addOption in constructor, not getOption

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

Change 554985 had a related patch set uploaded (by Reedy; owner: Reedy):
[mediawiki/extensions/SecurePoll@wmf/1.35.0-wmf.8] Call addOption in constructor, not getOption

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

Change 554984 merged by jenkins-bot:
[mediawiki/extensions/SecurePoll@wmf/1.35.0-wmf.5] Call addOption in constructor, not getOption

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

Mentioned in SAL (#wikimedia-operations) [2019-12-06T01:25:25Z] <reedy@deploy1001> Synchronized php-1.35.0-wmf.5/extensions/SecurePoll/cli/dump.php: T239968 (duration: 01m 01s)

Change 554985 merged by jenkins-bot:
[mediawiki/extensions/SecurePoll@wmf/1.35.0-wmf.8] Call addOption in constructor, not getOption

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

Mentioned in SAL (#wikimedia-operations) [2019-12-06T01:34:48Z] <reedy@deploy1001> Synchronized php-1.35.0-wmf.5/extensions/SecurePoll/cli/dump.php: T239968 (duration: 01m 00s)

Mentioned in SAL (#wikimedia-operations) [2019-12-06T02:12:30Z] <reedy@deploy1001> Synchronized php-1.35.0-wmf.8/extensions/SecurePoll/cli/dump.php: T239968 (duration: 01m 04s)

Reedy claimed this task.
Reedy subscribed.

Still needs merging on master

And for posterity...

mwscript extensions/SecurePoll/cli/dump.php --wiki=enwiki --votes '2018 English Wikipedia Arbitration Committee election'

needs to be

mwscript extensions/SecurePoll/cli/dump.php --wiki=votewiki --votes '2018 English Wikipedia Arbitration Committee election'

to have the desire effect ;D

Still needs merging on master

And for posterity...

mwscript extensions/SecurePoll/cli/dump.php --wiki=enwiki --votes '2018 English Wikipedia Arbitration Committee election'

needs to be

mwscript extensions/SecurePoll/cli/dump.php --wiki=votewiki --votes '2018 English Wikipedia Arbitration Committee election'

to have the desire effect ;D

... Woops. thanks!

Change 554983 merged by jenkins-bot:
[mediawiki/extensions/SecurePoll@master] Call addOption in constructor, not getOption

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