Page MenuHomePhabricator

docker-dev: automatically rebuild the localisation cache as needed
Closed, ResolvedPublic

Description

We've been experiencing a new error in our team's docker-dev development environment, which causes many interface messages to be missing. This task is to debug the issue and is finished when we no longer experience the problem.

  • Identify when the problem arises. Is it only after a new container is started? Does it sometimes come back when running an existing container?
  • It does not come back. It happens when the container is created fresh
  • It does only affect the extension messages not the core messages
  • It does only affect en and the language set as the wiki's default
  • We've been working around the issue by running this script from the command line:
    • ./modules/mediawiki/bin/mwscript rebuildLocalisationCache.php --wiki=dev --lang en --force
    • It may be enough to include this call in the "bin/" scripts included in docker-dev, by finding exactly the right time to rebuild the cache.
  • We can run that scripts once when the modules are added in /bin/use
  • Try to debug the root cause. Maybe we can improve our LocalSettings.php configuration, for example by bringing the l10n cache more in line with the most common defaults? Look through Phabricator for recent, potentially-related bugs. Look in the manual and documentation for an explanation of how the l10n cache is expected to behave. Check whether there's something about the timing of how we install extensions, for example the install script first creates a "bare" MediaWiki with no extensions, but then we need to do some steps after enabling the final suite of extensions we want to use. Does our modules/mediawiki/bin/addsite script reflect the recommended steps?
  • Tried a lot of things here with no real improvement. The LocalSettings.php does not seem to differ much from what's the current state of art.
  • Fiddling with the way how the cache is stored also did not bring any insights.

PR for review:
https://gitlab.com/wmde/technical-wishes/docker-dev/-/merge_requests/133

Event Timeline

WMDE-Fisch removed a project: Patch-For-Review.
WMDE-Fisch moved this task from Tech Review to Done on the WMDE-TechWish-Sprint-2024-02-28 board.
WMDE-Fisch subscribed.
Tobi_WMDE_SW claimed this task.