Last modified: 2013-09-11 22:46: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 T49362, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 47362 - VM can't handle unit tests
VM can't handle unit tests
Status: RESOLVED WORKSFORME
Product: MediaWiki-Vagrant
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Ori Livneh
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-18 15:38 UTC by Tyler Romeo
Modified: 2013-09-11 22:46 UTC (History)
1 user (show)

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


Attachments

Description Tyler Romeo 2013-04-18 15:38:48 UTC
So I'm not sure whether this is affecting others, but when I try to run a suite of unit tests (e.g., "make destructive"), PHPUnit gets through a couple of tests, then it begins showing Errors on all tests, and then finally it just quits out with the "Killed" message, implying the kernel killed it for memory reasons.

Output:

vagrant@mediawiki-vagrant:/vagrant/mediawiki/tests/phpunit$ make safe
php phpunit.php --configuration /vagrant/mediawiki/tests/phpunit/suite.xml  --exclude-group Broken,ParserFuzz,Destructive,Stub
PHPUnit 3.7.19 by Sebastian Bergmann.

Configuration read from /vagrant/mediawiki/tests/phpunit/suite.xml

.............................................................   61 / 6525 (  0%)
..SSSSSS.....F....EEEEEEEEE...make: *** [safe] Killed
Comment 1 Ori Livneh 2013-05-15 06:53:40 UTC
I got further than you did (76%) but I got "Killed", too. The fact that I got further may simple be a reflection of the fact that the memory allocated to the VM by default was increased by about 200 megabytes earlier this month. (It's now at 768 Mb.)

Is this just a generic issue with the tests being memory-hungry? Are they known to work on low-profile machines?
Comment 2 Tyler Romeo 2013-05-16 00:44:17 UTC
Not sure. I'm thinking it's just the tests being memory-hungry. I've tried running unit tests before on Amazon AWS micro instances (which also have limited memory) and run into the same problem.
Comment 3 Ori Livneh 2013-06-26 05:07:01 UTC
(In reply to comment #2)
> Not sure. I'm thinking it's just the tests being memory-hungry. I've tried
> running unit tests before on Amazon AWS micro instances (which also have
> limited memory) and run into the same problem.

With 4GB of memory allocated to the VM, the tests pass. So it's just the tests being very memory hungry.
Comment 4 Andre Klapper 2013-09-11 22:46:18 UTC
[mass-moving from Tools>MediaWiki-Vagrant to separate product. See bug 54041. Filter bugmail on this comment.]

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


Navigation
Links