Originally found when testing this patch, @Reedy also ran a no-change patch which failed for the same reason whilst running PHPUnit extensions suite (with database):
02:25:28 INFO:quibble.commands:>>> Start: PHPUnit extensions suite (with database) 02:25:28 INFO:quibble.commands:PHPUnit extensions suite (with database) 02:25:28 INFO:quibble.commands:composer run --timeout=0 phpunit:entrypoint -- --testsuite extensions --group Database --exclude-group Broken,ParserFuzz,Stub,Standalone 02:25:28 > php tests/phpunit/phpunit.php '--testsuite' 'extensions' '--group' 'Database' '--exclude-group' 'Broken,ParserFuzz,Stub,Standalone' 02:25:28 Using PHP 7.2.34-18+0~20210223.60+debian10~1.gbpb21322+wmf5 02:25:31 PHPUnit 8.5.23 by Sebastian Bergmann and contributors. 02:25:31 [ snip ] 02:26:31 There were 16 errors: 02:26:31
02:26:31 1) AbuseFilterConsequencesTest::testFilterConsequences with data set "Basic test for "move" action" (array(2), array('move', 'Test page', 'Another test page'), array(array(2), array(2))) 02:26:31 Undefined offset: 2 /workspace/src/includes/libs/objectcache/wancache/WANObjectCache.php:2197 /workspace/src/includes/libs/objectcache/wancache/WANObjectCache.php:1689 /workspace/src/includes/libs/objectcache/wancache/WANObjectCache.php:1518 /workspace/src/includes/libs/objectcache/wancache/WANObjectCache.php:2212 /workspace/src/extensions/PageTriage/includes/ArticleMetadata.php:198 /workspace/src/extensions/PageTriage/includes/PageTriage.php:159 /workspace/src/extensions/PageTriage/includes/PageTriage.php:57 /workspace/src/extensions/PageTriage/includes/Hooks.php:278 /workspace/src/extensions/PageTriage/includes/Hooks.php:172 /workspace/src/includes/HookContainer/HookContainer.php:338 /workspace/src/includes/HookContainer/HookContainer.php:137 /workspace/src/includes/HookContainer/HookRunner.php:2807 /workspace/src/includes/Storage/PageUpdater.php:1588 /workspace/src/includes/libs/rdbms/database/Database.php:4434 /workspace/src/includes/libs/rdbms/database/DBConnRef.php:69 /workspace/src/includes/libs/rdbms/database/DBConnRef.php:645 /workspace/src/includes/deferred/AtomicSectionUpdate.php:39 /workspace/src/includes/deferred/DeferredUpdates.php:536 /workspace/src/includes/deferred/DeferredUpdates.php:419 /workspace/src/includes/deferred/DeferredUpdates.php:229 /workspace/src/includes/deferred/DeferredUpdatesScope.php:267 /workspace/src/includes/deferred/DeferredUpdatesScope.php:196 /workspace/src/includes/deferred/DeferredUpdates.php:250 /workspace/src/includes/deferred/DeferredUpdates.php:301 /workspace/src/includes/deferred/DeferredUpdates.php:136 /workspace/src/includes/Storage/PageUpdater.php:1525 /workspace/src/includes/Storage/PageUpdater.php:911 /workspace/src/includes/page/WikiPage.php:2002 /workspace/src/tests/phpunit/MediaWikiIntegrationTestCase.php:275 /workspace/src/extensions/AbuseFilter/tests/phpunit/AbuseFilterConsequencesTest.php:555 /workspace/src/extensions/AbuseFilter/tests/phpunit/AbuseFilterConsequencesTest.php:783 /workspace/src/tests/phpunit/MediaWikiIntegrationTestCase.php:457 === Logs generated by test case [objectcache] [debug] MainWANObjectCache using store {class} {"class":"EmptyBagOStuff"} [localisation] [debug] LocalisationCache using store LCStoreNull [] [UserOptionsManager] [debug] Loading options from database {"user_id":2} [GlobalTitleFail] [info] RequestContext::getTitle called with no title set. {"exception":{}} [DeferredUpdates] [debug] DeferredUpdates::run: started MWCallableUpdate_EchoHooks::onUserSaveSettings #32419 [] [DeferredUpdates] [debug] DeferredUpdates::run: ended MWCallableUpdate_EchoHooks::onUserSaveSettings #32419, processing time: 0.00044107437133789 [] [DeferredUpdates] [debug] DeferredUpdates::run: started MWCallableUpdate_MediaWiki\User\UserGroupManager->addUserToGroup #32415 [] [DeferredUpdates] [debug] DeferredUpdates::run: ended MWCallableUpdate_MediaWiki\User\UserGroupManager->addUserToGroup #32415, processing time: 0.00064301490783691 [] [localisation] [debug] LocalisationCache using store LCStoreNull [] [objectcache] [debug] MainWANObjectCache using store {class} {"class":"EmptyBagOStuff"} [ContentHandler] [info] Registered handler for wikitext: WikitextContentHandler [] [objectcache] [debug] MainObjectStash using store {class} {"class":"HashBagOStuff"} [ParserCache] [debug] Creating ParserCache instance for pcache [] [MessageCache] [debug] MessageCache using store {class} {"class":"HashBagOStuff"} [wfDebug] [debug] User::getBlockedStatus: checking blocked status for UTSysop {"private":false} [UserOptionsManager] [debug] Loading options from database {"user_id":1} [wfDebug] [debug] ParserFactory: using default preprocessor {"private":false} [localisation] [debug] LocalisationCache::isExpired(en): cache missing, need to make one [] [objectcache] [warning] Rejected set() for {cachekey} due to pending writes. {"cachekey":"global:NameTableSqlStore:content_models:wikidb-unittest_","lag":0,"age":0.2500460147857666,"walltime":0.00030398368835449219} [objectcache] [debug] fetchOrRegenerate(global:NameTableSqlStore:content_models:wikidb-unittest_): miss, new value computed [] [objectcache] [warning] Rejected set() for {cachekey} due to pending writes. {"cachekey":"global:NameTableSqlStore:slot_roles:wikidb-unittest_","lag":0,"age":0.2505791187286377,"walltime":0.00027418136596679688} [objectcache] [debug] fetchOrRegenerate(global:NameTableSqlStore:slot_roles:wikidb-unittest_): miss, new value computed [] [EventStreamConfig] [debug] Selecting stream configs for target streams: {streams} {"streams":"mediawiki.revision-create"} [EventStreamConfig] [warning] Stream 'mediawiki.revision-create' does not match any `stream` in stream config [] [EventBus] [debug] Using EventServiceDefault eventbus for stream mediawiki.revision-create. destination_event_service is not configured. [] [objectcache] [debug] fetchOrRegenerate(wikidb-unittest_:page-restrictions:v1:2:2): miss, new value computed [] [objectcache] [debug] fetchOrRegenerate(wikidb-unittest_:page-restrictions:v1:2:2): miss, new value computed [] [ParserCache] [debug] Creating RevisionOutputCache instance for rcache [] [objectcache] [warning] Rejected set() for {cachekey} due to pending writes. {"cachekey":"global:revision-row-1.29:wikidb-unittest_:2:2","lag":0,"age":0.25769615173339844,"walltime":0.00079298019409179688} [objectcache] [debug] fetchOrRegenerate(global:revision-row-1.29:wikidb-unittest_:2:2): miss, new value computed [] [objectcache] [debug] fetchOrRegenerate(wikidb-unittest_:page-content-model:2): miss, new value computed [] [objectcache] [debug] getWithSetCallback(wikidb-unittest_:page-content-model:2): process cache hit [] [ParserCache] [debug] ParserOutput metadata cache miss {"name":"pcache"} [objectcache] [debug] getWithSetCallback(wikidb-unittest_:page-content-model:2): process cache hit [] [objectcache] [debug] getWithSetCallback(wikidb-unittest_:page-content-model:2): process cache hit [] [ParserCache] [debug] ParserOutput metadata cache miss {"name":"pcache"} [ParserCache] [debug] Saved in parser cache {"name":"pcache","key":"wikidb-unittest_:pcache:idhash:2-0!canonical","cache_time":"20220305022533","rev_id":2} [objectcache] [debug] getWithSetCallback(wikidb-unittest_:page-content-model:2): process cache hit [] [DeferredUpdates] [debug] DeferredUpdates::run: started AutoCommitUpdate_Title::invalidateCache #32134 [] [DeferredUpdates] [debug] DeferredUpdates::run: ended AutoCommitUpdate_Title::invalidateCache #32134, processing time: 0.00043797492980957 [] [DeferredUpdates] [debug] DeferredUpdates::run: started MWCallableUpdate_MediaWiki\Extension\EventBus\EventBusHooks::sendRevisionCreateEvent #32118 [] [DeferredUpdates] [debug] DeferredUpdates::run: ended MWCallableUpdate_MediaWiki\Extension\EventBus\EventBusHooks::sendRevisionCreateEvent #32118, processing time: 5.3167343139648E-5 [] [DeferredUpdates] [debug] DeferredUpdates::run: started MWCallableUpdate_WikimediaEvents\WikimediaEventsHooks::onRevisionRecordInserted #32122 [] [DeferredUpdates] [debug] DeferredUpdates::run: ended MWCallableUpdate_WikimediaEvents\WikimediaEventsHooks::onRevisionRecordInserted #32122, processing time: 0.0012390613555908 [] [DeferredUpdates] [debug] DeferredUpdates::run: started MWCallableUpdate_FlaggedRevs::purgeSquid #32298 [] [DeferredUpdates] [debug] DeferredUpdates::run: ended MWCallableUpdate_FlaggedRevs::purgeSquid #32298, processing time: 0.00019192695617676 [] [DeferredUpdates] [debug] DeferredUpdates::run: started UserEditCountUpdate #32088 [] [DeferredUpdates] [debug] DeferredUpdates::run: ended UserEditCountUpdate #32088, processing time: 0.00047492980957031 [] [DeferredUpdates] [debug] DeferredUpdates::run: started CdnCacheUpdate #32064 [] [squid] [info] CdnCacheUpdate::purge: http://127.0.0.1:9412/index.php/Test_page http://127.0.0.1:9412/index.php?title=Test_page&action=history {"private":false} [DeferredUpdates] [debug] DeferredUpdates::run: ended CdnCacheUpdate #32064, processing time: 0.00013089179992676 [] [DeferredUpdates] [debug] DeferredUpdates::run: started AtomicSectionUpdate_MediaWiki\Storage\PageUpdater::getAtomicSectionUpdate #32032 [] [SaveParse] [debug] MediaWiki\Revision\RenderedRevision::outputVariesOnRevisionMetaData: reusing prepared output for '{title}' {"title":"Test page"} [SaveParse] [debug] MediaWiki\Revision\RenderedRevision::outputVariesOnRevisionMetaData: reusing prepared output for '{title}' {"title":"Test page"} [ParserCache] [debug] Saved in parser cache {"name":"pcache","key":"wikidb-unittest_:pcache:idhash:2-0!canonical","cache_time":"20220305022533","rev_id":2} [objectcache] [debug] getWithSetCallback(wikidb-unittest_:page-content-model:2): process cache hit [] [EventStreamConfig] [debug] Selecting stream configs for target streams: {streams} {"streams":"mediawiki.page-create"} [EventStreamConfig] [warning] Stream 'mediawiki.page-create' does not match any `stream` in stream config [] [EventBus] [debug] Using EventServiceDefault eventbus for stream mediawiki.page-create. destination_event_service is not configured. [] [objectcache] [debug] fetchOrRegenerate(wikidb-unittest_:pagetriage-valid-tags): miss, new value computed [] [exception] [error] [{reqId}] {exception_url} PHPUnit\Framework\Error\Notice: Undefined offset: 2 {"exception":{},"exception_url":"[no req]","reqId":"f04b831ec635d2308c616f81","caught_by":"other"} .. [DeferredUpdates] [error] Deferred update '{deferred_type}' failed to run. {"deferred_type":"AtomicSectionUpdate_MediaWiki\\Storage\\PageUpdater::getAtomicSectionUpdate","exception":{}} [DeferredUpdates] [debug] DeferredUpdates::run: ended AtomicSectionUpdate_MediaWiki\Storage\PageUpdater::getAtomicSectionUpdate #32032, processing time: 0.0078108310699463 [] [DeferredUpdates] [debug] DeferredUpdates::run: started RefreshSecondaryDataUpdate #32063 [] [wfDebug] [debug] BacklinkCache::queryLinks: got results from DB {"private":false} [DeferredUpdates] [debug] DeferredUpdates::run: ended RefreshSecondaryDataUpdate #32063, processing time: 0.01281213760376 [] [DeferredUpdates] [debug] DeferredUpdates::run: started MWCallableUpdate_MediaWiki\Storage\DerivedPageDataUpdater->doUpdates #32088 [] [DeferredUpdates] [debug] DeferredUpdates::run: ended MWCallableUpdate_MediaWiki\Storage\DerivedPageDataUpdater->doUpdates #32088, processing time: 8.0108642578125E-5 [] [DeferredUpdates] [debug] DeferredUpdates::run: started SearchUpdate #32135 [] [DeferredUpdates] [debug] DeferredUpdates::run: ended SearchUpdate #32135, processing time: 0.00079607963562012 [] [DeferredUpdates] [debug] DeferredUpdates::run: started MWCallableUpdate_EchoHooks::onPageSaveComplete #32105 [] [DeferredUpdates] [debug] DeferredUpdates::run: ended MWCallableUpdate_EchoHooks::onPageSaveComplete #32105, processing time: 0.0015828609466553 [] [DeferredUpdates] [debug] DeferredUpdates::run: started MWCallableUpdate_MediaWiki\Extension\EventBus\EventBusHooks::sendRevisionCreateEvent #32136 [] [DeferredUpdates] [debug] DeferredUpdates::run: ended MWCallableUpdate_MediaWiki\Extension\EventBus\EventBusHooks::sendRevisionCreateEvent #32136, processing time: 4.7206878662109E-5 [] [DeferredUpdates] [debug] DeferredUpdates::run: started AutoCommitUpdate_MediaWiki\Deferred\LinksUpdate\LinksUpdate::doUpdate #32015 [] [DeferredUpdates] [debug] DeferredUpdates::run: ended AutoCommitUpdate_MediaWiki\Deferred\LinksUpdate\LinksUpdate::doUpdate #32015, processing time: 0.00014376640319824 [] [DeferredUpdates] [debug] DeferredUpdates::run: started SiteStatsUpdate #32052 [] [DeferredUpdates] [debug] DeferredUpdates::run: ended SiteStatsUpdate #32052, processing time: 0.00045299530029297 [] [DeferredUpdates] [debug] DeferredUpdates::run: started MWCallableUpdate_MediaWiki\Extension\PageTriage\Hooks::onLinksUpdateComplete #32140 [] [DeferredUpdates] [debug] DeferredUpdates::run: ended MWCallableUpdate_MediaWiki\Extension\PageTriage\Hooks::onLinksUpdateComplete #32140, processing time: 5.5074691772461E-5 [] [DeferredUpdates] [debug] DeferredUpdates::run: started CdnCacheUpdate #32089 [] [squid] [info] CdnCacheUpdate::purge: http://127.0.0.1:9412/index.php/Test_page http://127.0.0.1:9412/index.php?title=Test_page&action=history http://127.0.0.1:9412/index.php/Talk:Test_page http://127.0.0.1:9412/index.php?title=Talk:Test_page&action=history {"private":false} [DeferredUpdates] [debug] DeferredUpdates::run: ended CdnCacheUpdate #32089, processing time: 0.00012493133544922 []
I've kept the noop build (as I don't know how often they're removed)