Page MenuHomePhabricator

Unit tests for oojs/core and unicodejs repositories unable to launch Firefox in Docker
Closed, DuplicatePublic

Description

Continuing here from T240955#7028248 since it appears the issue is not related to Docker's shm-size configuration (which we have set to 1g currently, but increasing it to 2g or 4g did not help).

The OOjs, and UnicodeJS tests appear to consistently fail as of this month:

The environmental difference is that Firefox was upgraded in CI from Firefox 60 to Firefox 68. But the failure is different than T240955.

From build 170, job unicodejs-node10-browser:

22:25:28:INFO [karma-server]: Karma v5.2.2 server started at http://localhost:9876/
22:25:28:INFO [launcher]: Launching browsers FirefoxHeadless with concurrency unlimited
22:25:28:INFO [launcher]: Starting browser FirefoxHeadless
22:25:28:DEBUG [launcher]: null -> BEING_CAPTURED
22:25:28:DEBUG [temp-dir]: Creating temp dir at /tmp/karma-5569369
22:25:28:DEBUG [launcher]: /usr/local/bin/firefox http://localhost:9876/?id=5569369 -profile /tmp/karma-5569369 -no-remote -wait-for-browser -headless --start-debugger-server 6000
22:25:36:DEBUG [web-server]: serving: /src/node_modules/karma/static/client.html

22:26:28:WARN [launcher]: FirefoxHeadless have not captured in 60000 ms, killing.
22:26:28:DEBUG [launcher]: BEING_CAPTURED -> BEING_KILLED
22:26:28:DEBUG [launcher]: Process FirefoxHeadless exited with code null and signal SIGTERM
22:26:28:DEBUG [temp-dir]: Cleaning temp dir /tmp/karma-5569369
22:26:28:INFO [launcher]: Trying to start FirefoxHeadless again (1/2).
22:26:28:DEBUG [launcher]: BEING_KILLED -> RESTARTING
22:26:28:DEBUG [launcher]: RESTARTING -> FINISHED
22:26:28:DEBUG [launcher]: FINISHED -> FINISHED
22:26:28:DEBUG [launcher]: Restarting FirefoxHeadless
22:26:28:DEBUG [launcher]: FINISHED -> BEING_CAPTURED
22:26:28:DEBUG [temp-dir]: Creating temp dir at /tmp/karma-5569369
22:26:28:DEBUG [launcher]: /usr/local/bin/firefox http://localhost:9876/?id=5569369 -profile /tmp/karma-5569369 -no-remote -wait-for-browser -headless --start-debugger-server 6000

22:26:36:DEBUG [web-server]: serving (cached): /src/node_modules/karma/static/client.html

22:27:28:WARN [launcher]: FirefoxHeadless have not captured in 60000 ms, killing.
22:27:28:DEBUG [launcher]: BEING_CAPTURED -> BEING_KILLED
22:27:28:DEBUG [launcher]: Process FirefoxHeadless exited with code null and signal SIGTERM
22:27:28:DEBUG [temp-dir]: Cleaning temp dir /tmp/karma-5569369
22:27:28:INFO [launcher]: Trying to start FirefoxHeadless again (2/2).
22:27:28:DEBUG [launcher]: BEING_KILLED -> RESTARTING
22:27:28:DEBUG [launcher]: RESTARTING -> FINISHED
22:27:28:DEBUG [launcher]: FINISHED -> FINISHED
22:27:28:DEBUG [launcher]: Restarting FirefoxHeadless
22:27:28:DEBUG [launcher]: FINISHED -> BEING_CAPTURED
22:27:28:DEBUG [temp-dir]: Creating temp dir at /tmp/karma-5569369
22:27:28:DEBUG [launcher]: /usr/local/bin/firefox http://localhost:9876/?id=5569369 -profile /tmp/karma-5569369 -no-remote -wait-for-browser -headless --start-debugger-server 6000

22:27:35:DEBUG [web-server]: serving (cached): /src/node_modules/karma/static/client.html
22:27:36:DEBUG [web-server]: serving: /src/node_modules/karma/static/karma.js
22:27:36:DEBUG [web-server]: serving: /src/node_modules/karma/static/favicon.ico

22:27:37:DEBUG [karma-server]: A browser has connected on socket nmM-0PQshry8X-joAAAA

22:27:42:DEBUG [web-server]: upgrade /socket.io/?EIO=3&transport=websocket&sid=nmM-0PQshry8X-joAAAA
22:27:43:DEBUG [Firefox 68.0 (Linux x86_64)]: undefined -> CONNECTED
22:27:43:INFO [Firefox 68.0 (Linux x86_64)]: Connected on socket nmM-0PQshry8X-joAAAA with id 5569369
22:27:43:DEBUG [launcher]: BEING_CAPTURED -> CAPTURED
22:27:43:DEBUG [launcher]: FirefoxHeadless (id 5569369) captured in 134.44 secs
22:27:43:DEBUG [Firefox 68.0 (Linux x86_64)]: CONNECTED -> CONFIGURING

22:27:43:DEBUG [middleware:karma]: custom files null null null
22:27:43:DEBUG [middleware:karma]: Serving static request /context.html
22:27:43:DEBUG [web-server]: serving: /src/node_modules/karma/static/context.html
22:27:44:DEBUG [web-server]: serving: /src/node_modules/karma/static/context.js
22:27:44:DEBUG [middleware:source-files]: Requesting /base/node_modules/qunit/qunit/qunit.js?4d8a55d46c46691933993d3a42417261ee5e2b64
22:27:44:DEBUG [middleware:source-files]: Fetching /src/node_modules/qunit/qunit/qunit.js
22:27:44:DEBUG [web-server]: serving (cached): /src/node_modules/qunit/qunit/qunit.js
…
22:27:44:DEBUG [middleware:source-files]: Requesting /base/src/unicodejs.js?2247817c31216fbe3fbffe2b206eb6b7468e93c9
22:27:44:DEBUG [middleware:source-files]: Fetching /src/src/unicodejs.js
22:27:44:DEBUG [web-server]: serving (cached): /src/src/unicodejs.js
…
22:27:44:DEBUG [Firefox 68.0 (Linux x86_64)]: CONFIGURING -> EXECUTING
23:27:47:DEBUG [Firefox 68.0 (Linux x86_64)]: EXECUTING -> CONNECTED
23:27:47 Firefox 68.0 (Linux x86_64): Executed 9 of 9 SUCCESS (3.113 secs / 0.204 secs)

This shows that the first two attempts, the launch command is issued, and we even see that the browser has opened the tab for the unit tests and requested the /static/client.html resource, but then it dies.

Event Timeline

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

[oojs/core@master] build: Update dev dependencies and remove grunt-karma

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

Change 682027 merged by jenkins-bot:

[oojs/core@master] build: Update dev dependencies, rm grunt-karma, rm grunt-jsdoc

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

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

[unicodejs@master] build: Update release process (incl. support for reproducible builds)

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

Change 682016 merged by jenkins-bot:

[unicodejs@master] build: Update release process (incl. support for reproducible builds)

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

Krinkle moved this task from Confirmed Problem to Meta on the OOjs core board.