Commit graph

752 commits

Author SHA1 Message Date
Lucas Werkmeister
0669906e51 tests: Upgrade giorgiosironi/eris to 0.13.0
This version, unlike 0.10.0, supports PHP 8.1. (The library isn’t used
in MediaWiki itself, but needs to be installed for WikibaseLexeme tests
to work, see change I3909fb3402 / commit 25e6dbdb1a.)

Bug: T319219
Change-Id: I4ca5caf3535d440cb22d336134b32d50e0c23440
2022-10-27 17:37:22 +02:00
libraryupgrader
b281fb4ebd build: Updating npm dependencies
* mocha: 9.2.1 → 9.2.2
  * https://github.com/advisories/GHSA-f8q6-p94x-37v3
* recursive-readdir: 2.2.2 → 2.2.3
  * https://github.com/advisories/GHSA-f8q6-p94x-37v3

Change-Id: I9643a6d5a6f8136e8f670b2b224daeb3361b7741
2022-10-26 00:25:31 +00:00
Reedy
fb742a9872 Upgrading wikimedia/xmp-reader (0.8.4 => 0.9.0)
Bug: T320282
Change-Id: I6ab1ff865a98203410374fe7ae196ab49d9673ba
Depends-On: I52f44ec52a36d9d2ca4752bcd97972806aca83ba
2022-10-19 20:48:52 +01:00
jenkins-bot
b904257d47 Merge "Upgrading guzzlehttp/guzzle (7.4.5 => 7.5.0)" 2022-10-11 19:34:34 +00:00
jenkins-bot
4b618bc1d6 Merge "build: Update mediawiki/mediawiki-phan-config to 0.12.0" 2022-10-08 23:57:10 +00:00
Reedy
2c88dd125b Upgrading wikimedia/xmp-reader (0.8.3 => 0.8.4)
Change-Id: I0ec33ce99c50a598207327947896ea32cbe35609
Depends-On: I4449457ca0daf06a7b0a8a746abee7f6b12ab974
2022-10-08 17:35:10 +00:00
Daimona Eaytoy
947ff7c0f5 build: Update mediawiki/mediawiki-phan-config to 0.12.0
This patch only adds and removes suppressions, which must be done in the
same patch as the version bump.

Bug: T298571
Change-Id: I4044d4d9ce82b3dae7ba0af85bf04f22cb1dd347
2022-10-08 15:45:42 +02:00
Daimona Eaytoy
7a494d1fa4 tests: Upgrade PHPUnit from 8.5+ to 9.5+
* DeprecatedHooksTest: Don't use assertContains().
* Replace uses of deprecated asserts:
  - assertFileNotExists() -> assertFileDoesNotExist()
* Update hierarchy of MediaWikiPHPUnitResultPrinter, since ResultPrinter
  is an interface in PHPUnit 9.
* Remove temporary forward-compat methods.
* Remove directories that don't exist from tests/phpunit/suite.xml, since
  they now make PHPUnit exit:
   - tests/phpunit/skins, it used to have SideBarTest, then moved to
     tests/phpunit/includes/skins
   - tests/phpunit/documentation, it used to have ReleaseNotesTest, then
     moved to tests/phpunit/unit/documentation
* Update configuration with --migrate-configuration and reformat.
* Avoid redefining getMockBuilder() in
  ActionModuleBasedHandlerTestTrait, use a @method annotation instead.
* In RCCacheEntryFactoryTest, avoid using internal PHPUnit logic for
  HTML validation, and use native PHP methods instead. The code was
  copied from Xml::load (moved to \Xml\Loader::load in PHPUnit 9) and
  simplified for this use case.

Bug: T243600
Bug: T262076
Change-Id: I851b9158b73d0cfc315eed9d63b15c54b05895e3
2022-10-08 02:03:55 +02:00
libraryupgrader
b70581e4ca
build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 38.0.0 → 39.0.0
  The following sniffs are failing and were disabled:
  * MediaWiki.PHPUnit.AssertEmpty.AssertEmptyUsed

* php-parallel-lint/php-console-highlighter: 0.5 → 1.0.0
* php-parallel-lint/php-parallel-lint: 1.3.1 → 1.3.2

