Page MenuHomePhabricator

Tests for the Arrays extension fails
Closed, DuplicatePublic

Description

In https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Arrays/+/656879 I found that tests fails because of these errors:

13:57:08 SSSSSSSSSSSSSSSSS.......PHP Deprecated:  Use of InternalParseBeforeSanitize hook (used in VariablesHooks::onInternalParseBeforeSanitize) was deprecated in MediaWiki 1.35. [Called from MediaWiki\HookContainer\HookContainer::run in /workspace/src/includes/HookContainer/HookContainer.php at line 140] in /workspace/src/includes/debug/MWDebug.php on line 376
13:57:11 ..................................... 5002 / 5068 ( 98%)
13:57:11 ............................................................. 5063 / 5068 ( 99%)
13:57:11 .....                                                         5068 / 5068 (100%)
13:57:11 
13:57:11 Time: 40.85 seconds, Memory: 222.50 MB
13:57:11 
13:57:11 There were 5 errors:
13:57:11 
13:57:11 1) MediaWiki\Skins\Vector\Tests\Integration\HTMLLegacySkinVersionFieldTest::testGetInput with data set #0 ('1', true)
13:57:11 Use of InternalParseBeforeSanitize hook (used in VariablesHooks::onInternalParseBeforeSanitize) was deprecated in MediaWiki 1.35. [Called from MediaWiki\HookContainer\HookContainer::run in /workspace/src/includes/HookContainer/HookContainer.php at line 140]
13:57:11 
13:57:11 /workspace/src/includes/debug/MWDebug.php:376
13:57:11 /workspace/src/includes/debug/MWDebug.php:352
13:57:11 /workspace/src/includes/debug/MWDebug.php:230
13:57:11 /workspace/src/includes/GlobalFunctions.php:1035
13:57:11 /workspace/src/includes/HookContainer/HookContainer.php:329
13:57:11 /workspace/src/includes/HookContainer/HookContainer.php:140
13:57:11 /workspace/src/includes/HookContainer/HookRunner.php:2242
13:57:11 /workspace/src/includes/parser/Parser.php:1561
13:57:11 /workspace/src/includes/parser/Parser.php:651
13:57:11 /workspace/src/includes/cache/MessageCache.php:1306
13:57:11 /workspace/src/includes/language/Message.php:1248
13:57:11 /workspace/src/includes/language/Message.php:878
13:57:11 /workspace/src/includes/language/Message.php:931
13:57:11 /workspace/src/includes/htmlform/HTMLFormField.php:416
13:57:11 /workspace/src/skins/Vector/includes/HTMLForm/Fields/HTMLLegacySkinVersionField.php:42
13:57:11 /workspace/src/skins/Vector/tests/phpunit/integration/HTMLForm/Fields/HTMLLegacySkinVersionFieldTest.php:70
13:57:11 /workspace/src/tests/phpunit/MediaWikiIntegrationTestCase.php:446
13:57:11 /workspace/src/maintenance/doMaintenance.php:106
13:57:11 === Logs generated by test case
13:57:11 [objectcache] [debug] MainWANObjectCache using store {class} {"class":"EmptyBagOStuff"}
13:57:11 [MessageCache] [debug] MessageCache using store {class} {"class":"HashBagOStuff"}
13:57:11 [wfDebug] [debug] ParserFactory: using default preprocessor {"private":false}
13:57:11 [GlobalTitleFail] [info] MessageCache::parse called with no title set. {"exception":{}}
13:57:11 ===
13:57:11 
13:57:11 2) MediaWiki\Skins\Vector\Tests\Integration\HTMLLegacySkinVersionFieldTest::testGetInput with data set #1 ('2', false)
13:57:11 Use of InternalParseBeforeSanitize hook (used in VariablesHooks::onInternalParseBeforeSanitize) was deprecated in MediaWiki 1.35. [Called from MediaWiki\HookContainer\HookContainer::run in /workspace/src/includes/HookContainer/HookContainer.php at line 140]
13:57:11 
13:57:11 /workspace/src/includes/debug/MWDebug.php:376
13:57:11 /workspace/src/includes/debug/MWDebug.php:352
13:57:11 /workspace/src/includes/debug/MWDebug.php:230
13:57:11 /workspace/src/includes/GlobalFunctions.php:1035
13:57:11 /workspace/src/includes/HookContainer/HookContainer.php:329
13:57:11 /workspace/src/includes/HookContainer/HookContainer.php:140
13:57:11 /workspace/src/includes/HookContainer/HookRunner.php:2242
13:57:11 /workspace/src/includes/parser/Parser.php:1561
13:57:11 /workspace/src/includes/parser/Parser.php:651
13:57:11 /workspace/src/includes/cache/MessageCache.php:1306
13:57:11 /workspace/src/includes/language/Message.php:1248
13:57:11 /workspace/src/includes/language/Message.php:878
13:57:11 /workspace/src/includes/language/Message.php:931
13:57:11 /workspace/src/includes/htmlform/HTMLFormField.php:416
13:57:11 /workspace/src/skins/Vector/includes/HTMLForm/Fields/HTMLLegacySkinVersionField.php:42
13:57:11 /workspace/src/skins/Vector/tests/phpunit/integration/HTMLForm/Fields/HTMLLegacySkinVersionFieldTest.php:70
13:57:11 /workspace/src/tests/phpunit/MediaWikiIntegrationTestCase.php:446
13:57:11 /workspace/src/maintenance/doMaintenance.php:106
13:57:11 === Logs generated by test case
13:57:11 [objectcache] [debug] MainWANObjectCache using store {class} {"class":"EmptyBagOStuff"}
13:57:11 [MessageCache] [debug] MessageCache using store {class} {"class":"HashBagOStuff"}
13:57:11 [wfDebug] [debug] ParserFactory: using default preprocessor {"private":false}
13:57:11 [GlobalTitleFail] [info] MessageCache::parse called with no title set. {"exception":{}}
13:57:11 ===
13:57:11 
13:57:11 3) MediaWiki\Skins\Vector\Tests\Integration\SkinVectorTest::testGetTemplateData
13:57:11 Use of InternalParseBeforeSanitize hook (used in VariablesHooks::onInternalParseBeforeSanitize) was deprecated in MediaWiki 1.35. [Called from MediaWiki\HookContainer\HookContainer::run in /workspace/src/includes/HookContainer/HookContainer.php at line 140]
13:57:11 
13:57:11 /workspace/src/includes/debug/MWDebug.php:376
13:57:11 /workspace/src/includes/debug/MWDebug.php:352
13:57:11 /workspace/src/includes/debug/MWDebug.php:230
13:57:11 /workspace/src/includes/GlobalFunctions.php:1035
13:57:11 /workspace/src/includes/HookContainer/HookContainer.php:329
13:57:11 /workspace/src/includes/HookContainer/HookContainer.php:140
13:57:11 /workspace/src/includes/HookContainer/HookRunner.php:2242
13:57:11 /workspace/src/includes/parser/Parser.php:1561
13:57:11 /workspace/src/includes/parser/Parser.php:651
13:57:11 /workspace/src/includes/cache/MessageCache.php:1306
13:57:11 /workspace/src/includes/language/Message.php:1248
13:57:11 /workspace/src/includes/language/Message.php:878
13:57:11 /workspace/src/includes/language/Message.php:931
13:57:11 /workspace/src/includes/skins/Skin.php:766
13:57:11 /workspace/src/includes/skins/SkinMustache.php:160
13:57:11 /workspace/src/skins/Vector/includes/SkinVector.php:119
13:57:11 /workspace/src/vendor/wikimedia/testing-access-wrapper/src/TestingAccessWrapper.php:99
13:57:11 /workspace/src/skins/Vector/tests/phpunit/integration/SkinVectorTest.php:79
13:57:11 /workspace/src/tests/phpunit/MediaWikiIntegrationTestCase.php:446
13:57:11 /workspace/src/maintenance/doMaintenance.php:106
13:57:11 === Logs generated by test case
13:57:11 [objectcache] [debug] MainWANObjectCache using store {class} {"class":"EmptyBagOStuff"}
13:57:11 [wfDebug] [debug] ContextSource::getContext (SkinVector): called and $context is null. Using RequestContext::getMain() for sanity {"private":false}
13:57:11 [MessageCache] [debug] MessageCache using store {class} {"class":"HashBagOStuff"}
13:57:11 [ContentHandler] [info] Registered handler for wikitext: WikitextContentHandler []
13:57:11 [wfDebug] [debug] ContextSource::getContext (FlaggablePageView): called and $context is null. Using RequestContext::getMain() for sanity {"private":false}
13:57:11 [wfDebug] [debug] ParserFactory: using default preprocessor {"private":false}
13:57:11 ===
13:57:11 
13:57:11 4) HTMLFancyCaptchaFieldTest::testGetHTML
13:57:11 Use of InternalParseBeforeSanitize hook (used in VariablesHooks::onInternalParseBeforeSanitize) was deprecated in MediaWiki 1.35. [Called from MediaWiki\HookContainer\HookContainer::run in /workspace/src/includes/HookContainer/HookContainer.php at line 140]
13:57:11 
13:57:11 /workspace/src/includes/debug/MWDebug.php:376
13:57:11 /workspace/src/includes/debug/MWDebug.php:352
13:57:11 /workspace/src/includes/debug/MWDebug.php:230
13:57:11 /workspace/src/includes/GlobalFunctions.php:1035
13:57:11 /workspace/src/includes/HookContainer/HookContainer.php:329
13:57:11 /workspace/src/includes/HookContainer/HookContainer.php:140
13:57:11 /workspace/src/includes/HookContainer/HookRunner.php:2242
13:57:11 /workspace/src/includes/parser/Parser.php:1561
13:57:11 /workspace/src/includes/parser/Parser.php:651
13:57:11 /workspace/src/includes/cache/MessageCache.php:1306
13:57:11 /workspace/src/includes/language/Message.php:1248
13:57:11 /workspace/src/includes/language/Message.php:878
13:57:11 /workspace/src/includes/language/Message.php:931
13:57:11 /workspace/src/extensions/ConfirmEdit/FancyCaptcha/includes/HTMLFancyCaptchaField.php:75
13:57:11 /workspace/src/includes/htmlform/HTMLFormField.php:496
13:57:11 /workspace/src/includes/htmlform/HTMLForm.php:1729
13:57:11 /workspace/src/includes/htmlform/HTMLForm.php:1321
13:57:11 /workspace/src/includes/htmlform/HTMLForm.php:1102
13:57:11 /workspace/src/extensions/ConfirmEdit/tests/phpunit/HTMLFancyCaptchaFieldTest.php:13
13:57:11 /workspace/src/maintenance/doMaintenance.php:106
13:57:11 === Logs generated by test case
13:57:11 [wfDebug] [debug] ContextSource::getContext (HTMLForm): called and $context is null. Using RequestContext::getMain() for sanity {"private":false}
13:57:11 [GlobalTitleFail] [info] RequestContext::getTitle called with no title set. {"exception":{}}
13:57:11 [GlobalTitleFail] [info] RequestContext::getTitle called with no title set. {"exception":{}}
13:57:11 [GlobalTitleFail] [info] RequestContext::getTitle called with no title set. {"exception":{}}
13:57:11 [GlobalTitleFail] [info] RequestContext::getTitle called with no title set. {"exception":{}}
13:57:11 [GlobalTitleFail] [info] RequestContext::getTitle called with no title set. {"exception":{}}
13:57:11 [GlobalTitleFail] [info] RequestContext::getTitle called with no title set. {"exception":{}}
13:57:11 [GlobalTitleFail] [info] RequestContext::getTitle called with no title set. {"exception":{}}
13:57:11 [wfDebug] [debug] ContextSource::getContext (HTMLForm): called and $context is null. Using RequestContext::getMain() for sanity {"private":false}
13:57:11 [GlobalTitleFail] [info] RequestContext::getTitle called with no title set. {"exception":{}}
13:57:11 [GlobalTitleFail] [info] RequestContext::getTitle called with no title set. {"exception":{}}
13:57:11 [GlobalTitleFail] [info] RequestContext::getTitle called with no title set. {"exception":{}}
13:57:11 [GlobalTitleFail] [info] MessageCache::parse called with no title set. {"exception":{}}
13:57:11 ===
13:57:11 
13:57:11 5) FlaggablePageTest::testPageDataFromTitle
13:57:11 Use of InternalParseBeforeSanitize hook (used in VariablesHooks::onInternalParseBeforeSanitize) was deprecated in MediaWiki 1.35. [Called from MediaWiki\HookContainer\HookContainer::run in /workspace/src/includes/HookContainer/HookContainer.php at line 140]
13:57:11 
13:57:11 /workspace/src/includes/debug/MWDebug.php:376
13:57:11 /workspace/src/includes/debug/MWDebug.php:352
13:57:11 /workspace/src/includes/debug/MWDebug.php:230
13:57:11 /workspace/src/includes/GlobalFunctions.php:1035
13:57:11 /workspace/src/includes/HookContainer/HookContainer.php:329
13:57:11 /workspace/src/includes/HookContainer/HookContainer.php:140
13:57:11 /workspace/src/includes/HookContainer/HookRunner.php:2242
13:57:11 /workspace/src/includes/parser/Parser.php:1561
13:57:11 /workspace/src/includes/parser/Parser.php:651
13:57:11 /workspace/src/includes/content/WikitextContent.php:375
13:57:11 /workspace/src/includes/content/AbstractContent.php:591
13:57:11 /workspace/src/includes/Revision/RenderedRevision.php:266
13:57:11 /workspace/src/includes/Revision/RenderedRevision.php:235
13:57:11 /workspace/src/includes/Revision/RevisionRenderer.php:215
13:57:11 /workspace/src/includes/Revision/RevisionRenderer.php:152
13:57:11 /workspace/src/includes/Revision/RenderedRevision.php:197
13:57:11 /workspace/src/includes/Storage/DerivedPageDataUpdater.php:1337
13:57:11 /workspace/src/includes/edit/PreparedEdit.php:104
13:57:11 /workspace/src/includes/edit/PreparedEdit.php:119
13:57:11 /workspace/src/includes/Storage/DerivedPageDataUpdater.php:1315
13:57:11 /workspace/src/includes/page/WikiPage.php:2143
13:57:11 /workspace/src/extensions/TemplateData/includes/TemplateDataHooks.php:85
13:57:11 /workspace/src/includes/HookContainer/HookContainer.php:333
13:57:11 /workspace/src/includes/HookContainer/HookContainer.php:140
13:57:11 /workspace/src/includes/HookContainer/HookRunner.php:2803
13:57:11 /workspace/src/includes/Storage/PageUpdater.php:776
13:57:11 /workspace/src/includes/page/WikiPage.php:2042
13:57:11 /workspace/src/includes/page/WikiPage.php:1894
13:57:11 /workspace/src/extensions/FlaggedRevs/tests/phpunit/FlaggablePageTest.php:31
13:57:11 /workspace/src/maintenance/doMaintenance.php:106
13:57:11 
13:57:11 ERRORS!
13:57:11 Tests: 5068, Assertions: 16723, Errors: 5, Skipped: 55.
13:57:11 
13:57:11 Deprecated: Use of InternalParseBeforeSanitize hook (used in VariablesHooks::onInternalParseBeforeSanitize) was deprecated in MediaWiki 1.35. [Called from MediaWiki\HookContainer\HookContainer::run in /workspace/src/includes/HookContainer/HookContainer.php at line 140] in /workspace/src/includes/debug/MWDebug.php on line 376
13:57:11 
13:57:11 Deprecated: Use of InternalParseBeforeSanitize hook (used in VariablesHooks::onInternalParseBeforeSanitize) was deprecated in MediaWiki 1.35. [Called from MediaWiki\HookContainer\HookContainer::run in /workspace/src/includes/HookContainer/HookContainer.php at line 140] in /workspace/src/includes/debug/MWDebug.php on line 376