Page MenuHomePhabricator

Install php-yaml for Translate
Closed, ResolvedPublic

Description

Can we install php-yaml please?

Event Timeline

hashar added subscribers: Nikerabbit, hashar.

We would need Debian packages for each of the PHP version we support:

  • for php 5.5 we would need it to be packaged for Jessie like I did with eg: operations/debs/pkg-php/php-redis
  • we do not run tests with php5.6.
  • for php7.0 a Debian package for Stretch

Then for HHVM I have no idea. Note translatewiki.net uses HHVM iirc and Translate is on the WMF cluster which uses HHVM. I have no idea whether the extension is built in hhvm or requires some kind of port.

(note: I cant work on that anytime soon)

the YAML extension is bundled with HHVM already. php-yaml is only in Debian Stretch, so we'd need to backport it to Jessie for 5.5.

Translate on WMF production does not even use any YAML features. It is primarily used in translatewiki.net to read 1) group configuration from yaml files 2) yaml i18n file format support (ruby on rails).

There are unit tests that use it though.

@Nikerabbit asked about it today. The PHP module is in Debian https://packages.debian.org/search?keywords=php-yaml and it is apparently available in sury.org for the various PHP versions we support on CI: https://packages.sury.org/php/pool/main/p/php-yaml/

So I guess it is all about adding the package to our php/composer/quibble images.

Update: This is now done in all CI for T296331, but not for production yet.

hashar claimed this task.

Closing since php-yaml is on CI. For production deployment and managing the roll out, please file another task and involve serviceops.

Thanks. There is no need from our side to have it in production right now.