#7178 error with parallel tests: 'solr' is None

v1.2.0
closed
sf-2 (994)
General
2015-08-20
2014-02-14
No

Sometimes when using ./run_tests with multiple processes, I get lots of these errors:

  File "/var/local/env-allura/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/case.py", line 381, in setUp
    try_run(self.inst, ('setup', 'setUp'))
  File "/var/local/env-allura/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/util.py", line 469, in try_run
    return func()
  File "/home/dbrondsema/dbrondsema-1019/forge/AlluraTest/alluratest/controller.py", line 129, in setUp
    setup_functional_test(app_name=self.application_under_test))
  File "/home/dbrondsema/dbrondsema-1019/forge/AlluraTest/alluratest/controller.py", line 83, in setup_functional_test
    setup_basic_test(config, app_name)
  File "/home/dbrondsema/dbrondsema-1019/forge/AlluraTest/alluratest/controller.py", line 75, in setup_basic_test
    while M.MonQTask.run_ready('setup'):
  File "/home/dbrondsema/dbrondsema-1019/forge/Allura/allura/model/monq_model.py", line 239, in run_ready
    task()
  File "/home/dbrondsema/dbrondsema-1019/forge/Allura/allura/model/monq_model.py", line 267, in __call__
    self.result = func(*self.args, **self.kwargs)
  File "/home/dbrondsema/dbrondsema-1019/forge/Allura/allura/tasks/index_tasks.py", line 66, in add_artifacts
    solr.add(solr_updates)
AttributeError: 'NoneType' object has no attribute 'add'

Discussion

  • Dave Brondsema

    Dave Brondsema - 2014-02-24
    • Size: --> 2
     
  • Dave Brondsema

    Dave Brondsema - 2014-02-24
    • Milestone: forge-backlog --> forge-mar-7
     
  • Cory Johns

    Cory Johns - 2014-02-25
    • status: open --> in-progress
    • assigned_to: Cory Johns
     
  • Cory Johns

    Cory Johns - 2014-02-26
    • status: in-progress --> code-review
     
  • Cory Johns

    Cory Johns - 2014-02-26

    allura:cj/7178

     
  • Dave Brondsema

    Dave Brondsema - 2014-03-04
    • QA: Dave Brondsema
     
  • Dave Brondsema

    Dave Brondsema - 2014-03-04
    • status: code-review --> closed
     
  • Dave Brondsema

    Dave Brondsema - 2015-01-05
    • Milestone: unreleased --> asf_release_1.2.0
     

Log in to post a comment.