Page MenuHomePhabricator

mediawiki/core CI throws PHP deprecation warnings 'Premature access to service'
Closed, ResolvedPublic

Description

See https://integration.wikimedia.org/ci/job/mediawiki-quibble-vendor-mysql-php72-docker/53754/consoleFull.

22:28:34 PHP Deprecated:  Premature access to service container [Called from Title::secureAndSplit in /workspace/src/includes/Title.php at line 3090] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service 'HookContainer' [Called from MediaWiki\MediaWikiServices::getInstance in /workspace/src/includes/MediaWikiServices.php at line 268] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service 'ObjectFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in /workspace/src/includes/ServiceWiring.php at line 619] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service 'TitleParser' [Called from Title::secureAndSplit in /workspace/src/includes/Title.php at line 3090] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service '_MediaWikiTitleCodec' [Called from Wikimedia\Services\ServiceContainer::createService in /workspace/src/vendor/wikimedia/services/src/ServiceContainer.php at line 447] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service 'ContentLanguage' [Called from Wikimedia\Services\ServiceContainer::{closure} in /workspace/src/includes/ServiceWiring.php at line 1888] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service 'LanguageFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in /workspace/src/includes/ServiceWiring.php at line 380] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service 'MainConfig' [Called from Wikimedia\Services\ServiceContainer::{closure} in /workspace/src/includes/ServiceWiring.php at line 706] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service 'ConfigFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in /workspace/src/includes/ServiceWiring.php at line 828] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service 'BootstrapConfig' [Called from Wikimedia\Services\ServiceContainer::{closure} in /workspace/src/includes/ServiceWiring.php at line 347] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service 'LocalisationCache' [Called from Wikimedia\Services\ServiceContainer::{closure} in /workspace/src/includes/ServiceWiring.php at line 707] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service 'LanguageNameUtils' [Called from Wikimedia\Services\ServiceContainer::{closure} in /workspace/src/includes/ServiceWiring.php at line 802] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service 'LanguageFallback' [Called from Wikimedia\Services\ServiceContainer::{closure} in /workspace/src/includes/ServiceWiring.php at line 709] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service 'LanguageConverterFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in /workspace/src/includes/ServiceWiring.php at line 710] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service 'GenderCache' [Called from Wikimedia\Services\ServiceContainer::{closure} in /workspace/src/includes/ServiceWiring.php at line 1889] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service 'NamespaceInfo' [Called from Wikimedia\Services\ServiceContainer::{closure} in /workspace/src/includes/ServiceWiring.php at line 587] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service 'DBLoadBalancer' [Called from Wikimedia\Services\ServiceContainer::{closure} in /workspace/src/includes/ServiceWiring.php at line 591] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service 'DBLoadBalancerFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in /workspace/src/includes/ServiceWiring.php at line 458] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service 'StatsdDataFactory' [Called from ObjectCache::newFromParams in /workspace/src/includes/objectcache/ObjectCache.php at line 149] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service 'MainWANObjectCache' [Called from Wikimedia\Services\ServiceContainer::{closure} in /workspace/src/includes/ServiceWiring.php at line 481] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service 'LocalServerObjectCache' [Called from Wikimedia\Services\ServiceContainer::{closure} in /workspace/src/includes/ServiceWiring.php at line 486] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service 'ConfiguredReadOnlyMode' [Called from Wikimedia\Services\ServiceContainer::{closure} in /workspace/src/includes/ServiceWiring.php at line 495] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service 'CriticalSectionProvider' [Called from Wikimedia\Services\ServiceContainer::{closure} in /workspace/src/includes/ServiceWiring.php at line 499] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service '_DefaultOptionsLookup' [Called from Wikimedia\Services\ServiceContainer::{closure} in /workspace/src/includes/ServiceWiring.php at line 592] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service 'InterwikiLookup' [Called from Wikimedia\Services\ServiceContainer::{closure} in /workspace/src/includes/ServiceWiring.php at line 1891] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service 'TitleFormatter' [Called from TrivialLanguageConverter::__construct in /workspace/src/includes/language/TrivialLanguageConverter.php at line 59] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service 'LinkCache' [Called from Title::resetArticleID in /workspace/src/includes/Title.php at line 3035] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service 'RestrictionStore' [Called from Title::resetArticleID in /workspace/src/includes/Title.php at line 3036] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service 'CommentStore' [Called from Wikimedia\Services\ServiceContainer::{closure} in /workspace/src/includes/ServiceWiring.php at line 1351] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service 'PageStore' [Called from Wikimedia\Services\ServiceContainer::{closure} in /workspace/src/includes/ServiceWiring.php at line 1353] in /workspace/src/includes/debug/MWDebug.php on line 375
22:28:34 PHP Deprecated:  Premature access to service 'PageStoreFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in /workspace/src/includes/ServiceWiring.php at line 1056] in /workspace/src/includes/debug/MWDebug.php on line 375

Event Timeline

Zabe triaged this task as High priority.Sep 17 2021, 1:53 PM
Zabe updated the task description. (Show Details)
Krinkle subscribed.

Seems likely a regression from recent refactoring.

Pchelolo subscribed.

Caused by https://gerrit.wikimedia.org/r/c/mediawiki/core/+/719341 - can't call Title::newFromText in a data provider. The Title::newFromText cases in provideEquals has to be moved back into an integration test or replaced with Title::makeTitle

Change 721861 had a related patch set uploaded (by D3r1ck01; author: Derick Alangi):

[mediawiki/core@master] tests: Avoid trying to access the DB in data providers

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

Oops, I must have missed that, sorry! Made a patch!

Change 721861 merged by jenkins-bot:

[mediawiki/core@master] tests: Avoid trying to access the DB in data providers

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

Change 722446 had a related patch set uploaded (by D3r1ck01; author: Derick Alangi):

[mediawiki/core@REL1_37] tests: Avoid trying to access the DB in data providers

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

@Zabe, can you confirm this no longer spams? Is the log free from this?

Change 722446 merged by jenkins-bot:

[mediawiki/core@REL1_37] tests: Avoid trying to access the DB in data providers

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