npm:
* grunt-banana-checker: 0.9.0 → 0.10.0
* grunt: 1.5.2 → 1.5.3
* karma: 6.3.15 → 6.4.1
* async: 2.6.3 → 2.6.4
  * https://github.com/advisories/GHSA-fwr7-v2mv-hh25
* got: 11.8.3 → 11.8.5
  * https://github.com/advisories/GHSA-pfrx-2q88-qq97

Change-Id: I1d7bc9c9599b48d2bd837617cad409a31adb362a
2022-10-07 21:09:37 +03:00
Reedy
86052bef70 Upgrading guzzlehttp/guzzle (7.4.5 => 7.5.0)
PHP 8.2 support

Change-Id: I20b5f7743cdee36f1274bcfad02ecb6e89a28ac8
Depends-On: I7c12ec0bb4dac2a6d4bf8923da03e56c2367fe0f
2022-09-30 17:57:47 +01:00
Reedy
28a7b6eea2 Upgrading pear/net_smtp (1.10.0 => 1.10.1)
Depends-On: I989e5262d0c5d9c5e263741e1f4e7763e00d4808
Change-Id: Ic1a7a9507e186e4c7bac8b0d252a3f3804bd6f4d
2022-09-30 00:27:55 +01:00
James D. Forrester
a19e50f605 composer: Drop symfony/polyfill-php73, as we require PHP 7.4 now
Change-Id: I7524aa95c963603bfa14e473247c4cd106759d92
2022-09-29 22:26:17 +00:00
James D. Forrester
c0400d480d Drop PHP 7.2 & PHP 7.3 support in MediaWiki master; require 7.4.3
This patch or its equivalent has been landed in REL1_35, REL1_36, REL1_37,
and REL1_38 for dropping PHP 7.2, and REL1_39 for dropping PHP 7.3 as well.

Now that Wikimedia servers have moved, it's time to do this for real.

Bug: T261872
Change-Id: I6627e456447ac6e3094b3bcd9c21753904170f64
2022-09-29 22:25:57 +00:00
Amir Sarabadani
2b9fd5176d Drop support for doctrine/dbal < 3.0.0
Removes various hacks and back compat support

Bug: T270740
Change-Id: I17d74705cdd5a2e1af0bda66bfa466067b8387a8
2022-09-29 10:49:17 -04:00
James D. Forrester
6ab12893fd Update OOUI to v0.45.0
Release notes:
 https://gerrit.wikimedia.org/g/oojs/ui/+/v0.45.0/History.md

Bug: T311514
Bug: T315240
Bug: T316516
Depends-On: Ib700ffcc891a42591d85c8524e51a9ce1457dfb9
Change-Id: I6761406a37284c29e4d5b7247d53cc7d1c22ff77
2022-09-28 10:50:48 -04:00
jenkins-bot
33706fd187 Merge "TransformHandler: add test for variant conversion" 2022-09-26 16:39:09 +00:00
daniel
654d1d0dd1 TransformHandler: add test for variant conversion
Change-Id: I91acc9b4306a8170be5e4f94377aab764e185807
2022-09-26 12:57:08 +02:00
jenkins-bot
70cec70ca7 Merge "Revert "composer.json: Pin phpunit to 8.5.28"" 2022-09-23 11:14:07 +00:00
Lucas Werkmeister (WMDE)
ff4b168815 Revert "composer.json: Pin phpunit to 8.5.28"
This reverts commit 2cb32437ef.

Reason for revert: We stopped using Prophecy (T315966).

