Page MenuHomePhabricator

Install php-yaml in Toolforge images
Closed, ResolvedPublic

Description

I'm using the php8.2 image for https://gerrit.wikimedia.org/g/labs/tools/fileprotectionsync from https://wikitech.wikimedia.org/wiki/Help:Toolforge/Jobs_framework#Choosing_the_execution_runtime

However, this is failing once deployed due to:

PHP Fatal error:  Uncaught Error: Call to undefined function yaml_parse() in /data/project/krinklebot/src/fileprotectionsync/src/FileProtectionSyncBot.php:163

Based on codesearch, I made the mistake of assuming this was installed.

https://codesearch.wmcloud.org/search/?q=php8.2-&files=php82&excludeFiles=&repos=

However, I realize these are for WMF CI only. It looks like https://gerrit.wikimedia.org/g/operations/docker-images/toollabs-images is not indexed in Codesearch at the moment.

Event Timeline

Change #1015689 had a related patch set uploaded (by Krinkle; author: Krinkle):

[labs/codesearch@master] write_config: index operations/docker-images/toollabs-images

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

Change #1015689 merged by jenkins-bot:

[labs/codesearch@master] write_config: index operations/docker-images/toollabs-images

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

Change #1015690 had a related patch set uploaded (by Krinkle; author: Krinkle):

[operations/docker-images/toollabs-images@master] php74-sssd,php82-sssd: add php-yaml

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

Change #1015691 had a related patch set uploaded (by Krinkle; author: Krinkle):

[labs/tools/fileprotectionsync@master] Temporarily freeze logo protection

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

Change #1015691 merged by jenkins-bot:

[labs/tools/fileprotectionsync@master] Temporarily freeze logo protection

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

bd808 triaged this task as Medium priority.Mon, Apr 1, 8:41 PM

Change #1015690 merged by jenkins-bot:

[operations/docker-images/toollabs-images@master] php82-sssd: add php-yaml

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

Mentioned in SAL (#wikimedia-cloud) [2024-04-03T09:45:28Z] <taavi> rebuilding prebuild images for T361457

taavi assigned this task to Krinkle.