Page MenuHomePhabricator

Stall and timeout during PHPUnit tests
Closed, DuplicatePublicPRODUCTION ERROR

Description

In this case, according to the timestamps it was a PHPUnit test which got stuck for some reason. Are we making external web requests or something? Why would this hang...

Patch affected: https://gerrit.wikimedia.org/r/514451
Log: https://integration.wikimedia.org/ci/job/quibble-vendor-mysql-hhvm-docker/51955/console

11:55:59 ........................................................... 14278 / 23356 ( 61%)
11:56:06 ........................................................... 14337 / 23356 ( 61%)
11:56:11 ..............Build timed out (after 60 minutes). Marking the build as failed.
12:46:31 Build was aborted
12:46:31 Recording test results

Related Objects

StatusSubtypeAssignedTask
ResolvedNone
DuplicatePRODUCTION ERRORNone

Event Timeline

No, that's the symptom; it just means it was still doing a PHPUnit thing when it hit the overall hard-limit of 60 mins. It's almost always caused by composer (packagist) or node (npm) taking an age to resolve, for whatever reason.

No, that's the symptom; it just means it was still doing a PHPUnit thing when it hit the overall hard-limit of 60 mins. It's almost always caused by composer (packagist) or node (npm) taking an age to resolve, for whatever reason.

That doesn't seem right. Here I've switched the timestamps to elapsed time to make it clearer,

00:09:39.952 ..............Build timed out (after 60 minutes). Marking the build as failed.
01:00:00.033 Build was aborted

We've successfully made it through all the composer stuff (I don't think npm has been called yet), and at 9m39s we're running PHPUnit tests... the next thing that happens is 50 minutes later and it's the timeout. There should be nothing happening in the background.

Oh, system time vs. wall time on a contended resource? Eh.

I am 99,99% sure it is T220685. Well indeed looking at the mw-debug-cli.log file:

[PHPUnitCommand] Start test Scribunto_LuaSandboxInterpreterTest::testRoundtripNAN
[PHPUnitCommand] End test Scribunto_LuaSandboxInterpreterTest::testRoundtripNAN
[PHPUnitCommand] Start test Scribunto_LuaSandboxInterpreterTest::testTimeLimit
hashar closed this task as a duplicate of Restricted Task.Jun 6 2019, 6:49 AM
mmodell changed the subtype of this task from "Task" to "Production Error".Aug 28 2019, 11:06 PM