Page MenuHomePhabricator

InvalidArgumentException from line 827 of /workspace/src/includes/registration/ExtensionProcessor.php: It was attempted to load MetricsPlatform twice
Closed, ResolvedPublic

Description

Seen on Flow patches on REL1_45->REL1_43

https://integration.wikimedia.org/ci/job/quibble-composer-mysql-php83/10513/console

21:12:20 Including extensions... InvalidArgumentException from line 827 of /workspace/src/includes/registration/ExtensionProcessor.php: It was attempted to load MetricsPlatform twice, from /workspace/src/extensions/MetricsPlatform/extension.json and /workspace/src/extensions/TestKitchen/extension.json.
21:12:20 #0 /workspace/src/includes/registration/ExtensionProcessor.php(286): MediaWiki\Registration\ExtensionProcessor->extractCredits()
21:12:20 #1 /workspace/src/includes/registration/ExtensionProcessor.php(257): MediaWiki\Registration\ExtensionProcessor->extractInfo()
21:12:20 #2 /workspace/src/includes/installer/Task/ExtensionsProvider.php(157): MediaWiki\Registration\ExtensionProcessor->extractInfoFromFile()
21:12:20 #3 /workspace/src/includes/installer/Task/ExtensionsProvider.php(41): MediaWiki\Installer\Task\ExtensionsProvider->getAutoExtensionData()
21:12:20 #4 /workspace/src/includes/installer/Task/TaskRunner.php(155): MediaWiki\Installer\Task\ExtensionsProvider->execute()
21:12:20 #5 /workspace/src/includes/installer/Task/TaskRunner.php(96): MediaWiki\Installer\Task\TaskRunner->runTask()
21:12:20 #6 /workspace/src/includes/installer/Task/TaskRunner.php(41): MediaWiki\Installer\Task\TaskRunner->loadExtensions()
21:12:20 #7 /workspace/src/includes/installer/Installer.php(1471): MediaWiki\Installer\Task\TaskRunner->execute()
21:12:20 #8 /workspace/src/includes/installer/CliInstaller.php(212): MediaWiki\Installer\Installer->performInstallation()
21:12:20 #9 /workspace/src/maintenance/install.php(207): MediaWiki\Installer\CliInstaller->execute()
21:12:20 #10 /workspace/src/maintenance/includes/MaintenanceRunner.php(696): CommandLineInstaller->execute()
21:12:20 #11 /workspace/src/maintenance/doMaintenance.php(88): MediaWiki\Maintenance\MaintenanceRunner->run()
21:12:20 #12 /workspace/src/maintenance/install.php(278): require_once('...')
21:12:20 #13 {main}

Event Timeline

Reedy triaged this task as High priority.Jan 8 2026, 9:14 PM

Change #1224815 had a related patch set uploaded (by Reedy; author: Reedy):

[integration/config@master] Zuul: Stop loading Extension:TestKitchen on REL1_XX branches

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

The problem when you push the whole history of an extension when renaming and don't fix the release branches...

Change #1224815 merged by jenkins-bot:

[integration/config@master] Zuul: Stop loading Extension:TestKitchen on REL1_XX branches

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

My patch can be reverted when MetricsPlatform is gone from CI dependancies.

Loading TestKitchen will still load MetricsPlatform (effectively)...

So whether someone wants to backport to release branches (probably unnecessary as it's presumably a WMF only extension?) or delete the REL1_XX branches that exist in TestKitchen...

@Reedy thank you for fixing our foibles -- the renaming has been a bit of a doozy

phuedx closed this task as Resolved.EditedJan 27 2026, 7:43 PM
phuedx claimed this task.
phuedx subscribed.

AIUI this has been fixed. Many thanks @Reedy.

I will add notes about tidying up the release branches to the task about undeploying the MetricsPlatform extension.