Page MenuHomePhabricator

Ensure extension master branch still works with the indicated MediaWiki version
Open, Needs TriagePublic

Description

In Gerrit we test the master branches of extensions with the master branch of mediawiki/core. We do not have any support to run tests against a specific MediaWiki version though that would be an interesting thing to have. Probably by having another job that look at extension.json for the minimum mediawiki version requirement.

@Foxtrott maintained mediawiki/extensions/Lingo and makes sure the master branch works on 1.27, I guess via a test in Travis. Its extension.json has:

{
    "requires": { "MediaWiki": "~1.27" }
}

So theorically, we could have a job triggering on master branches of all extensions which would parse the requirement field and install MediaWiki core REL1_27 then run tests.

It is a bit more complicated with the introduction of PHPUnit 6 in mediawiki. The tests would need to be made runnable with PHPUnit 4 as well :/

JADE had a similar request (T207678)

Event Timeline

Vvjjkkii renamed this task from Ensure extension master branch still works with the indicated MediaWiki version to wlbaaaaaaa.Jul 1 2018, 1:05 AM
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
CommunityTechBot renamed this task from wlbaaaaaaa to Ensure extension master branch still works with the indicated MediaWiki version.Jul 1 2018, 8:56 PM
CommunityTechBot raised the priority of this task from High to Needs Triage.
CommunityTechBot updated the task description. (Show Details)
CommunityTechBot added a subscriber: Aklapper.

Apologies for being sloppy, but I want to make it clear that any workaround is preferable to nothing, in our case. The MediaWiki-LTS version changes only every few years, for example, so for Jade I'm happy to simply include an extra Zuul target until the nicer solution can be worked out.