Last modified: 2014-11-17 21:36:12 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 T70593, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68593 - Running tests results in a lot of bogus jobs
Running tests results in a lot of bogus jobs
Status: NEW
Product: MediaWiki-Vagrant
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-25 22:51 UTC by Max Semenik
Modified: 2014-11-17 21:36 UTC (History)
3 users (show)

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


Attachments

Description Max Semenik 2014-07-25 22:51:29 UTC
After running tests, job queue gets overflown by jobs spawned by test data creation, which due to job runner, results in one process consistently eating one CPU core:

www-data 28814 95.6  5.1 758568 106112 ?       RN   22:17   0:02 php maintenance/runJobs.php --wiki=wiki-unittest_ --type=cirrusSearchLinksUpdateSecondary --maxt

Which noticeably heats up my laptop and reduces battery time.

The temporary solution is
   echo flushall|redis-cli && sudo pkill -e -9 php
however a proper fix is needed.
Comment 1 Bryan Davis 2014-07-25 23:10:29 UTC
(In reply to Max Semenik from comment #0)
> The temporary solution is
>    echo flushall|redis-cli && sudo pkill -e -9 php
> however a proper fix is needed.

Like tests not leaving bogus jobs around?

Or is this caused by the phpunit environment picking up the "production" MW configuration? I know I needed to add a settings file to set `if ( defined( 'MW_PHPUNIT_TEST' ) ) { $wgSharedDB = null; }` because of the centralauth role making phpunit barf. Maybe there is a set of similar settings that should be put into LocalSettings.php for MW-V?
Comment 2 Bryan Davis 2014-11-17 21:36:12 UTC
Bulk unassigning bugs from Ori.

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


Navigation
Links