Commit graph

738 commits

Author SHA1 Message Date
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
Timo Tijhof
89767c4cd6 resourceloader: Update wikimedia/minify to 2.3.0
Bug: T303827
Depends-On: Iab346c62b101411bb2315008a8d07b75c4ea5237
Change-Id: Ie8179c9aca5ac5b0a0c4ea2dc96abb7e2a16ec95
2022-04-25 11:19:53 -04:00
Subramanya Sastry
e818b00c9e Add partial support for running Parsoid selser tests
* This patch only adds support for
  - selser manual edits tests
  - selser changetree [5] tests
  Both these types of selser tests are known statically.

* This doesn't yet add support for selser auto-edit tests since
  they cannot be determined statically.

  There is some code already in place in the test runner to apply
  change trees, but it will all likely get refactored in a future
  patch.

Bug: T270311
Depends-On: I3be7826e08be120043f3bcd9151bade930b65fb7
Change-Id: Ic824dae6ee49867c766d40c11acfda117c7e2689
2022-04-21 16:28:10 +05:30
Reedy
1b30457969 Update composer/*
Depends-On: I78fdb962ca8b8b88b261410d02be857f6b040c22
Change-Id: I955af0f8d47f1f88457fd267f69a107aef1ebb7d
2022-04-12 23:24:40 +01:00
Daimona Eaytoy
204776e42c phpunit: Remove custom MediaWikiPHPUnitCommand and use default directly
Move the relevant options to the config file instead, and add some hacky
code to force that config file if none was passed. "--help" works even
without the previous hack.

Bug: T90875
Change-Id: I84421e3eeaad0f88be83477cb99d6524abe13b77
2022-03-31 17:58:41 +00:00
James D. Forrester
24e67e03b1 phan: Upgrade mediawiki-phan-config to 0.11.1 and set minimum_target_php_version
MediaWiki still supports PHP 7.2+, but we want to mainly test in newer versions
of PHP. Setting minimum_target_php_version to 7.2 this lets us run phan without
phan trying to get us to make PHP 7.2-incompatible changes to 'appease' PHP 8.0
or whatever later changes.

Some switches of generic 'resource' type-hinting to 'resource|object' to inform
phan to ignore this (triggering PHPCS at the time, ah well), rather than trying
to hint the specific novel PHP encapsulation classes to that have replaced them
from PHP 8.0 onwards but don't yet exist, and fixes from where we were checking
the results of implode and explode.

Bug: T293924
Change-Id: I629e3fb3adfad73beb3d424a07e643c2e079d9bb
2022-03-29 16:54:36 +00:00
Timo Tijhof
2de79774e1 Remove deprecated EventRelayerKafka and KafkaHandler
Also remove the unmaintained kafka-php package from the from "suggested"
and "dev" composer dependencies, as this is now no longer used.

Change-Id: If5668974f417b627df95bce47db18d46fa03327c
2022-03-25 00:07:22 +00:00
C. Scott Ananian
241cf6d972 Bump wikimedia/parsoid to 0.16.0 for MW 1.39
Depends-On: I84fe739494237a2e6de24a4864d652f3e27265f7
Change-Id: Ic403cac3bad87a64686257d06f3fb6cc558de310
2022-03-21 17:42:47 -04:00
Reedy
0bd7604f45 Upgrading symfony/polyfill-php80 (v1.24.0 => v1.25.0)
Change-Id: I54a8acd5cde66ab56a026d52800049d14dee3abf
Depends-On: I75da5051a09662bae4cd6af02488a86fdb5c3af6
2022-03-15 14:50:16 +00:00
jenkins-bot
ae94561472 Merge "Update OOUI to v0.43.2" 2022-03-15 04:46:20 +00:00
Alexander Vorwerk
982405e12d Update wikimedia/object-factory to 4.0.0
Depends-On: Idd105bc0937acf71935d82549783cd3bcd5f53e3
Change-Id: Ie9f434d36b7da629a6357f1fb00e908f28fa0bca
2022-03-14 17:28:08 +01:00
James D. Forrester
4cc50cbd98 Update OOUI to v0.43.2
Release notes:
 https://gerrit.wikimedia.org/g/oojs/ui/+/v0.43.2/History.md

Bug: T293723
Bug: T301157
Bug: T302495
Depends-On: I10583ee43b8e6874fecbf3becf303550d19743bc
Change-Id: I5a35aa239b2186d729c8549229c4beac3d48f5a2
2022-03-11 17:41:59 -05:00
Timo Tijhof
8a0afc31b1 EtcdConfig: Remove YAML from available 'encoding' options
This appears impossible to use because the request is always made
with `Content-Type: application/json`.

* It seems unreasonable for an Etcd server to not support JSON.
* It seems unreasonable for an Etcd server to respond with YAML
  to a JSON request.
* It seems unlikely that anyone would prefer YAML over JSON for
  the automated encoding and decoding of fully automated inter-service
  communication.

Change-Id: I290e03e17d547c3dc675820bb024c940e02e097a
2022-03-11 12:45:18 +00:00
Timo Tijhof
aebeccc01b composer.json: Document what the suggested php extensions enable
Follows-up I795e785dd70f10.

Bug: T302540
Change-Id: I3436bda1e3fa930b92addbb3412af5a7ac64f431
2022-03-11 12:44:33 +00:00
Reedy
e65b353296 composer.json: Add 7 more PHP extensions to suggest
Bug: T302540
Change-Id: I795e785dd70f10479ef1f522f1528de08e4cdb72
2022-03-05 22:38:25 +00:00