We need to move all maintenance scripts to use PHP 7.2 instead of HHVM.
This can be done by simply prepending `PHP=php7.2` to all the invocations of mwscript etc in the maintenance scripts.
What needs to be done in detail:
[] Separate production maintenance scripts from wikitech ones**
[] Pick a few scripts to migrate first, notify the owners, migrate
[] Migrate the wikidata dispatcher
[] Migrate all other scripts by setting php7.2 as the preferred debian alternative
[] Revert all the modifications to the scripts above as we don't need to force
[x] Some cronjobs are shared with wikitech, which has not been switched to PHP7. To avoid blocking this task we can keep production and wikitech maint jobs separate T222900
Related to: T219135:
----
| status | puppet class name | what does it do | comment | logging ?
| ☑ | cache_warmup || not a cron, just a package and file | ?
|☐| initsitestats || uses 'foreachwiki', uses foreachwikiindblist, bash, hardcodes RUNNER=php | ?
|☐| purge_expired_userrights || uses foreachwiki | ?
|☐| translationnotifications || uses mwscript, allows overriding of PHP | ?
|☑| uploads || not a cron, just a config file for wget |?
|☐| cirrussearch || uses expanddblist, (PHP) but pipes it into mwscript | ?
|☐| pageassessments || uses foreachwikiindblist |?
|☐| purge_old_cx_drafts || uses foreachwikiindblist |?
|☐| update_flaggedrev_stats || uses mwscriptwikiset (bash), starts mwscript | ?
|☐| wikidata || PHP='hhvm -vEval.Jit=1' /usr/local/bin/mwscript ❗❗| ?
|☐| cleanup_upload_stash || uses foreachwiki | ?
|☐| pagetriage ||uses mwscript | ?
|☐| purge_securepoll ||| ?
|☐| updatequerypages ||| ?
|☐| db_lag_stats ||| ?
|☑| jobqueue_stats || https://gerrit.wikimedia.org/r/c/operations/puppet/+/528287 | ?
|☐| parsercachepurging ||| ?
|☑| readinglists || https://gerrit.wikimedia.org/r/c/operations/puppet/+/528282 |
|☐| updatequerypages ||| ?
|☐| echo_mail_batch ||| ?
|☐| purge_abusefilter ||| ?
|☐| refreshlinks ||| ?
|☐| update_special_pages ||| ?
|☐| generatecaptcha ||| ?
|☐| purge_checkuser ||| ?
|☐| refreshlinks ||| ?
|☐| updatetranslationstats.pp ||| ?