refs https://sourceforge.net/p/semediawiki/mailman/message/36028997/
First of all, it is delight to have such simple setup by just running the VM without having to deal with all the vagrant, ansible setup.
The following issues appeared with the https://doi.org/10.6084/m9.figshare.5383966.v1 file:
VM description
The VM description says "..with MediaWiki 1.9, ..." which should state 1.29 instead.
Display resolution
I need to install sudo apt-get install virtualbox-guest-utils virtualbox-guest-x11 virtualbox-guest-dkms to allow for a better display resolution
LocalSettings.php
- Link to the
LocalSettings.php on the desktop
- Add
$wgAllowDisplayTitle = true; $wgRestrictDisplayTitle = false; to use the DISPLAYTITLE
$smwgOWLFullExport is not required (doesn't exists since 1.6)
Outdated cURL extension
I had to manually update cURL sudo apt-get install php-curl as tests complained with "Use of undefined constant CURLE_GOT_NOTHING - assumed 'CURLE_GOT_NOTHING'"
php.ini
Some reports of Maximum execution time of 60 seconds exceeded hence required to change the php.ini - max_execution_time.
XDebug
XDebug is enabled by default which kills performance and it should be disabled using "sudo phpdismod -s cli xdebug".
Accessing the Virtualbox from the outside
Accessing your Virtualbox Guest from your Host OS (https://2buntu.com/articles/1513/accessing-your-virtualbox-guest-from-your-host-os/)
Running SMW standard tests
After resolving all above issues, I was finally able to the run composer phpunit (or composer integration for those integration tests) and the encounter the following issue:
In /var/www/html/w/extensions/Rdfio/stores/SMW_ARC2Store.php:110 there is no such method as SMWWikiPageValue::setValues not in 2.5.* and not in 1.8* (for comparison see https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/1.8.0.5/includes/datavalues/SMW_DV_WikiPage.php).
ubuntu@ubuntu-xenial:/var/www/html/w/extensions/SemanticMediaWiki$ composer integration -- --stop-on-error
> composer phpunit -- --testsuite=semantic-mediawiki-integration '--stop-on-error'
> php ../../tests/phpunit/phpunit.php -c phpunit.xml.dist '--testsuite=semantic-mediawiki-integration' '--stop-on-error'
Using PHP 7.0.22-0ubuntu0.16.04.1
Semantic MediaWiki: 2.5.4 (SMWARC2Store, mysql)
MediaWiki: 1.29.0 (MediaWiki vendor autoloader)
Site language: en
Execution time: 2017-09-07 06:43
Debug logs: Disabled
Xdebug: Disabled (or not installed)
PHPUnit 4.8.35 by Sebastian Bergmann and contributors.
Runtime: PHP 7.0.22-0ubuntu0.16.04.1
Configuration: /var/www/html/w/extensions/SemanticMediaWiki/phpunit.xml.dist
............................................................E
SMW\Tests\Integration\JSONScript\JsonTestCaseScriptRunnerTest::executeTestCases executeTestCases with data set "f-0303.json" ran for 10.069 seconds
SMW\Tests\Integration\JSONScript\JsonTestCaseScriptRunnerTest::executeTestCases executeTestCases with data set "p-0207.json" ran for 43.698 seconds
Time: 3.64 minutes, Memory: 76.00MB
There was 1 error:
1) SMW\Tests\Integration\JSONScript\JsonTestCaseScriptRunnerTest::executeTestCases with data set "p-0405.json" ('/var/www/html/w/extensions/Se...5.json')
Error: Call to undefined method SMWWikiPageValue::setValues()
/var/www/html/w/extensions/Rdfio/stores/SMW_ARC2Store.php:110
/var/www/html/w/extensions/SemanticMediaWiki/includes/StoreUpdater.php:276
/var/www/html/w/extensions/SemanticMediaWiki/includes/StoreUpdater.php:247
/var/www/html/w/extensions/SemanticMediaWiki/includes/StoreUpdater.php:212
/var/www/html/w/extensions/SemanticMediaWiki/includes/StoreUpdater.php:142
/var/www/html/w/extensions/SemanticMediaWiki/includes/StoreUpdater.php:96
/var/www/html/w/extensions/SemanticMediaWiki/includes/ParserData.php:406
/var/www/html/w/extensions/SemanticMediaWiki/src/Updater/DeferredCallableUpdate.php:236
/var/www/html/w/extensions/SemanticMediaWiki/src/Updater/TransactionalDeferredCallableUpdate.php:134
/var/www/html/w/extensions/SemanticMediaWiki/src/Updater/DeferredCallableUpdate.php:265
/var/www/html/w/extensions/SemanticMediaWiki/includes/ParserData.php:422
/var/www/html/w/extensions/SemanticMediaWiki/src/MediaWiki/Hooks/LinksUpdateConstructed.php:94
/var/www/html/w/extensions/SemanticMediaWiki/src/MediaWiki/Hooks/HookRegistry.php:359
/var/www/html/w/includes/Hooks.php:186
/var/www/html/w/includes/deferred/LinksUpdate.php:160
/var/www/html/w/includes/content/AbstractContent.php:234
/var/www/html/w/includes/page/WikiPage.php:2168
/var/www/html/w/includes/page/WikiPage.php:1789
/var/www/html/w/includes/libs/rdbms/database/Database.php:2693
/var/www/html/w/includes/deferred/AtomicSectionUpdate.php:35
/var/www/html/w/includes/deferred/DeferredUpdates.php:257
/var/www/html/w/includes/deferred/DeferredUpdates.php:210
/var/www/html/w/includes/deferred/DeferredUpdates.php:127
/var/www/html/w/includes/deferred/DeferredUpdates.php:289
/var/www/html/w/includes/deferred/DeferredUpdates.php:97
/var/www/html/w/includes/page/WikiPage.php:1801
/var/www/html/w/includes/page/WikiPage.php:1619
/var/www/html/w/extensions/SemanticMediaWiki/tests/phpunit/Utils/PageCreator.php:92
/var/www/html/w/extensions/SemanticMediaWiki/tests/phpunit/Utils/PageCreator.php:71
/var/www/html/w/extensions/SemanticMediaWiki/tests/phpunit/JsonTestCaseContentHandler.php:147
/var/www/html/w/extensions/SemanticMediaWiki/tests/phpunit/JsonTestCaseContentHandler.php:112
/var/www/html/w/extensions/SemanticMediaWiki/tests/phpunit/JsonTestCaseScriptRunner.php:239
/var/www/html/w/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/JsonTestCaseScriptRunnerTest.php:216
/var/www/html/w/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/JsonTestCaseScriptRunnerTest.php:154
/var/www/html/w/extensions/SemanticMediaWiki/tests/phpunit/JsonTestCaseScriptRunner.php:160
/var/www/html/w/extensions/SemanticMediaWiki/tests/phpunit/MwDBaseUnitTestCase.php:131
/var/www/html/w/maintenance/doMaintenance.php:111
We should be able to run composer phpunit from the SMW root directory without problems with or without enabled SMWARC2Store.
refs https://sourceforge.net/p/semediawiki/mailman/message/36028997/
First of all, it is delight to have such simple setup by just running the VM without having to deal with all the vagrant, ansible setup.
The following issues appeared with the https://doi.org/10.6084/m9.figshare.5383966.v1 file:
VM description
The VM description says "..with MediaWiki 1.9, ..." which should state 1.29 instead.
Display resolution
I need to install
sudo apt-get install virtualbox-guest-utils virtualbox-guest-x11 virtualbox-guest-dkmsto allow for a better display resolutionLocalSettings.php
LocalSettings.phpon the desktop$wgAllowDisplayTitle = true; $wgRestrictDisplayTitle = false;to use the DISPLAYTITLE$smwgOWLFullExportis not required (doesn't exists since 1.6)Outdated cURL extension
I had to manually update cURL
sudo apt-get install php-curlas tests complained with "Use of undefined constant CURLE_GOT_NOTHING - assumed 'CURLE_GOT_NOTHING'"php.ini
Some reports of
Maximum execution time of 60 seconds exceededhence required to change thephp.ini - max_execution_time.XDebug
XDebug is enabled by default which kills performance and it should be disabled using "sudo phpdismod -s cli xdebug".
Accessing the Virtualbox from the outside
Accessing your Virtualbox Guest from your Host OS (https://2buntu.com/articles/1513/accessing-your-virtualbox-guest-from-your-host-os/)
Running SMW standard tests
After resolving all above issues, I was finally able to the run
composer phpunit(orcomposer integrationfor those integration tests) and the encounter the following issue:In
/var/www/html/w/extensions/Rdfio/stores/SMW_ARC2Store.php:110there is no such method asSMWWikiPageValue::setValuesnot in 2.5.* and not in 1.8* (for comparison see https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/1.8.0.5/includes/datavalues/SMW_DV_WikiPage.php).We should be able to run
composer phpunitfrom the SMW root directory without problems with or without enabledSMWARC2Store.