Bug: T315892
Change-Id: I9eb04d903f7ec715c76836c7b5736b50e6490340
2022-09-23 09:42:01 +00:00
Alexander Vorwerk
3a96250676 Update justinrainbow/json-schema to 5.2.12
Depends-On: Ie5afb48792a3d80bccf9e9af678cc6f36e4a7c65
Change-Id: Ie04964406f86ee64ce727073a0a2a6a25665ce5a
2022-09-19 21:32:28 +00:00
Alexander Vorwerk
eb90205b46 Update symfony/yaml to 5.4.12
Depends-On: I23c3a5546698e7dfd8ed562182840e2b8e63c16a
Change-Id: I60be75e37dd9af653f84bf7c12615944b6f4b055
2022-09-19 20:43:29 +00:00
C. Scott Ananian
6b0af8620a Bump wikimedia/parsoid to 0.17.0 for MW 1.40
Depends-On: If352cdc869a5a3b9552a52ad6aaf8ae2c9634460
Change-Id: I973f20f9e65a228b26ce33e18baa1862584520f2
2022-09-12 12:51:22 -04:00
Alexander Vorwerk
acb5c2f4e0 Update doctrine/dbal versions
Change-Id: I60b66ff86e4c624570ca0514c28a8b7a803cfcc7
2022-09-04 23:41:34 +00:00
Kosta Harlan
2cb32437ef
composer.json: Pin phpunit to 8.5.28
Until we can find a workaround for the removal of phpspec/prophecy.

Bug: T315892
Change-Id: Id3ee4fe97461dbc80f7c163c3585a9df2957bae0
2022-08-22 18:05:35 +02:00
James D. Forrester
3fe179d08a Update OOUI to v0.44.3
Release notes:
 https://gerrit.wikimedia.org/g/oojs/ui/+/v0.44.3/History.md

Bug: T309790
Bug: T311382
Bug: T314731
Depends-On: I7e3208cdbb2e82b679da70395439ef5e5c83cb8f
Change-Id: I4dca8bdc756b4ca5c8054d8e8431d8a0dc15328a
2022-08-17 15:55:53 -04:00
Timo Tijhof
e3bfa9b796 build: Update wikimedia/running-stat to 2.1.0
To be used in Scribunto, ref T313341.

Bug: T313341
Depends-On: I6c5ab99fde1eeb2fb48f4d42c3e886484675aa86
Change-Id: Ica3f0c81305eec7d800c794030d8346a85ea84ac
2022-08-03 13:39:29 +00:00
James D. Forrester
c6468d46d4 Update OOUI to v0.44.2
Release notes:
 https://gerrit.wikimedia.org/g/oojs/ui/+/v0.44.2/History.md

Bug: T180173
Bug: T180890
Bug: T309916
Bug: T313238
Bug: T313344
Depends-On: I1a75853fb52b8a56f0acf7beb82b4a5b177e9bea
Change-Id: Id517e5598bd7a3e1870b0cb3d7d8da7375f9403a
2022-07-27 11:29:47 -04:00
Reedy
6dd11fbb8e Upgrade wikimedia/scoped-callback and wikimedia/services
- Upgrading wikimedia/scoped-callback (v3.0.0 => v4.0.0)
  - Upgrading wikimedia/services (2.0.1 => 3.0.0)

Bug: T303227
Depends-On: I7838b32ba7c7f028cdd2c81fd41150d29b312198
Change-Id: Ib47de56f3192bb087a4876313be5ca9aa2d85df7
2022-07-25 11:43:37 +00:00
jenkins-bot
f8e56df7bf Merge "Allow composer/installers plugin in composer.json" 2022-07-19 23:26:20 +00:00
James D. Forrester
cf815baa14 Update OOUI to v0.44.1
Release notes:
    https://gerrit.wikimedia.org/g/oojs/ui/+/v0.44.1/History.md

Bug: T92315
Bug: T239208
Bug: T295058
Bug: T297003
Bug: T299036
Bug: T306486
Bug: T307456
Bug: T307995
Bug: T308260
Bug: T308295
Bug: T308306
Bug: T309154
Bug: T309226
Bug: T309790
Bug: T311188
Depends-On: Ie0684113f54b193b809c8e0dede826ef2c1ee67f
Change-Id: I3fe64f52ebddad5acdf8caf1b53a1b8365c0b2fb
2022-07-13 09:34:59 -04:00
Lucas Werkmeister (WMDE)
a531d0c276 Allow composer/installers plugin in composer.json
Apparently, some users need this, though details have been sparse thus far.

Change-Id: If17ab4d5eb962cdac34d8675932a3b5d61513aa0
2022-07-13 08:19:09 +00:00
Lucas Werkmeister
0f084ebe08 Disallow composer/installers plugin in composer.json
This package is installed by plenty of extensions, including
Wikimedia-deployed ones [1]; if you use the composer merge plugin to
manage dependencies, then composer will ask you if composer/installers
should be allowed to run code, because the merge plugin doesn’t merge
the allow-plugins information. Therefore, explicitly list and disallow
the plugin in MediaWiki core, even though we don’t use the package
directly.

