Last modified: 2014-08-12 12:50:04 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T70637, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68637 - file_get_contents(/srv/vagrant/mediawiki/extensions/GWToolset/includes/Helpers/WikiPages.php): failed to open stream: No such file or directory
file_get_contents(/srv/vagrant/mediawiki/extensions/GWToolset/includes/Helper...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
GWToolset (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-26 23:31 UTC by Nemo
Modified: 2014-08-12 12:50 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Nemo 2014-07-26 23:31:08 UTC
When running unit tests:

1) AutoLoaderTest::testAutoLoadConfig
file_get_contents(/srv/vagrant/mediawiki/extensions/GWToolset/includes/Helpers/WikiPages.php): failed to open stream: No such file or directory

/srv/vagrant/mediawiki/tests/phpunit/structure/AutoLoaderTest.php:61
/srv/vagrant/mediawiki/tests/phpunit/structure/AutoLoaderTest.php:35
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160
Comment 1 Antoine "hashar" Musso (WMF) 2014-07-28 09:32:02 UTC
Seems to be only about GWToolset, not when being run in conjunction with other extensions. Unblocking bug 67216
Comment 2 dan 2014-07-28 10:51:24 UTC
not sure which tests are being run in the vagrant instance with GWToolset; are you attempting to create a test within your vagrant environment? up until now there are no "built-in" unit tests. i began to write one, but found the process complex. the test environment needs to have:

1. an example XML
2. at least one mediawiki template available, e.g. Artwork

here is the test i started to create: https://gerrit.wikimedia.org/r/#/c/134078/. it attempts to import the Artwork template into the test environment and then references an example XML file. it works locally in my own dev environment, but in the Jenkins test environment it can't find the XML example file or Artwork template XML file for import. i haven't had a chance to look into it further.
Comment 3 Nemo 2014-07-31 23:01:54 UTC
I didn't make any test. This looks like a generic test which fails for GWT: an error in your autoloader statement, or something like that. Didn't look into it.
Comment 4 dan 2014-08-01 05:59:19 UTC
thanks for the catch. uploaded patch https://gerrit.wikimedia.org/r/#/c/151026/
Comment 5 Gerrit Notification Bot 2014-08-01 06:46:34 UTC
Change 151026 had a related patch set uploaded by Hashar:
missing autoloader file

https://gerrit.wikimedia.org/r/151026
Comment 6 Gerrit Notification Bot 2014-08-07 15:27:30 UTC
Change 151026 merged by jenkins-bot:
Rm class entries for auto-loader that no longer exist

https://gerrit.wikimedia.org/r/151026
Comment 7 dan 2014-08-09 06:48:24 UTC
hey Nemo,

the patch has been merged. are you okay with closing the bug now?
Comment 8 Nemo 2014-08-12 12:50:04 UTC
Sure, I'll reopen if I encounter it again.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links