Last modified: 2014-11-20 03:18:00 UTC
Bug 65939 was filled because the Parsoid daemon on beta cluster ended up fetching content from production. Parsoid by default uses the production API URL, in beta we have a file in puppet that overrides the URL for each database: files/misc/parsoid-localsettings-beta.js Whenever a new database is added (e.g. in operations/mediawiki-config.git all-labs.dblist), we need a new entry to be added in puppet to update Parsoid. The job should be triggered when a change is proposed to operations/mediawiki-config.git . List the databases defined in all-labs.dblist. Then clone operations/puppet.git and ensure an entry exists in files/misc/parsoid-localsettings-beta.js (or maybe figure out a way to query beta cluster Parsoid if it has an entry point exposing the URLs).
Not sure creating another script and abstraction layer would be the best way to support this minor case. Perhaps implement as phpunit test in the mediawiki-config repo?