Last modified: 2011-05-10 19:48:18 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 T30908, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28908 - PHPUnit tests fail on Git checkouts
PHPUnit tests fail on Git checkouts
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Unit tests (Other open bugs)
1.20.x
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-10 16:39 UTC by Max Semenik
Modified: 2011-05-10 19:48 UTC (History)
1 user (show)

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


Attachments

Description Max Semenik 2011-05-10 16:39:57 UTC
$ git clone http://github.com/mediawiki/mediawiki-trunk-phase3.git
$ php install.php --dbtype sqlite --dbname gittest --dbpath /home/maxsem --pass foo bar baz

maxsem@ci:~/mediawiki-trunk-phase3/tests/phpunit$ make destructive
php phpunit.php --configuration /home/maxsem/mediawiki-trunk-phase3/tests/phpunit/suite.xml
Unexpected non-MediaWiki exception encountered, of type "UnexpectedValueException"
exception 'UnexpectedValueException' with message 'RecursiveDirectoryIterator::__construct(./skins): failed to open dir: No such file or directory' in /usr/share/php/PHPUnit/Runner/IncludePathTestCollector.php:124
Stack trace:
#0 /usr/share/php/PHPUnit/Runner/IncludePathTestCollector.php(124): RecursiveDirectoryIterator->__construct('./skins')
#1 /usr/share/php/PHPUnit/Util/Configuration.php(759): PHPUnit_Runner_IncludePathTestCollector->collectTests()
#2 /usr/share/php/PHPUnit/Util/Configuration.php(712): PHPUnit_Util_Configuration->getTestSuite(Object(DOMElement), false)
#3 /usr/share/php/PHPUnit/TextUI/Command.php(793): PHPUnit_Util_Configuration->getTestSuiteConfiguration(false)
#4 /usr/share/php/PHPUnit/TextUI/Command.php(155): PHPUnit_TextUI_Command->handleArguments(Array)
#5 /home/maxsem/mediawiki-trunk-phase3/tests/phpunit/MediaWikiPHPUnitCommand.php(20): PHPUnit_TextUI_Command->run(Array, true)
#6 /home/maxsem/mediawiki-trunk-phase3/tests/phpunit/phpunit.php(63): MediaWikiPHPUnitCommand::main()
#7 {main}
make: *** [phpunit] Error 1

Reproduceable on Windows, too.
Comment 1 Brion Vibber 2011-05-10 17:53:59 UTC
Cannot reproduce on Ubuntu 11.04 with PHPUnit freshly updated via pear. SVN and git mirror checkouts appear to run identically.

However it's increeeedddiibbbbllllyyyyy slow, so it might be dying partway through if you're chopping out the output prior to that.

Output so far for SVN:

brion@stormcloud:~/pages/phase3/tests/phpunit$ make destructive
php phpunit.php --configuration /var/www/phase3/tests/phpunit/suite.xml 
PHPUnit 3.5.13 by Sebastian Bergmann.

................................................IIIII........   61 / 2270 (  2%)
.......................I.....................................  122 / 2270 (  5%)
..........................EEEEEEEE...........................  183 / 2270 (  8%)
...


and git:

brion@stormcloud:~/pages/mediawiki-trunk-phase3/tests/phpunit$ make destructivephp phpunit.php --configuration /var/www/mediawiki-trunk-phase3/tests/phpunit/suite.xml 
PHPUnit 3.5.13 by Sebastian Bergmann.

................................................IIIII........   61 / 2270 (  2%)
.......................I.....................................  122 / 2270 (  5%)
..........................EEEEEEEE...........................  183 / 2270 (  8%)
...
Comment 2 Max Semenik 2011-05-10 18:52:05 UTC
(In reply to comment #1)
> Cannot reproduce on Ubuntu 11.04 with PHPUnit freshly updated via pear. SVN and
> git mirror checkouts appear to run identically.

I tested on ci.tesla, the *test* server:)

> However it's increeeedddiibbbbllllyyyyy slow
This is bug 27877.


> so it might be dying partway
No, it explodes immediately.
Comment 3 Max Semenik 2011-05-10 19:48:18 UTC
Right, upgrading PHPUnit to 3.5+ fixed this both on ci.tesla and my box, so I made it a requirement in r87839.

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


Navigation
Links