Page MenuHomePhabricator

Upstream HOME=/tmp from fresh-node to WMF CI images
Closed, ResolvedPublic

Description

I suggest upstreaming this to reduce differences and so as to avoid things breaking in CI when there's an easy fix that we already apply in various places including:

  • We currently set -e 'HOME=/tmp' in fresh-node18, node20, node22, etc.
  • We set HOME=/tmp in the firefox wrapper in node-test-browser images for WMF CI.
  • We set (as of today) HOME=/tmp in Quibble images to fix firefox-esr for QUnit tests (https://gerrit.wikimedia.org/r/c/mediawiki/core/+/947898).

Event Timeline

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

[integration/config@master] dockerfiles: set HOME=/tmp in node18-test,node20-test,node22-test

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

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

[integration/config@master] dockerfiles: [quibble] Set HOME=/tmp so Firefox etc. can work

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

Krinkle triaged this task as Low priority.
Krinkle moved this task from Inbox to Enhancement on the Fresh board.

Change #1035812 merged by jenkins-bot:

[integration/config@master] dockerfiles: set HOME=/tmp in node18-test,node20-test,node22-test

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

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

[fresh@master] fresh-node: Update to latest image and remove redundant HOME override

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

See 6c3c6fc864ab1b2fed3bafe7aa983009e6544367 which I did when upgrading from Jessie (T203178). It introduces a firefox shell script wrapper in /usr/local/bin/firefox and set HOME there. That has the advantage of not setting HOME which does have side effects.

Change #1035810 merged by jenkins-bot:

[integration/config@master] dockerfiles: [quibble] Set HOME=/tmp so Firefox etc. can work

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

Mentioned in SAL (#wikimedia-releng) [2024-05-28T13:17:40Z] <James_F> Docker: [quibble] Set HOME=/tmp so Firefox etc. can work, for T365871

Change #1037453 had a related patch set uploaded (by Hashar; author: Hashar):

[integration/config@master] jjb: switch Quibble jobs to use HOME=/tmp

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

Change #1037453 merged by jenkins-bot:

[integration/config@master] jjb: switch Quibble jobs to use HOME=/tmp

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

Change #1035826 merged by jenkins-bot:

[fresh@master] fresh-node: Update to latest image and remove redundant HOME override

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

Change #1055435 had a related patch set uploaded (by Hashar; author: Hashar):

[integration/config@master] jjb: switch Quibble jobs to use HOME=/tmp (2)

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

Change #1055435 merged by jenkins-bot:

[integration/config@master] jjb: switch Quibble jobs to use HOME=/tmp (2)

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