Page MenuHomePhabricator

Run parserTests with Parsoid in extension repos
Closed, ResolvedPublic

Description

When an extension implements a ParsoidModule you need to be able to run its parserTests with parsoid (as well as with the legacy parser).

Related Objects

Event Timeline

ssastry lowered the priority of this task from High to Medium.Jun 11 2020, 1:29 AM

Change 613317 had a related patch set uploaded (by C. Scott Ananian; owner: C. Scott Ananian):
[mediawiki/core@master] Use parser test file parser from Parsoid

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

Change 618372 had a related patch set uploaded (by C. Scott Ananian; owner: C. Scott Ananian):
[mediawiki/services/parsoid@master] Allow parser test files to end w/o a trailing newline

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

Change 618372 merged by jenkins-bot:
[mediawiki/services/parsoid@master] Allow parser test files to end w/o a trailing newline

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

Change 620755 had a related patch set uploaded (by Subramanya Sastry; owner: Subramanya Sastry):
[mediawiki/vendor@master] Bump wikimedia/parsoid to v0.13.0-a6

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

Change 620755 merged by jenkins-bot:
[mediawiki/vendor@master] Bump wikimedia/parsoid to v0.13.0-a6

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

Change 613317 merged by jenkins-bot:
[mediawiki/core@master] Use parser test file parser from Parsoid

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

Change 648357 had a related patch set uploaded (by C. Scott Ananian; owner: C. Scott Ananian):
[mediawiki/services/parsoid@master] ParserTestReader: Support a generalized file-level options clause

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

Change 615924 had a related patch set uploaded (by C. Scott Ananian; owner: C. Scott Ananian):
[mediawiki/core@master] WIP: Add support for running parsertests *with parsoid*

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

Change 648378 had a related patch set uploaded (by C. Scott Ananian; owner: C. Scott Ananian):
[mediawiki/core@master] Parser tests: Update TestFileReader to the latest reader from Parsoid

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

Change 648461 had a related patch set uploaded (by C. Scott Ananian; owner: C. Scott Ananian):
[mediawiki/extensions/Disambiguator@master] Move Parsoid disambiguator parser tests to Extension:Disambiguator

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

Change 648357 merged by jenkins-bot:
[mediawiki/services/parsoid@master] ParserTestReader: Support a generalized file-level options clause

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

Change 648378 merged by jenkins-bot:
[mediawiki/core@master] Parser tests: Update TestFileReader to the latest reader from Parsoid

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

Change 651236 had a related patch set uploaded (by C. Scott Ananian; owner: C. Scott Ananian):
[mediawiki/core@master] ParserTestRunner: tweak filetype of djvu, allow capital E in !!hooks

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

Change 650621 had a related patch set uploaded (by C. Scott Ananian; owner: C. Scott Ananian):
[mediawiki/core@master] ParserTestRunner: add interwiki prefixes used by Parsoid tests

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

Change 651236 merged by jenkins-bot:
[mediawiki/core@master] ParserTestRunner: tweak filetype of djvu, allow capital E in !!hooks

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

Change 650621 merged by jenkins-bot:
[mediawiki/core@master] ParserTestRunner: add interwiki prefixes used by Parsoid tests

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

Change 615924 merged by jenkins-bot:
[mediawiki/core@master] Add support for running parsertests with Parsoid in integrated mode

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

Change 648461 merged by jenkins-bot:
[mediawiki/extensions/Disambiguator@master] Move Parsoid disambiguator parser tests to Extension:Disambiguator

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

This is done! It's opt-in for now with a clause in the parserTests.txt file, and relies on the extension naming the Parsoid extension as a dependency.