Investigate installing php5.3 on trusty and/or debian instance
Closed, DeclinedPublic

Description

This would allow us to run npm (runs on trusty) and composer-test (requires 5.3) in the same job. Also we need to keep supporting 5.3 in CI for supported MW releases, but may want to move everything to trusty before those releases are unsupported.

Legoktm created this task.Jun 25 2015, 6:47 AM
Legoktm updated the task description. (Show Details)
Legoktm raised the priority of this task from to Needs Triage.
Legoktm added subscribers: Legoktm, Krinkle.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 25 2015, 6:47 AM
hashar added a subscriber: hashar.Jun 25 2015, 12:22 PM

To switch between PHP versions, we could go with https://github.com/phpenv/phpenv (pointed by Bryan Davis on T75356#834917 and T54303#580327).

I am not a fan of merging composer and npm jobs. That defeat the parallelization and would cause the test report to be slightly longer than it is currently.

hashar triaged this task as Normal priority.Jun 29 2015, 9:55 AM
hashar set Security to None.
hashar moved this task from Untriaged to Backlog on the Continuous-Integration-Infrastructure board.
hashar raised the priority of this task from Normal to High.
hashar renamed this task from Investigate installing php5.3 on a trusty instance to Investigate installing php5.3 on trusty and/or debian instance.Nov 25 2015, 3:44 PM
hashar added a subscriber: bd808.Dec 21 2015, 3:47 PM

Semi-confusingly the version of phpenv at https://github.com/CHH/phpenv is the better version to use. The phpenv/phpenv version forked from the CHH version over "creative differences" and then stalled out in a not-quite-good state.

T126211 provided us with a shell script that is set as the Debian alternative for /usr/bin/php. Setting env variable PHP_BIN let us switch to a different executable. E.g:

export PHP_BIN='/usr/bin/hhvm'
echo "<?php echo echo" > foo.php
php foo.php
# ran under hhvm

Recently mentioned for solving this: https://github.com/php-build/php-build/ (one needs to use master as there was no release for quite some time)

Now that we have a wrapper around /usr/bin/php to execute whatever we want (T126211), one can start playing with php-build to craft php versions we will need. Extra attention would need to be paid to prepare a profile that has all the extensions we require for MediaWiki.

A potential challenge would be to compile the Wikimedia PHP extensions luasandbox / wikidiff2 / fss. But that might be trivial.

Krinkle removed a subscriber: Krinkle.Feb 23 2016, 4:55 PM
hashar lowered the priority of this task from High to Low.Apr 25 2016, 8:04 PM

Low priority. Will take care of Zend 5.5 / HHVM first. 5.3 can wait since it is barely used any more.

Precise LTS support ends in April 2017. MediaWiki 1.23 goes EOL in May 2017 (last version to support 5.3). If the labs team is okay with us having precise instances running for an extra month, I would propose declining this task as I don't think it is going to be worth the time/effort to get this to work.

greg added subscribers: chasemp, greg.Sep 7 2016, 5:07 PM

Precise LTS support ends in April 2017. MediaWiki 1.23 goes EOL in May 2017 (last version to support 5.3). If the labs team is okay with us having precise instances running for an extra month, I would propose declining this task as I don't think it is going to be worth the time/effort to get this to work.

@chasemp ^^ :)

hashar closed this task as Declined.Nov 3 2016, 9:05 PM

We will wait until the end of life of MediaWiki 1.23 which is May 2017.

Mentioned in SAL (#wikimedia-operations) [2017-02-13T19:22:28Z] <legoktm> running namespaceDupes.php on fiwiki (T103786)

Mentioned in SAL (#wikimedia-operations) [2017-02-13T19:22:28Z] <legoktm> running namespaceDupes.php on fiwiki (T103786)

Wrong task, sorry.