Page MenuHomePhabricator

Improve Parsoid's mock API, test the batch API client
Open, MediumPublic

Description

Currently, parserTests.js runs with usePHPPreProcessor=false, so the preprocessor expansion client is untested. Also, the batch API client (Batcher, BatchRequest) is not tested. It would be good to run parserTests.js with usePHPPreProcessor=true and batch API enabled, and to expand the mock API as necessary to make this work.

Event Timeline

tstarling raised the priority of this task from to Needs Triage.
tstarling updated the task description. (Show Details)
tstarling added a project: Parsoid.
Arlolra triaged this task as Medium priority.

Change 353325 had a related patch set uploaded (by Arlolra; owner: Arlolra):
[mediawiki/services/parsoid@master] T115395: Mock the batch api

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

Change 353325 merged by jenkins-bot:
[mediawiki/services/parsoid@master] T115395: Mock the batch api

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

Batching is mocked now, but parserTests isn't using it yet.

Change 354151 had a related patch set uploaded (by Arlolra; owner: Arlolra):
[mediawiki/services/parsoid@master] [WIP] Get rid of native template expansion

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

Change 354551 had a related patch set uploaded (by Arlolra; owner: Arlolra):
[mediawiki/services/parsoid@master] T115395: Run parsertests with the batch api enabled

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

Change 354551 merged by jenkins-bot:
[mediawiki/services/parsoid@master] T115395: Run parsertests with the batch api enabled

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

Parsertests now run with batching enabled. Just mocking the preprocessor left to go.

Change 354151 abandoned by Arlolra:
[WIP] Get rid of native template expansion

Reason:
Will pick this up later ...

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