Page MenuHomePhabricator

AbuseFilterParserTest::tearDown() must call parent::tearDown() exception within quibble-vendor-mysql-hhvm-docker
Closed, DuplicatePublic

Description

Receiving the following exception (a couple of variations):

14:02:09 Fatal error: Class undefined: Wikimedia\Equivset\Equivset in /workspace/src/extensions/AbuseFilter/includes/parser/AbuseFilterParser.php on line 1337
14:02:09 Destructor threw an object exception: exception 'MWException' with message 'AbuseFilterParserTest::tearDown() must call parent::tearDown()' in /workspace/src/tests/phpunit/MediaWikiTestCase.php:158
14:02:09 Stack trace:
14:02:09 #0 (): MediaWikiTestCase->__destruct()
14:02:09 #1 {main}
14:02:09 Destructor threw an object exception: exception 'Wikimedia\Rdbms\DBAccessError' with message 'Database access has been disabled.' in /workspace/src/includes/libs/rdbms/loadbalancer/LoadBalancer.php:1101
14:02:09 Stack trace:
14:02:09 #0 /workspace/src/includes/libs/rdbms/loadbalancer/LoadBalancer.php(942): Wikimedia\Rdbms\LoadBalancer->reallyOpenConnection()
14:02:09 #1 /workspace/src/includes/libs/rdbms/loadbalancer/LoadBalancer.php(890): Wikimedia\Rdbms\LoadBalancer->openLocalConnection()
14:02:09 #2 /workspace/src/includes/libs/rdbms/loadbalancer/LoadBalancer.php(766): Wikimedia\Rdbms\LoadBalancer->openConnection()
14:02:09 #3 /workspace/src/includes/GlobalFunctions.php(2694): Wikimedia\Rdbms\LoadBalancer->getConnection()
14:02:09 #4 /workspace/src/extensions/CentralAuth/includes/CentralAuthHooks.php(1536): wfGetDB()
14:02:09 #5 /workspace/src/includes/Hooks.php(174): CentralAuthHooks::onUnitTestsBeforeDatabaseTeardown()
14:02:09 #6 /workspace/src/includes/Hooks.php(202): Hooks::callHook()
14:02:09 #7 /workspace/src/tests/phpunit/MediaWikiTestCase.php(1358): Hooks::run()
14:02:09 #8 /workspace/src/tests/phpunit/bootstrap.php(20): MediaWikiTestCase::teardownTestDB()
14:02:09 #9 (): MediaWikiPHPUnitBootstrap->__destruct()
14:02:09 #10 {main}

and:

14:02:57 Fatal error: Class undefined: Wikimedia\Equivset\Equivset in /workspace/src/extensions/AbuseFilter/includes/parser/AbuseFilterParser.php on line 1275
14:02:57 Destructor threw an object exception: exception 'MWException' with message 'AbuseFilterParserTest::tearDown() must call parent::tearDown()' in /workspace/src/tests/phpunit/MediaWikiTestCase.php:159
14:02:57 Stack trace:
14:02:57 #0 (): MediaWikiTestCase->__destruct()
14:02:57 #1 {main}

Noticed for quibble-vendor-mysql-hhvm-docker (example) when working with a completely unrelated security backport for REL1_31, REL1_32 and REL1_33. I manually merged these since the patch for master tested fine (and the patch was one line of unrelated code for an entirely separate extension.)

Event Timeline

sbassett created this task.Aug 13 2019, 9:39 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 13 2019, 9:39 PM
sbassett updated the task description. (Show Details)Aug 13 2019, 9:41 PM

Sounds that it is T189560, because the error message indicates a class from a composer package

Daimona added a subscriber: Daimona.

Sounds that it is T189560, because the error message indicates a class from a composer package

Exactly