Jump to content

Update the interwiki cache

From Wikitech
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The interwiki cache is a cache of the interwiki map page at Meta-Wiki, which maps interwiki prefixes to URLs. Changes to the Meta-Wiki page have no effect until the cache has been updated by a deployer, e.g. during a backport window.

How to update

  1. SSH to the deployment server: deployment.eqiad.wmnet
  2. Go to the MediaWiki deployment directory: cd /srv/mediawiki-staging/
  3. Run: scap update-interwiki-cache
  4. This should have left some uncommitted changes in the repository: git status, git diff etc.
  5. Get these changes on Gerrit, for instance by committing and pushing them here:
    1. git commit -a -m 'Update interwiki map' -m 'Bug: Txxxxxx'
    2. git push origin @:refs/for/master
    3. Enter your Gerrit user name, and an HTTP password
    • You could also upload the change some other way, e.g. by rsyncing deployment.eqiad.wmnet:/srv/mediawiki-staging/wmf-config/interwiki.php to your local config checkout and committing there.
  6. Review the changes on Gerrit; wipe them from the deployment server in the meantime: git reset --hard @{u}
  7. If the changes look okay, deploy them as normal, e.g. with scap backport.
  8. Update m:Interwiki map/updated
  • A patch created using this script.
  • task T197549 - a request to update the interwiki cache.
  • task T247107 - a change to what scap update-interwiki-cache did (it used to push the change to Gerrit and deploy it directly)
    • task T192469 - somewhat shows the output of the old scap update-interwiki-cache (in a different context).
    • task T197166#4295654 - the script would fail if you do not have +2 rights on the operations/mediawiki-config.git repository.