The version hash of the ext.visualEditor.data ResourceLoader module is unstable. On nlwiki, where we happen to have some monitoring of version hashes set up, the module version has oscillated between VPsvd4pk and M03uRLLD about five times a day for the past six days. The intervals are irregular. Each change causes the start-up module to change as well, meaning clients must re-retrieve it.
Here is what I believe is happening:
- The module version is derived from a hash of the module script content.
- The short SHA1 of HEAD of the repository at $IP/extensions/VisualEditor (obtained using MediaWiki's GitInfo class) is embedded in the script content as ve.version.id.
- Git metadata is not available (or not consistently available) on the application servers, so ve.version contains either real values from Git or fallbacks.
For example, the following command outputs bool(false) when run on tin, and string(40) "c895ba38b16efaf70add12ca60e5dbffcfb87c13" when run on mw1017:
mwscript eval.php nlwiki <<<'$git = new GitInfo( "/srv/mediawiki/php-1.27.0-wmf.7/extensions/VisualEditor" ); var_dump( $git->getHeadSHA1() );'
The easiest way to fix this might be to stop embedding git metadata in the module script content. It can't be very important, because it is very often wrong (due to this bug), and no one has noticed.