Page MenuHomePhabricator

Not adding trailing / to autoload patches breaks Parsoid CI
Open, Needs TriagePublic

Description

A recent change in core (autoload: Remove extra slash from autoload path when using PSR-4) stopped adding a trailing slash to the path portion of an Autoloader spec, expecting to enforce this via schema validation on extension.json instead. However, Parsoid uses a local lookaside for local development (https://www.mediawiki.org/w/index.php?title=Parsoid&diff=7766538&oldid=7732253) and in quibble in order to run integrated tests against "the latest mediawiki-core" with "the patched version of parsoid".

Quibble needs to be patched (Use trailing slash for Parsoid autoload directory) and released to CI, and apparently patchdemo needs the same fix, in order to ensure that "patched Parsoid" is used for CI. Otherwise CI tests will merrily run with the latest composer-released version of Parsoid, not the actual patch in gerrit, and we'll get false positives from CI. This is demonstrated by https://gerrit.wikimedia.org/r/c/mediawiki/services/parsoid/+/1172088.

Event Timeline

Change #1172089 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[integration/quibble@master] Use trailing slash for Parsoid autoload directory

https://gerrit.wikimedia.org/r/1172089

Change #1172123 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/core@master] Revert "autoload: Remove extra slash from autoload path when using PSR-4"

https://gerrit.wikimedia.org/r/1172123

Change #1172123 merged by jenkins-bot:

[mediawiki/core@master] Revert "autoload: Remove extra slash from autoload path when using PSR-4"

https://gerrit.wikimedia.org/r/1172123

Change #1172089 merged by jenkins-bot:

[integration/quibble@master] Use trailing slash for Parsoid autoload directory

https://gerrit.wikimedia.org/r/1172089

I believe all the patches have been merged, and the new version of quibble just needs to be tagged and deployed to CI now.

@cscott CI should be all set now :)

Your patch Gerrit 1172089 - Use trailing slash for Parsoid autoload directory has been released with Quibble 1.14.2 and the jobs have been switched to it on July 25th (https://gerrit.wikimedia.org/r/c/integration/config/+/1172633/).

Change #1181007 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/core@master] Revert^2 "autoload: Remove extra slash from autoload path when using PSR-4"

https://gerrit.wikimedia.org/r/1181007

Ok, then it should be safe to re-apply the original patch. ^

Change #1181007 merged by jenkins-bot:

[mediawiki/core@master] Revert^2 "autoload: Remove extra slash from autoload path when using PSR-4"

https://gerrit.wikimedia.org/r/1181007

Change #1181028 had a related patch set uploaded (by Mszwarc; author: Mszwarc):

[mediawiki/extensions/OATHAuth@master] extension.json: Add trailing slash to TestAutoloadNamespaces

https://gerrit.wikimedia.org/r/1181028

Change #1181028 merged by jenkins-bot:

[mediawiki/extensions/OATHAuth@master] extension.json: Add trailing slash to TestAutoloadNamespaces

https://gerrit.wikimedia.org/r/1181028