Last modified: 2014-01-22 23:43:24 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 T61846, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59846 - tests don't run properly unless celery queue process already running
tests don't run properly unless celery queue process already running
Status: RESOLVED FIXED
Product: Analytics
Classification: Unclassified
Wikimetrics (Other open bugs)
unspecified
All Linux
: Normal normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-09 00:20 UTC by Sumana Harihareswara
Modified: 2014-01-22 23:43 UTC (History)
4 users (show)

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


Attachments

Description Sumana Harihareswara 2014-01-09 00:20:18 UTC
I have a fresh install of wikimetrics.  If in one terminal I run

 wikimetrics --mode queue

and then in another run 

 scripts/test

then the tests run - with some errors and failures, but they run, in about 100 seconds. If I DON'T explicitly get the queue going first, and just run the test script, then it runs through many of the tests but just gets stuck at

  File "/home/sumanah/test/wikimetrics/tests/test_models/test_run_report.py", line 18, in test_empty_response
    result = jr.task.delay(jr).get()
Comment 1 Sumana Harihareswara 2014-01-09 00:21:24 UTC
(This is within a virtualenv, by the way, in case that makes a difference.)
Comment 2 nuria 2014-01-20 16:41:51 UTC
With current master I see a slightly different error. Executing tests with nosetest they hang on the following line (and get stuck there a loooong time)


INFO in report [/workplace/wikimetrics/wikimetrics/models/report_nodes/report.py:47]:
running <Report("944")> on celery as None


Will take a look today
Comment 3 Gerrit Notification Bot 2014-01-21 14:29:54 UTC
Change 108679 had a related patch set uploaded by Milimetric:
Fixes Bug 59846

https://gerrit.wikimedia.org/r/108679
Comment 4 Gerrit Notification Bot 2014-01-21 16:07:26 UTC
Change 108679 merged by Milimetric:
Fixes Bug 59846

https://gerrit.wikimedia.org/r/108679
Comment 5 Sumana Harihareswara 2014-01-22 23:43:24 UTC
Now, even if I am not running the celery queue in another window, the tests run (with 2 errors and 1 failure). If I *am* running the celery queue in another window, then the tests also run, again, in about 100 seconds. So I think this is fixed! Thanks Dan.

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


Navigation
Links