Page MenuHomePhabricator

Create a temporary Shellbox instance for ICU 72 upgrade
Closed, ResolvedPublic

Description

This is required for T419274 (pointing LinksUpdate remote writes at it) and for T419242 (updateCollation.php script).

Verification before calling it done:

Event Timeline

Raine changed the task status from Open to Stalled.
Raine triaged this task as High priority.
Raine changed the task status from Stalled to In Progress.Mar 13 2026, 1:23 PM
Raine moved this task from Scheduled (this Q) to In Progress on the ServiceOps board.

Change #1251352 had a related patch set uploaded (by Kamila Součková; author: Kamila Součková):

[mediawiki/libs/Shellbox@master] Create an icu72 variant for shellbox

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

Change #1251475 had a related patch set uploaded (by Kamila Součková; author: Kamila Součková):

[operations/deployment-charts@master] shellbox: Setup shellbox-icu72

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

Change #1251352 merged by jenkins-bot:

[mediawiki/libs/Shellbox@master] Create an icu72 variant for shellbox

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

Change #1254900 had a related patch set uploaded (by Kamila Součková; author: Kamila Součková):

[mediawiki/libs/Shellbox@master] Publish the icu72 variant for shellbox

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

Change #1254900 merged by jenkins-bot:

[mediawiki/libs/Shellbox@master] Publish the icu72 variant for shellbox

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

Change #1251475 merged by jenkins-bot:

[operations/deployment-charts@master] shellbox: Setup shellbox-icu72

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

The new images look happy:

kamila@deploy2002:~/icu72$ kubectl exec -it shellbox-icu72-c4f45f566-p2srn -c shellbox-icu72-app -- sh -c 'apt list | grep libicu'
libicu72/now 72.1-3+deb12u1~wmf11u1 amd64 [installed,local]

kamila@deploy2002:~/icu72$ kubectl exec -it shellbox-icu72-c4f45f566-p2srn -c shellbox-icu72-app -- php -r "var_dump(IntlChar::getUnicodeVersion());"
array(4) {
  [0]=>
  int(15)
  [1]=>
  int(0)
  [2]=>
  int(0)
  [3]=>
  int(0)
}

(Also, the other images are successfully not using the new ICU version :D)

Raine closed this task as Resolved.EditedMar 20 2026, 12:47 PM

Looks like it's working! I'm getting a grumpy response from shellbox when I curl at it from a mw-experimental pod.

kamila@deploy2002:~/icu72$ cat test-shellbox-conn.php 
$ch = curl_init('https://shellbox-icu72-tls-service.shellbox.svc.cluster.local:4081');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);

if ($response === false) {
    echo "cURL error: " . curl_error($ch) . PHP_EOL;
} else {
    echo "HTTP status: " . curl_getinfo($ch, CURLINFO_HTTP_CODE) . PHP_EOL;
    echo $response;
}
curl_close($ch);

kamila@deploy2002:~/icu72$ kubectl exec -it mw-experimental.eqiad.pinkllama-5cc5b95774-wjldt -c mediawiki-pinkllama-app -- php -r "`cat test-shellbox-conn.php`"
HTTP status: 500
{
    "__": "Shellbox server error",
    "class": "Shellbox\\ShellboxError",
    "message": "No action was specified",
    "log": [
        {
            "level": "ERROR",
            "message": "Exception of class Shellbox\\ShellboxError: No action was specified",
            "context": {
                "trace": "#0 /srv/app/src/Server.php(77): Shellbox\\Server->guardedExecute('/srv/app/config...')\n#1 /srv/app/src/Server.php(66): Shellbox\\Server->execute('/srv/app/config...')\n#2 /srv/app/index.php(3): Shellbox\\Server::main('/srv/app/config...')\n#3 {main}"
            }
        }
    ]
}

Change #1286347 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/libs/Shellbox@master] Release v4.5.0

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

Change #1286347 merged by jenkins-bot:

[mediawiki/libs/Shellbox@master] Release v4.5.0

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