Ideally, our visual regression tests would simulate a production environment as much as possible so that when we make a change, we can be extremely confident that the change won't cause unintended side effects (especially of the visual kind) once it hits production. One aspect of simulating a production environment is having the same config (or nearly the same config) as production.
The mediawiki-config repo hosts the configuration for our production MediaWiki sites where it includes a number of important files:
- CommonSettings.php : Config shared by all WMF wikis
- InitialiseSettings.php: Wiki-specific configuration for WMF wikis
- static folder: Project logos and other static assets
See the README for more info that may be pertinent
Question we are trying to answer
Can we use mediawiki-config to power a MediaWiki app running inside a Docker container and, if so, how?
- It looks like Ahmon Dancy has done great work with Docker and utilizing mediawiki-config in P16947 . Could we use this? Schedule a meeting and determine how feasible it is to use mediawiki-config to produce a production like environment for visual regression testing. If it's not feasible, is there a better strategy (e.g. Jon mentioned possibly applying a patch to the wikimedia-debug servers)?