Thanks for the replies.

The things is that we want Jenkins to run with MediaWiki 1.35, which is why I changed the version in extension.json. There are changes in the development version that Jenkins runs that aren't compatible with our code.

Sebastian Berlin
Utvecklare/Developer
Wikimedia Sverige (WMSE)

E-post/E-Mail: sebastian.berlin@wikimedia.se
Telefon/Phone: (+46) 0707 - 92 03 84


On Mon, 12 Sept 2022 at 13:04, Derick Alangi <alangiderick@gmail.com> wrote:
Hi,

Based on the error you posted, I could reproduce it locally and I think the issue is that I don't think the registration mechanism currently supports regular expression for { "requires": { "MediaWiki": "..." } }, so, it's advised to pick a (minimum) version of MediaWiki core you want your extension to work with and then use either of the logical operators: ">=", ">", "<=", "<" to cover a range of versions needed.

The most syntax I've seen in almost all extension files is: { "requires": { "MediaWiki": ">= 1.XX.X" } } for example: { "requires": { "MediaWiki": ">= 1.35.0" } }.

Maybe Legoktm has a few more ideas on this and I would also say that pinning to a specific version won't work either like "= 1.35.0" or "1.35.0".

Regards!

--
Derick A.
From One Developer to Another!


On Mon, Sep 12, 2022 at 11:53 AM Derick Alangi <alangiderick@gmail.com> wrote:
Hi Sebastian,

Can you change:
"requires": {
     "MediaWiki": "1.35.*"
}

to:
"requires": {
     "MediaWiki": ">=1.35.0"
}

Let me know if that helps.

--
Derick A.
From One Developer to Another!


On Mon, Sep 12, 2022 at 11:21 AM Sebastian Berlin <sebastian.berlin@wikimedia.se> wrote:
I'm having some issues with Jenkins running the latest version of MW for an extension (Wikispeech). Jenkins run with the 1.40 alpha, but we want the extension to support the latest LTS (1.35 as of right now).

I tried changing in extension.json to:
"requires": {
     "MediaWiki": "1.35.*"
}
which caused an error for Jenkins:
12:44:09 A dependency error was encountered while installing the extension "Wikispeech": Wikispeech is not compatible with the current MediaWiki core (version 1.40.0-alpha), it requires: 1.35.*.

How can I specify what version of MW to run with? I've looked at both the MW wiki and Wikitech, but hasn't found any instructions for this.

Best,

Sebastian Berlin
Utvecklare/Developer
Wikimedia Sverige (WMSE)

E-post/E-Mail: sebastian.berlin@wikimedia.se
Telefon/Phone: (+46) 0707 - 92 03 84
_______________________________________________
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org
To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
_______________________________________________
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org
To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/