Commit graph

714 commits

Author SHA1 Message Date
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
Reedy
f78096d615 composer.json: Add DB drivers to suggests
Alphasort ext entries

Bug: T302540
Change-Id: I1d57f24554c92863c13f7a1d017779786b89e948
2022-02-25 18:58:12 +00:00
Reedy
951063a72b composer.json: Add ext-simplexml to require-dev
Used by ExportTest and RandomImageGenerator

Bug: T302540
Change-Id: I1ebb975905687174bae753b7165c58653c715833
2022-02-25 12:45:04 +00:00
Reedy
1d21dbb138 composer.json: Add ext-calendar to require
Used by HistoryAction

Bug: T302540
Change-Id: I8e77efa1192a3c5b61c36a674d991389e6aba8cb
2022-02-25 12:41:42 +00:00
James D. Forrester
031f57b38f Update OOUI to v0.43.1
Release notes:
 https://gerrit.wikimedia.org/g/oojs/ui/+/v0.43.1/History.md

Bug: T297979
Bug: T298200
Bug: T298211
Bug: T298904
Bug: T299061
Bug: T299370
Bug: T299473
Bug: T299660
Bug: T301256
Depends-On: Ie44922aa40885bd867fc0ee4bb366358206fbc69
Change-Id: I02e046e1b5f6da4117c50238b5a87172f625caad
2022-02-10 10:44:51 -05:00
Taavi Väänänen
d3cb44a6e7
Upgrading wikimedia/request-timeout (1.1.0 => 1.2.0)
Depends-On: I02f29397bad8334d38b6de3f7ac50187f11f98a1
Change-Id: I3deb4d9a4555019620ef9db705caa8a52f5d6d2e
2022-02-10 10:03:31 +02:00
Reedy
edc763902e Upgrading guzzlehttp/guzzle (7.4.0 => 7.4.1)
Change-Id: Icaeb68f226bd74e5981f4be3ffc562b9380cd636
Depends-On: I3e4a7f826cb788f2c6d4b2c118f9ba66e9ac1b04
2022-02-01 22:55:07 +00:00
Reedy
edf96a3486 Upgrading wikimedia/ip-utils (3.0.2 => 4.0.0)
Change-Id: Ica51e282bf6832ff10b1a41b02c15826da757891
Depends-On: I58cbe3a1bf9c611a3c72aaf07efee970de2ecf69
2022-02-01 16:56:20 +00:00
Reedy
2ee2ebc51b Update symfony/*
- Upgrading symfony/polyfill-php80 (v1.23.1 => v1.24.0)
  - Upgrading symfony/yaml (v5.4.0 => v5.4.3)

Depends-On: I89e097b944a1ee94930c8bd8edff4f2fbf6c22d5
Change-Id: I42139c288001674f95e00eb7fa149bfc9a36cdd1
2022-01-31 16:50:55 +00:00
Reedy
1f3de5b5f7 Upgrading psy/psysh (v0.10.12 => v0.11.1)
Change-Id: Ie4febaf054f86bf44cef0e1b2cd4f0500183b77d
Depends-On: I991511ca3384513aa5c300b89e9dac7cb10104e5
2022-01-29 23:26:34 +00:00
Adam Wight
f3c1500f27 Exclude node_modules from php lint script
Some node modules include PHP scripts, and these files shouldn't be
analyzed.

This could be improved further by excluding `extensions/*/{node_modules,vendor}`,
but I wasn't able to find a way to represent this for php-parallel-lint
without listing each directory individually.

For comparison, .phpcs.xml has this line to exclude dependencies:

    <exclude-pattern type="relative">^(\.git|coverage|node_modules|vendor)/*</exclude-pattern>

Change-Id: I285eb32f67b71eaf111c9c9cd12f8205ba97eaf3
2022-01-24 23:38:59 +01:00
Tim Starling
9e909868b5 Update johnkary/phpunit-speedtrap to 4.0
Because I want Daimona's PR #71. I reviewed the diff.

Change-Id: I4ecd2a191a7fd023aa82d80a3736b56de39b41f3
2022-01-24 15:26:18 +11:00
James D. Forrester
d758340d89 Update OOUI to v0.43.0
Release notes:
 https://gerrit.wikimedia.org/g/oojs/ui/+/v0.43.0/History.md

Bug: T248631
Bug: T254646
Bug: T282751
Bug: T292631
Bug: T295682
Bug: T295885
Bug: T296335
Bug: T296766
Bug: T297386
Bug: T297481
Bug: T297900
Bug: T297963
Bug: T297979
Bug: T298211
Bug: T298737
Depends-On: I7a19fba8bce65640bdb69b3a63812537e1d29af3
Depends-On: I1bb6aa75b28f263543ea069496cf34bdaa5d02e0
Depends-On: I3d00bb19467d59d1a79ed57b2abb91ea0a951094
Depends-On: Icb30c4c454da2b362a2555b8bae6efa4cc5de9db
Change-Id: I5b1af082503fe22ec6049784fc43b324534c5b95
2022-01-14 01:52:02 +00:00
Reedy
579183022b composer.json: Temporarily allow composer/package-versions-deprecated plugin
Should be removeable after release and integration of newer doctine/dbal release

Bug: T298283
Change-Id: Ia91325bb9ac89cd1ff6831251ae291764892b143
2022-01-04 23:03:26 +00:00
Reedy
ab276b9249 Update doctrine/dbal versions
doctrine/dbal 3.1.3 suffered from CVE-2021-43608

Change-Id: Ia58cfac87271d75530cac29cc4966833fbe00480
2022-01-04 22:41:44 +00:00
jenkins-bot
ed4b61f487 Merge "composer.json: Add wikimedia/composer-merge-plugin to allow-plugins" 2022-01-04 22:16:09 +00:00
Timo Tijhof
7d8559d9bf Update wikimedia/cdb to 2.0.0
Also, re-alpha-sort the lists of external libraries in the release
notes file.

Bug: T287972
Depends-On: Ib55a7fc8968ec7e951d4e4d160db0601aaff74ea
Change-Id: If9fd7efd0f232a567204fee0b7b093f6edacd456
2022-01-04 16:30:19 -05:00
jenkins-bot
a23cbc1c8d Merge "Update composer/semver" 2022-01-04 16:47:50 +00:00
Reedy
12d43ef545 Upgrading symfony/yaml (v5.3.6 => v5.4.0)
Also note in RELEASE-NOTES about promotion from require-dev to require

Depends-On: Ibfdbd2a479bd13d95e00fb41c2dd26b6ea6ea561
Change-Id: Ie1368ea2e5799b6b1e3f991b8156b967e12e0210
2022-01-04 16:24:00 +00:00
Reedy
7d8418056d Update composer/semver
- Upgrading composer/semver (3.2.5 => 3.2.6)

Change-Id: Id34f51254ae703ced2ce335c4af56b6fbf51c338
Depends-On: I2f4a3cf88e5e70b7695b4e7a6857be84d142a8e3
2021-12-28 18:11:45 +00:00
Reedy
04d2a56193 composer.json: Add wikimedia/composer-merge-plugin to allow-plugins
Bug: T298283
Change-Id: If1ca75740394b807467ba8b139d996adc38378c0
2021-12-23 23:11:52 +00:00
jenkins-bot
d42ea5fb3d Merge "Add composer releasenotes command" 2021-12-23 17:43:34 +00:00
James D. Forrester
26598c1574 Update wikimedia/assert from 0.5.0 to 0.5.1
All libraries and extensions require ^0.5.0 so this should Just Work™.

Bug: T287972
Depends-On: I38ff3873df866cd896c9028dc6277ac7aac8a932
Change-Id: I0689e447d7b603a347869aa442a58602f45b2647
2021-12-21 12:12:07 +00:00
Reedy
0bc26db25a Add composer releasenotes command
Bug: T297826
Change-Id: Ia2ab03f27d423c4c318da803172957d5ff5c0311
2021-12-15 21:21:45 +00:00
Dan Duvall
9778adf1c5 Refactor SettingsBuilder to use BagOStuff.
Removed use of Psr\SimpleCache\CacheInterface in favor of BagOStuff, as
the latter is a tried-and-true abstraction and the former offers no real
upfront benefits since the caching patterns of SettingsBuilder are quite
basic at this time.

The simplicity of cache interface use is largely in part to the minimal
probabilistic stampede protection implementation within CachedSource
which is left untouched by this change.

Bug: T294748
Change-Id: Ie59b37a8d5c7bf96225757fa9eb9d2c762476713
2021-12-10 10:20:05 -08:00