Page MenuHomePhabricator

ParserTests relies on caching for non-english tests.
Closed, ResolvedPublic

Description

I'm looking at a weird parsertests issue where tests for Archivo:Foobar.jpg only succeed iff a test with File:Foobar.jpg was run previously, which causes "Foobar.jpg" to be added to env.pageCache
Maybe we should empty out pageCache for each test? or when the test has a non-default language? not sure how this should be fixed.
mockAPI doesn't recognize Archivo:Foobar.jpg as a valid file, which is part of the issue.

to reproduce easily, change 'if (queueKey in env.pageCache)' to 'if (false)' in ext.core.LinkHandler and re-run parsertests.


Version: unspecified
Severity: normal

Details

Reference
bz62937

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:52 AM
bzimport set Reference to bz62937.

@cscott: This issue has been assigned to you two years ago. Could you please share a status update? Are you still working (or still plan to work) on this issue? Is there anything that others could help with? In case you do not plan to work on this issue anymore, should you be removed as assignee (via 'Assign / Claim' in the 'Actions' dropdown menu) to avoid cookie-licking?

@cscott: This issue has been assigned to you two years ago. Could you please share a status update? Are you still working (or still plan to work) on this issue? Is there anything that others could help with? In case you do not plan to work on this issue anymore, should you be removed as assignee (via 'Assign / Claim' in the 'Actions' dropdown menu) to avoid cookie-licking?

Seems to have been fixed sometime since March 2014:

bin/parserTests.js --filter "Localized image handling" --wt2html

has no problems now, and indeed the problematic if (queueKey in env.pageCache) doesn't exist in LinkHandler any more.