This effectively re-applies the reverted commit 44d8d23447,
but with bug T277161 fixed.
Bug: T272882
Bug: T277161
Depends-On: I32a18ebe0c5c181a79d22a91c51f25c06f9c4674
Change-Id: I988aef085f485ca344baf939ef8d7010af0e969b
wikimedia/minify v2.2.0 minifies some code incorrectly, breaking all
Wikibase CI (among other effects). Revert it until the bug has been
fixed and a new version released.
This reverts commit 44d8d23447.
Bug: T277061
Change-Id: If814ae20f7d6602e0167e038ef64f485160bb037
Remove the requirement for composer-plugin-api 1.1, so that Composer 2.0
can be used.
Throw an exception if the user tries to update with an old version of
composer-merge-plugin using Composer 2.0.
Change-Id: I0302e250f4a4fd834aee7bd84bd3f2da4fc77700
- JavaScriptMinifier: The public interface for this internal class is
ResourceLoader::filter which, except for one caller (minify.php)
is indeed consistently used already, no other callers need replacing.
- CSSMin: Idem for minification, however, this class has some other
method as well, which have a number of internal users, but none
outside core. These have all been replaced in this commit.
- Remove pear/net_url2 as own dependency as this was only used by CSSMin
and recently added there. This is now a dependency of wikimedia/minify
instead. This was not part of the public API and no longer mentioned
here in composer.json or RELEASE-NOTES. (It remains pinned in
mediawiki-vendor, however.)
Bug: T273247
Depends-On: Iadff8c2112d5e53bd994ab4882006e8c644a2379
Depends-On: Id3c6dcc0b952a9efe34b3a9ed88b716101a51f87
Depends-On: I589be910f57289fd908b22db87241b0e52da60d4
Change-Id: I8d71fc64aeecdb31db218b02e361ae9bb0d19b48
* Add $wgRequestTimeLimit. If it is non-null, it starts a time limit,
using Excimer with a fallback to set_time_limit().
* Add pretty formatting of timeout exceptions thrown by the library.
Related refactoring.
* Expose the library's critical section feature in MediaWikiServices
* In Setup.php, call warnIfHeadersSent() before sending session headers.
This helped to debug a related issue I had.
* In wfTransactionalTimeLimit() use the new library, and respect the
existing library time limit if it is larger than
$wgTransactionalTimeLimit.
Bug: T269326
Depends-On: I6409ad8a5cba775c27b0d5a79d3300c4dac4c91a
Change-Id: I2e6f6351c451407c06cc7e20932548f7b62e36b6
Make Command extend Shellbox's UnboxedCommand. Only a few MediaWiki-
specific features remain in the subclass.
Also add BoxedCommand abstraction and Shellbox client.
The Result alias didn't actually work, I just had to change the return
type hint.
Bug: T260330
Change-Id: Iff7428e4c5fe3959a5cda8e113f223caa0976fc1
This has been mentioned and referenced from time to time, but having
it defined in composer.json would make it much easier to refer to
and make use of without having to worry about the specific parameters.
This is essentially the same way that Quibble works currently.
Also, simplify the Travis CI setup by using this instead of
concerning that configuration with MySQL and Travis' specific
way of dealing with that.
Usage:
# Install with pure PHP and start a server (no Apache/MySQL/..)
$ composer mw-install
$ composer serve
$ open http://localhost:4000
Based on <https://wikitech.wikimedia.org/wiki/Fresnel#Quick_MediaWiki>.
Bug: T56856
Change-Id: Ib1f8a86afe48b8f1ae6db733735e81f51d698fc9
Use --long-progress-bar, not -p, as the former is clearer, and also more suitable for CI logs.
It's also what LibUp would add.
Follow-Up: I119224c37a10d2a59068f899baffc6406ea60335
Bug: T253477
Change-Id: Ibd94fb14561e5abef55fdc0a288ace5d50447221
Some irritating breaking changes, including dropping PHP 7.2 support
and renaming the classes we care about. For now, hack in via || and
some back-compatibility class aliases.
Bug: T270732
Change-Id: I685f099584d2f0e5fa17f1f4275eab5289c7bfee