Page MenuHomePhabricator

Feature request: Evaluate "require" field from "extension.json" in automated test environment
Open, MediumPublic


At the moment one must declare inter-extension dependencies within the script of the integration-config. Since MediaWiki version 1.31 the extension.json file also allows to specify such dependencies. It would be nice to have the test environment evaluate the entry from extension.json, so the dependency doesn't need to be maintained in two different places.


The zuul/ is a centrally hardcoded list of dependencies. That doesn't make it easy to adjust.

Since 1.29 extensions can specify dependencies, so we can probably parse extension.json and recursively clone all the dependencies.

This feature request was inspired by @Umherirrender in T130811

See also T182472: Allow extension registration to suggest optional extension/skin or MediaWiki version

Event Timeline

Osnard created this task.Jan 26 2018, 7:06 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 26 2018, 7:06 AM

There are some dependency also for extensions not strong required, but needed by tests to make unit tests or phan happy (
It is possible that this extensions are not listed as "required". That means the old way is still needed or maybe a "suggest" key can help here to list them (T182472)

thcipriani triaged this task as Medium priority.Jan 6 2020, 1:33 AM

From a discussion I had to day, we would first need the ability to define an extension as being optional which is T182472

An example is AbuseFilter which can be used by itself. But it also has feature that enable themselves when CheckUser or CodeEditor extensions are present and we need CI to have those in order to run the integration tests between those extensions.

While Quibble learned to recursively process extension.json and automatically clone all the dependencies (via --resolve-requires), we can not define those optional dependencies yet in extension.json.

awight moved this task from Backlog to Enhancement on the Quibble board.Apr 19 2020, 8:21 AM