Page MenuHomePhabricator

parserTests setting its own messages fail on wfMsg
Open, MediumPublic

Description

Steps to reproduce:

  • Set $wgLanguageCode to something other than en in your LocalSettings (yes, parserTests will change to use the English messages)
  • Remove 'my_wiki-parsertest_:messages:en' from your "normal" objectcache, eg. DELETE FROM objectcache WHERE keyname = 'my_wiki-parsertest_:messages:en';

(it is loaded from there before the parsertests switches tables)

Run he parser tests
The following parser tests set its own MediaWiki article, and will fail.

  • Bad images - basic functionality...
  • Bad images - bug 16039: text after bad image disappears...
  • <ref> with custom group link..

However, changing $wgLanguageCode to en, and running fixes it for as long as the cache is saved.
Seems that it isn't saved, there's something wrong with its cache...


Version: 1.18.x
Severity: normal

Details

Reference
bz26487

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:20 PM
bzimport set Reference to bz26487.
bzimport added a subscriber: Unknown Object (MLST).

Parser tests should clear the message cache before every test, otherwise the messages added by tests are not picked up.

All tests that use the i18n system should rebuild L10n cache for the languages that they will be using. Needs some thought, but is probably doable. Any volunteers?