Hyper Open Edge Cloud

Debug ERP5 Test Nodes

help on failing or non starting tests in ERP5 test nodes
  • Last Update:2019-10-23
  • Version:001
  • Language:en

Helpful tips and advice for debugging erp5 test nodes.

Table of Contents

Non Starting Tests

In cases tests are not starting, look out for the following:

It could be related to a bug in NodeTestSuite, which causes tests to not start if test suites contain an empty line.

For example, following two test suites has 4 lines but the line 4 is empty. If you remove the empty line, the test should work.

WENDELIN-MASTER-DEV
https://erp5.nexedi.net/test_suite_module/179
  https://erp5.nexedi.net/test_suite_module/179/4  # empty

WENDELIN-MASTER-DEV-FIX
https://erp5.nexedi.net/test_suite_module/269
  https://erp5.nexedi.net/test_suite_module/269/4  # empty

Here is how to investigate this:

  1. Go to https://www.slapos.org/traditional_login_form with user:nexedi_development_service
  2. Search COMP-2195-3Nodes-ERP5PROJECT1
  3. login from
       https://[2001:67c:1254:3:e2cb:4eff:fed9:9fe7]:8080/
    

  4.  
    ~> tail .slappart-8_erp5testnode.log
         self._checkData()
      File 
    "/opt/slapgrid/c573c272340e422efda4bd8c14d15a12/eggs/erp5.util-0.4.44-py2.7.egg/erp5/util/testnode/NodeTestSuite.py", line 87, in 
    _checkData
        vcs_repository.get('url').split('/')[-1].split('.')[0]
    AttributeError: 'NoneType' object has no attribute 'split'
    2016-04-08 07:07:17,258 erp5testnode : INFO     GENERAL EXCEPTION, QUITING
    2016-04-08 07:07:17,259 erp5testnode : INFO     Testnode.cleanUp
    2016-04-08 07:07:17,259 erp5testnode : INFO     ProcessManager killPreviousRun, going to 
    kill set([8859])
    2016-04-08 07:07:17,274 erp5testnode : INFO     killCommand, new_child_set : set([]), 
    child_set: set([])
    2016-04-08 07:07:18,292 erp5testnode : INFO     killCommand, finishing, child_set : 
    set([])
    2016-04-08 07:07:18,309 erp5testnode : INFO     GENERAL EXCEPTION, QUITING, cleanup 
    finished
    ---
    
  5. Related Articles