Nikerabbit has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/274410

Change subject: Add autosync for Raymond
......................................................................

Add autosync for Raymond

Doing MediaWiki separately for Raymond, without automatic processing,
but with cron that displays link on IRC.

Change-Id: I9f0270203ca105d23114b74dbdd03ef30a3c2fb8
---
A bin/autosync-mediawiki.sh
M bin/repoupdate
M puppet/modules/wiki/templates/wikimaintenance.erb
3 files changed, 17 insertions(+), 12 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/translatewiki 
refs/changes/10/274410/1

diff --git a/bin/autosync-mediawiki.sh b/bin/autosync-mediawiki.sh
new file mode 100755
index 0000000..8e7c3b7
--- /dev/null
+++ b/bin/autosync-mediawiki.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+DIRSCRIPT="`dirname \"$0\"`"
+DIRSCRIPT="`( cd \"$DIRSCRIPT\" && pwd )`"
+
+NAME=mediawiki
+
+echo mediawiki mediawiki-extensions mediawiki-skins | xargs -n1 -P2 
"$DIRSCRIPT/repo" update
+
+php 
/srv/mediawiki/targets/production/extensions/Translate/scripts/processMessageChanges.php
 \
+       --name $NAME --group=core,ext-*,mediawiki* --quiet
+
+if [ -f "/resources/caches/translatewiki.net/messagechanges.$NAME.cdb" ]
+then
+       "$DIRSCRIPT/udpcast" "Raymond: 
https://translatewiki.net/wiki/Special:ManageMessageGroups/$NAME";
+fi
diff --git a/bin/repoupdate b/bin/repoupdate
index ecebc39..2460c41 100755
--- a/bin/repoupdate
+++ b/bin/repoupdate
@@ -29,14 +29,6 @@
        exit 0
 }
 
-processGroups() {
-       if [ "${REPO_RW:-no}" = "no" ]
-       then
-               sudo -u betawiki php 
"$WIKI/extensions/Translate/scripts/processMessageChanges.php" --quiet 
--group="$1" &&
-               echo "Please check 
https://translatewiki.net/wiki/Special:ManageMessageGroups";
-       fi
-}
-
 # Ignore subrepos like Collection/OfflineContentGenerator
 fetchReposFromGerrit() {
        curl -s "https://gerrit.wikimedia.org/r/projects/?p=$1"; |
@@ -148,8 +140,6 @@
        "$CLUPDATE_GERRIT" "$REPOPREFIX/oojs/ui.git" 
"$DIR/$PROJECT/extensions/oojs-ui"
        "$CLUPDATE_GERRIT" "$REPOPREFIX/VisualEditor/VisualEditor.git" 
"$DIR/$PROJECT/extensions/VisualEditorVisualEditor"
 
-       processGroups "ext-*"
-
 elif [ "$PROJECT" = "mediawiki-skins" ]
 then
        if [ -z "$REPO_MWSKINGIT" ]
@@ -158,8 +148,6 @@
 
        echo "$(fetchReposFromGerrit mediawiki/skins/)" |
                xargs -P4 -I___ "$CLUPDATE_GERRIT" "$REPO_MWSKINGIT/___.git" 
"$DIR/$PROJECT/___"
-
-       processGroups "mediawiki-skin-*"
 
 elif [ "$PROJECT" = "nocc" ]
 then
diff --git a/puppet/modules/wiki/templates/wikimaintenance.erb 
b/puppet/modules/wiki/templates/wikimaintenance.erb
index 061635d..10cf036 100644
--- a/puppet/modules/wiki/templates/wikimaintenance.erb
+++ b/puppet/modules/wiki/templates/wikimaintenance.erb
@@ -2,3 +2,4 @@
 @weekly www-data find /www/translatewiki.net/docroot/images/thumb/ -name 
"*.png" -type f -print0 | nice xargs -0 -P4 -I{} optipng -o7 {} 1> /dev/null
 @weekly <%= @user %> nice php 
/srv/mediawiki/targets/production/maintenance/generateSitemap.php --fspath 
/www/translatewiki.net/docroot/sitemap/ --skip-redirects --urlpath 
https://translatewiki.net/sitemap/
 48 6,10,16,20 * * * <%= @user %> /home/betawiki/config/bin/autosync.sh > 
/dev/null
+48 7,13,21 * * * <%= @user %> /home/betawiki/config/bin/autosync-mediawiki.sh 
> /dev/null

-- 
To view, visit https://gerrit.wikimedia.org/r/274410
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9f0270203ca105d23114b74dbdd03ef30a3c2fb8
Gerrit-PatchSet: 1
Gerrit-Project: translatewiki
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to