Page MenuHomePhabricator

StandaloneInterpreterTest failure fwrite(): Write of 80 bytes failed with errno=32 Broken pipe
Closed, ResolvedPublic

Description

Seen as CI failure
https://integration.wikimedia.org/ci/job/quibble-vendor-mysql-php83-phpunit-standalone/1169/console

Test needs some hardening, it is possible the CI was under high load when the failure occurs

14:52:47 There was 1 error:
14:52:47 
14:52:47 1) MediaWiki\Extension\Scribunto\Tests\Engines\LuaStandalone\StandaloneInterpreterTest::testIOErrorSignal
14:52:47 fwrite(): Write of 80 bytes failed with errno=32 Broken pipe
14:52:47 
14:52:47 /workspace/src/extensions/Scribunto/includes/Engines/LuaStandalone/LuaStandaloneInterpreter.php:475
14:52:47 /workspace/src/extensions/Scribunto/includes/Engines/LuaStandalone/LuaStandaloneInterpreter.php:444
14:52:47 /workspace/src/extensions/Scribunto/includes/Engines/LuaStandalone/LuaStandaloneInterpreter.php:255
14:52:47 /workspace/src/extensions/Scribunto/tests/phpunit/Engines/LuaStandalone/StandaloneInterpreterTest.php:63
14:52:47 
14:52:47 ERRORS!
14:52:47 Tests: 1191, Assertions: 1358, Errors: 1, Skipped: 6.

Event Timeline

Change #1216676 had a related patch set uploaded (by Tim Starling; author: Tim Starling):

[mediawiki/extensions/Scribunto@master] Standalone: silence warnings from fwrite/fread

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

It's reproducible by just putting sleep(1) after the proc_terminate().

Umherirrender assigned this task to tstarling.
Umherirrender removed a project: Patch-For-Review.
Umherirrender updated the task description. (Show Details)

Change #1216676 merged by jenkins-bot:

[mediawiki/extensions/Scribunto@master] Standalone: silence warnings from fwrite/fread

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