Jump to content

Nova Resource:Wikidata-dev/wikidata-constraints

From Wikitech
This page contains historical information. It may be outdated or unreliable.
2019
This instance was deleted on 2019-10-02.

This instance is a test system for WikibaseQualityConstraints. It is manually administered, mainly by Lucas Werkmeister (WMDE), and reachable at wikidata-constraints.wmflabs.org.

System setup

The system was originally installed on a debian-8.7-jessie image following the instructions in P4838 “Easy install mediawiki on labs!”. Later, the system was manually upgraded to Debian Stretch (SAL).

The main services running are apache2.service and mariadb.service. Apache serves /var/www/html/, where MediaWiki is installed directly. The system does not have enough memory to run BlazeGraph; to support the “format” constraint, a fake SPARQL server runs instead as minisparql.socket (systemd spawns a new minisparql@.service instance for each connection to the socket).

Updating

To update the wiki, the following commands are usually sufficient (via SSH on the wikidata-constraints.eqiad.wmflabs host):

umask g+w
cd /var/www/html/
for dir in . extensions/*/; do git -C "$dir" pull || break; done
composer update
php maintenance/update.php --quick
php maintenance/rebuildLocalisationCache.php
php extensions/WikibaseQualityConstraints/maintenance/ImportConstraintEntities.php | tee -a LocalSettings.php

Consider logging the update in #wikimedia-cloud connect:

!log wikidata-dev wikidata-constraints update MediaWiki and extensions to current master

You can see all wikidata-constraints SAL log entries.