[1]: https://codesearch.wmcloud.org/deployed/?q=composer%2Finstallers&files=^composer\.json%24

Bug: T298283
Change-Id: I29f9fb27b9d38fbb1607a0dc9991548e5a0ee967
2022-07-12 14:32:40 +02:00
Reedy
c6dee3ae0e Upgrading wikimedia/xmp-reader (0.8.2 => 0.8.3)
Change-Id: I0fec3af9a16c315d48209901c88860c1395f8642
Depends-On: Ib4fb8570a84f2621f8c1a607072f86c861cf5f62
2022-07-10 03:26:14 +01:00
Reedy
6395ccba4f Upgrading wikimedia/running-stat (v1.2.1 => v2.0.0)
Bug: T287972
Change-Id: I8573b18909ea74aec04b7ae6c5dc5cb4f3f234ac
Depends-On: I353c10547d7161caaba246f169adfa91a4a6cd77
2022-07-08 23:40:56 +01:00
Reedy
dee3ed327a Upgrading wikimedia/php-session-serializer (v2.0.0 => v2.0.1)
Bug: T287972
Change-Id: I0b72c69faec8a194ced8e0da6a18b3db77daebcd
Depends-On: Id83f7612ec5c7851a7f8fb1f0e55737b31c6c35b
2022-07-08 23:35:30 +01:00
Reedy
65222bd67e Upgrading wikimedia/base-convert (v2.0.1 => v2.0.2)
Bug: T287972
Change-Id: I8458f98ec4b47369d53e8d2a42fb0cd24461b24c
Depends-On: Ib90bff33eaa15714bcc6659456ab0c24cf13e71d
2022-07-08 23:32:13 +01:00
Lucas Werkmeister
1b1888a533 Revert "objectcache: avoid using heavily time-drifted microtime() values in WAN cache"
I think this is no longer necessary since PHP commit 65067dff01 [1],
first included in PHP 7.2.21, 7.3.8, and in 7.4 since the beginning of
that series. That commit fixed the discrepancy between time() and
microtime() by making time() use gettimeofday() like microtime() already
did (and still does).

The PHP requirement in composer.json is tweaked to ensure no PHP 7.3
version without the fix is used; note that supported release branches
already require >=7.3.19, and the 7.2 requirement is unchanged.

This reverts commit d2c2bf6553.

[1]: 65067dff01

Change-Id: I8bfe0dceb809d0f63a2e9cc767ace9235d5f5246
2022-07-06 12:52:41 +02:00
Reedy
eabc27c960 Upgrading wikimedia/common-passwords (v0.3.0 => v0.4.0)
To be backported...

