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:
----
[x] cache_warmup (not a cron, just a package and file)
[] initsite| stats (uses 'foreachwiki', uses foreachwikiindblist, bash, hardcodes RUNNER=php)us | puppet class name | what does it do | comment | logging ?
[] purge_expired_userrights (uses foreachwiki)| ☑ | cache_warmup || not a cron, just a package and file | ?
[] translationnotifications (|☐| initsitestats || uses 'foreachwiki', uses mwscriptforeachwikiindblist, allows overriding of PHP)bash, hardcodes RUNNER=php | ?
[x] uploads (not a cron, just a config file for wget)|☐| purge_expired_userrights || uses foreachwiki | ?
[] cirrussearch (uses expanddblist, (PHP) but pipes it into mwscript)|☐| translationnotifications || uses mwscript, allows overriding of PHP | ?
[] pageassessments (uses foreachwikiindblist)|☑| uploads || not a cron, just a config file for wget |?
[] purge_old_cx_drafts (uses foreachwikiindblist)|☐| cirrussearch || uses expanddblist, (PHP) but pipes it into mwscript | ?
[] update_flaggedrev_stats (|☐| pageassessments || uses mwscriptforeachwikiset (bash), starts mwscript)indblist |?
[] wikidata (PHP='hhvm -vEval.Jit=1' /usr/local/bin/mwscript !)|☐| purge_old_cx_drafts || uses foreachwikiindblist |?
[] cleanup_upload|☐| update_flaggedrev_stash (ts || uses foreachwiki)mwscriptwikiset (bash), starts mwscript | ?
[] pagetriage (uses |☐| wikidata || PHP='hhvm -vEval.Jit=1' /usr/local/bin/mwscript) ❗❗| ?
[] purge_securepoll|☐| cleanup_upload_stash || uses foreachwiki | ?
[] updatequerypages|☐| pagetriage ||uses mwscript | ?
[] db_lag_stats|☐| purge_securepoll ||| ?
[x] jobqueue_stats (https://gerrit.wikimedia.org/r/c/operations/puppet/+/528287)|☐| updatequerypages ||| ?
[] parsercachepurging|☐| db_lag_stats ||| ?
[x] readinglists (|☑| jobqueue_stats || https://gerrit.wikimedia.org/r/c/operations/puppet/+/528282)7 | ?
[] updatequerypages|☐| parsercachepurging ||| ?
[] echo_mail_batch|☑| readinglists || https://gerrit.wikimedia.org/r/c/operations/puppet/+/528282 |
[] purge_abusefilter|☐| updatequerypages ||| ?
[] refreshlinks
[] update_special_pages|☐| echo_mail_batch ||| ?
[] generatecaptcha
[] purge_checkuser|☐| purge_abusefilter ||| ?
|☐| refreshlinks ||| ?
[] refreshlinks|☐| update_special_pages ||| ?
[] updatetranslationstats.pp|☐| generatecaptcha ||| ?
|☐| purge_checkuser ||| ?
|☐| refreshlinks ||| ?
|☐| updatetranslationstats.pp ||| ?