Last modified: 2013-01-11 15:05:01 UTC
On beta, the /home/wikipedia/common/wikiversions.dat file is a live hack. The file map a database to a MediaWiki version. On beta that should always be 'php-master', on production it is something like 'php-1.21wmf11'. Whenever someone does a git pull on beta and erase the file, the beta cluster is unusuable since the wikis are pointing to a non existent php code base. We need to create a wikiversions-wmflabs.dat file and adapt any script using wikiversions.dat to detect the beta context.
We now vary based on the realm. The wikiversions.dat is replaced by wikiversions-labs.dblist whenever we run on labs.