Update the interwiki cache
Appearance
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
- SSH to the deployment server:
deployment.eqiad.wmnet
- Go to the MediaWiki deployment directory:
cd /srv/mediawiki-staging/
- Run:
scap update-interwiki-cache
- This should have left some uncommitted changes in the repository:
git status
,git diff
etc. - Get these changes on Gerrit, for instance by committing and pushing them here:
git commit -a -m 'Update interwiki map' -m 'Bug: Txxxxxx'
git push origin @:refs/for/master
- 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.
- Review the changes on Gerrit; wipe them from the deployment server in the meantime:
git reset --hard @{u}
- If the changes look okay, deploy them as normal, e.g. with
scap backport
. - Update m:Interwiki map/updated
Example session |
---|
[urbanecm@deploy1002 ~]$ scap update-interwiki-cache
[urbanecm@deploy1002 ~]$ cd /srv/mediawiki-staging/
[urbanecm@deploy1002 /srv/mediawiki-staging (master * u=)]$ git status
On branch master
Your branch is up to date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: wmf-config/interwiki.php
no changes added to commit (use "git add" and/or "git commit -a")
[urbanecm@deploy1002 /srv/mediawiki-staging (master * u=)]$ git commit -am 'Update interwiki map
>
> Bug: T368862'
[master 376573428] Update interwiki map
1 file changed, 10 insertions(+), 12 deletions(-)
[urbanecm@deploy1002 /srv/mediawiki-staging (master u+1)]$ git push-for-review
Username for 'https://gerrit.wikimedia.org': urbanecm
Password for 'https://urbanecm@gerrit.wikimedia.org':
Enumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 32 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 785 bytes | 785.00 KiB/s, done.
Total 4 (delta 3), reused 0 (delta 0)
remote: Resolving deltas: 100% (3/3)
remote: Processing changes: refs: 1, new: 1, done
remote:
remote: SUCCESS
remote:
remote: https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/1051135 Update interwiki map [NEW]
remote:
To https://gerrit.wikimedia.org/r/operations/mediawiki-config
* [new branch] HEAD -> refs/for/master
[urbanecm@deploy1002 /srv/mediawiki-staging (master u+1)]$ git reset --hard HEAD~
HEAD is now at 1833848a1 testwiki: Enable QuickSurveys
[urbanecm@deploy1002 /srv/mediawiki-staging (master u=)]$ # scap backport 1051135 will work just fine from here
|
Related
- 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.
- task T192469 - somewhat shows the output of the old