Page MenuHomePhabricator

Patch adding caches to MediaWikiServices caused Cognate services to not correctly register
Closed, ResolvedPublic

Description

A combination of https://gerrit.wikimedia.org/r/#/c/313456/4 and https://gerrit.wikimedia.org/r/#/c/313351/3 result in services in the Cognate extension to not correctly get registered.

This can be seen in the tests or while loading a page on a wiki with the extension enabled.

6) Cognate\Tests\ServiceWiringTest::testServiceWiring with data set #0 ('CognateStore', 'Cognate\CognateStore')
MediaWiki\Services\NoSuchServiceException: No such service: CognateStore

mediawiki\includes\services\ServiceContainer.php:364
mediawiki\includes\services\ServiceContainer.php:344
mediawiki\extensions\Cognate\tests\phpunit\ServiceWiringTest.php:26
mediawiki\tests\phpunit\MediaWikiTestCase.php:392
mediawiki\maintenance\doMaintenance.php:110

Event Timeline

Are they are more useful/direct traces?

Change 316540 had a related patch set uploaded (by Addshore):
MWServices load new ServiceWiringFiles after ExtRegistry load

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

Change 316540 merged by jenkins-bot:
MWServices load new ServiceWiringFiles after ExtRegistry load

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

Addshore moved this task from Review to Done on the WMDE-QWERTY-Team-Experimental-Sprint board.
Addshore moved this task from Active 🚁 to Closing ✔️ on the User-Addshore board.