Page MenuHomePhabricator

Key "CanonicalNamespaceNames" not found in input sources in includes/config/ServiceOptions.php:52
Closed, InvalidPublic

Description

Similar to T237032: Key "CanonicalNamespaceNames" not found in input sources in includes/config/ServiceOptions.php:52, running the tests of Lingo (e.g. in change https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Lingo/+/565189) is broken, as the tests seem to run code which requires the a Parser and down the stack trace the NamespaceInfo class, which requires the CanonicalNamespaceNames key:

07:06:20 1) Lingo\Tests\Unit\BasicBackendTest::testNext with data set #0 ('', array(null))
07:06:20 InvalidArgumentException: Key "CanonicalNamespaceNames" not found in input sources
07:06:20 
07:06:20 /workspace/src/includes/config/ServiceOptions.php:52
07:06:20 /workspace/src/includes/ServiceWiring.php:594
07:06:20 /workspace/src/includes/libs/services/ServiceContainer.php:451
07:06:20 /workspace/src/includes/libs/services/ServiceContainer.php:419
07:06:20 /workspace/src/includes/MediaWikiServices.php:833
07:06:20 /workspace/src/includes/ServiceWiring.php:281
07:06:20 /workspace/src/includes/libs/services/ServiceContainer.php:451
07:06:20 /workspace/src/includes/libs/services/ServiceContainer.php:419
07:06:20 /workspace/src/includes/MediaWikiServices.php:651
07:06:20 /workspace/src/includes/ServiceWiring.php:1022
07:06:20 /workspace/src/includes/libs/services/ServiceContainer.php:451
07:06:20 /workspace/src/includes/libs/services/ServiceContainer.php:419
07:06:20 /workspace/src/includes/ServiceWiring.php:948
07:06:20 /workspace/src/includes/libs/services/ServiceContainer.php:451
07:06:20 /workspace/src/includes/libs/services/ServiceContainer.php:419
07:06:20 /workspace/src/includes/MediaWikiServices.php:1117
07:06:20 /workspace/src/includes/ServiceWiring.php:362
07:06:20 /workspace/src/includes/libs/services/ServiceContainer.php:451
07:06:20 /workspace/src/includes/libs/services/ServiceContainer.php:419
07:06:20 /workspace/src/includes/MediaWikiServices.php:726
07:06:20 /workspace/src/includes/ServiceWiring.php:662
07:06:20 /workspace/src/includes/libs/services/ServiceContainer.php:451
07:06:20 /workspace/src/includes/libs/services/ServiceContainer.php:419
07:06:20 /workspace/src/includes/MediaWikiServices.php:892
07:06:20 /workspace/src/includes/parser/Parser.php:395
07:06:20 /workspace/src/extensions/Lingo/src/BasicBackend.php:169
07:06:20 /workspace/src/extensions/Lingo/src/BasicBackend.php:78
07:06:20 /workspace/src/extensions/Lingo/tests/phpunit/Unit/BasicBackendTest.php:113

However, the tests are run as a plain PHPUnit test case, where all of this stuff is not present.

Event Timeline

Florian created this task.Jan 16 2020, 7:05 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 16 2020, 7:05 PM
Zoranzoki21 closed this task as Invalid.Jul 11 2020, 1:18 PM
Zoranzoki21 added a subscriber: Zoranzoki21.

This can't be reproduced anymore (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Lingo/+/565189/), so I'm closing this task as invalid.