Change-Id: Ibe55fe9369bfff6b391a1fa47e9e75bce250f03b
Depends-On: I26d3c0307929745c58e87f9da68556e3933c00f6
2022-06-30 00:39:16 +01:00
Reedy
dc17f546d4 Update symfony/*
Change-Id: Id169b0f0fa93756c4e44b18e31221f8a41d9426d
Depends-On: I44059e311286f3d2ac244f497f1e945ab97c56f4
2022-06-28 20:38:46 +01:00
Reedy
e1bb240cdf Upgrading wikimedia/timestamp (v3.0.0 => v4.0.0)
Change-Id: Ic80ba1facc75bf197d68e705d32cc5530f5d7136
Depends-On: I8a94c0e2e3dd819f8d35f702a5615429e065ed1f
2022-06-28 20:38:17 +01:00
Reedy
aba70232de Upgrading wikimedia/xmp-reader (0.8.1 => 0.8.2)
Change-Id: I5ed58ca08f06924791a7ccde1ccdfe9dce14717a
Depends-On: I7a0deaafe8dfa4a5de4bab6eeef57669b5e5cbd7
2022-06-28 20:38:04 +01:00
Reedy
3593140f21 Upgrading wikimedia/remex-html (3.0.1 => 3.0.2)
To be backported to REL1_38, so no RELEASE-NOTES

Change-Id: I1fca338ca4383daf860149d88ed83dcc13cbd45f
Depends-On: Ib1931860b536e99a7efc8f072a3e2a6f4fe83e26
2022-06-27 23:29:03 +01:00
rvogel
d1ce58890d Update "guzzlehttp/guzzle" to version 7.4.5
Bug: T311384
Depends-On: If511b71eabc4c204ff72d2e9b0024c8aab180ad0
Change-Id: Ie4879a8daf92aca2c7e7340b5f2c9f7f67636384
2022-06-27 08:52:10 +00:00
Lucas Werkmeister
ff47e80ff0 Declare dependency on symfony/polyfill-php73
We use a function that’s introduced in PHP 7.3 and polyfilled in this
package (array_key_first(), in rdbms), but previously didn’t declare a
dependency on the package. (We declared a dependency on polyfill-php80,
but that doesn’t transitively pull in polyfill-php73.) Let’s add it.

(The package is already part of mediawiki/vendor, using the same
version.)

Change-Id: Ia76d4945087ba51354e21136f36f2614cf7d9bf8
2022-06-17 12:10:20 +02:00
Lucas Werkmeister (WMDE)
acae1c5107 Revert "phpunit: Default to vendor/bin/phpunit, remove suites.xml"
This caused unexpected problems with no obvious fixes. Needs more work.

This reverts commit 7238dff532.

Bug: T310255
Bug: T90875
Change-Id: I3758cbb6d0029b20ec1b0f67dbf2f422031c50ae
2022-06-09 14:15:54 +00:00
Kosta Harlan
7238dff532 phpunit: Default to vendor/bin/phpunit, remove suites.xml
* switch to phpunit.xml.dist instead of suites.xml
* switch composer.json to vendor/bin/phpunit
  * tests/phpunit/phpunit.php is retained but will be removed after CI
    jobs and other references on
    codesearch (https://codesearch.wmcloud.org/search/?q=tests%2Fphpunit%2Fphpunit.php&i=nope&files=&excludeFiles=&repos=)
    are removed
* add a default bootstrap.integration.php; unit tests in
  composer.json use the non-MW bootstrap file (bootstrap.php)
  * Migrate the phpunit.php logic into tests/phpunit/BootstrapIntegrationWrapper.php

Depends-On: I19d560bdcdb2ee914ab055e094841f2b5db8be55
Depends-On: Ib23209fc3b095e3c012ed84ce5c11f8b2d27b898
Co-authored-by: Daimona Eaytoy <daimona.wiki@gmail.com>
Bug: T227900
Bug: T90875
Change-Id: I82045c207738d152d5b0006f353637cfaa40bb66
2022-06-08 18:31:16 +00:00
Kosta Harlan
3a83db2956 composer.json: Reference a single phpunit script
Make use of `@` reference so that phpunit is invoked from a centrally
defined command. Otherwise phpunit:integration defaults to
`vendor/bin/phpunit` when `tests/phpunit/phpunit.php` may be desired
instead.

`composer phpunit:unit` does not use the composer.json defined phpunit
command, as it must use `vendor/bin/phpunit` and not
`tests/phpunit/phpunit.php`; the latter expects a LocalSettings.php file
which is not in place at the time that `composer phpunit:unit` runs in
CI.

See https://getcomposer.org/doc/articles/scripts.md#referencing-scripts

Change-Id: I13f947637060698226b6e5a2b593655798196de0
2022-06-07 11:33:37 +00:00
Reedy
5c55598448 Upgrading wikimedia/ip-set (3.0.0 => 3.1.0)
Change-Id: I81d84c3158b58374233f6488815af6cbfbc8a357
Depends-On: I6c5e738f6bd094b3ef75cb1e250d12856bdbaae8
2022-06-05 18:11:44 +01:00
Alexander Vorwerk
8634428e6a Update OOUI dependency in composer.json
Follow-Up: I51764415d8a221b0146922c1b9041ba0d8711326

Change-Id: I3f1d96fcce37e17bba2a4132ce0bf95351c2b6ab
2022-05-17 19:27:33 +00:00
jenkins-bot
9a0d234e05 Merge "Add partial support for running Parsoid selser tests" 2022-05-12 02:15:58 +00:00