[go: up one dir, main page]

Bump wikimedia/parsoid to 0.21.0-a8

Bug: T371713
Bug: T373776
Bug: T374661
Bug: T380665
Bug: T380676
Bug: T380664
Change-Id: I70081a066937d1ec84ab6e1093604f7a0bb6bfbf
24 files changed
tree: 3c0763abe269097c09415ef8a9b78330aa10b875
  1. bacon/
  2. beberlei/
  3. brick/
  4. christian-riesen/
  5. composer/
  6. cssjanus/
  7. dasprid/
  8. data-values/
  9. defuse/
  10. diff/
  11. elasticsearch/
  12. endroid/
  13. ezimuel/
  14. fgrosse/
  15. firebase/
  16. geoip2/
  17. guzzlehttp/
  18. jakobo/
  19. james-heinrich/
  20. justinrainbow/
  21. lcobucci/
  22. league/
  23. liuggio/
  24. maxmind/
  25. maxmind-db/
  26. mck89/
  27. monolog/
  28. mustangostang/
  29. nikic/
  30. nyholm/
  31. onoi/
  32. oojs/
  33. opis/
  34. pear/
  35. pimple/
  36. psr/
  37. psy/
  38. ralouphie/
  39. ramsey/
  40. react/
  41. ruflin/
  42. serialization/
  43. spomky-labs/
  44. swaggest/
  45. symfony/
  46. thecodingmachine/
  47. web-auth/
  48. wikimedia/
  49. wmde/
  50. zordius/
  51. .gitignore
  52. .gitreview
  53. .htaccess
  54. autoload.php
  55. composer.json
  56. composer.lock
  57. README.md
  58. wip-requires.sh
README.md

MediaWiki-Vendor

Composer managed libraries required or recommended for use with MediaWiki. This repository is maintained for use on the Wikimedia Foundation production and testing clusters, but may be useful for anyone wishing to avoid directly managing MediaWiki dependencies with Composer.

Usage

Checkout this library into $IP/vendor using git clone <URL> or add the repository as a git submodule using git submodule add <URL> vendor followed by git submodule update --init.

Adding or updating libraries

  1. Read the documentation on the process for adding new libraries.
  2. Ensure you're using version 2.8.1 of composer via composer --version. Everyone using the same version means that diffs from the autoloader are minimal and so easier to validate and manually rebase. This is most easily done with Docker. For example, to run composer update --no-dev do:
    docker run --rm -it -u "$(id -u):$(id -g)" -v "$PWD/.git:/src/.git:ro" -v "$PWD:/src" -w /src docker-registry.wikimedia.org/releng/composer-php74:0.3.3-s4 update --no-dev
    
  3. Edit the composer.json file to add/update the libraries you want to change. It is recommended that you use composer require <package> <version> --no-update to do so as composer will then automatically sort the composer.json file.
  4. Run composer update --no-dev to download files and update the autoloader.
  5. Add all the new dependencies that got installed to composer.json as well, so that everything has their version pinned. (You can look at the changes in composer.lock or composer/installed.json to see what they are.)
  6. In some cases, the libraries might include not needed files (e.g. test files, project files, etc). If you cannot exclude them from library's archive (e.g. by export-ignoreing unwanted files in library's .gitattributes file), you can skip checking them in by listing them in .gitignore file.
  7. Rarely, lint checks fail because test files in some library were written for an unsupported PHP version. In that case add the test directories to the --exclude parameter in the script > test field in composer.json, and to .gitignore.
  8. Add and commit changes as a gerrit patch.
  9. Review and merge changes.

Note that you MUST pair patches changing versions of libraries used by MediaWiki itself with ones for the "core" repo. Specifically, the patch in mediawiki/core must have a Depends-On footer to the patch in mediawiki/vendor.

The vendor repo has special configuration, which skips the integrity checks and so allowing a circular dependency Gordian knot to be fixed. However, this means that, if merged alone without a pair, you'll cause ALL patches in MediaWiki and ALL extensions to fail their continuous integration tests.

If in doubt, seek advice from regular commiters to this repository.