openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #27479
[Bug 1295545] [NEW] crm_partner_assign: test failure in geo_find
Public bug reported:
On my buildbot I have intermittent failures from crm_partner_assign.
Here is the relevant log extract:
2014-03-20 20:01:35,440 15630 INFO openerp-buildbot-ocb-7.0 openerp.modules.loading: module crm_partner_assign: loading test/partner_assign.yml
2014-03-20 20:01:35,454 15630 TEST openerp-buildbot-ocb-7.0 openerp.tools.yaml_import: In order to test find nearest Partner functionality and assign to opportunity ,
2014-03-20 20:01:35,455 15630 TEST openerp-buildbot-ocb-7.0 openerp.tools.yaml_import: I Set Geo Lattitude and Longitude according to partner address.
2014-03-20 20:05:35,687 15630 ERROR openerp-buildbot-ocb-7.0 openerp.tools.yaml_import: ('Network error', 'Cannot contact geolocation servers. Please make sure that your internet connection is up and running (Extra data: line 2 column 1 - line 78 column 1 (char 5 - 2174)).')
Traceback (most recent call last):
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/server/openerp/tools/yaml_import.py", line 864, in process
self._process_node(node)
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/server/openerp/tools/yaml_import.py", line 877, in _process_node
self.process_python(node)
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/server/openerp/tools/yaml_import.py", line 550, in process_python
unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/addons/crm_partner_assign/test/partner_assign.yml", line 1, in <module>
-
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/addons/crm_partner_assign/crm_partner_assign.py", line 113, in geo_localize
country=partner.country_id.name))
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/addons/crm_partner_assign/crm_partner_assign.py", line 43, in geo_find
_('Cannot contact geolocation servers. Please make sure that your internet connection is up and running (%s).') % e)
except_osv: ('Network error', 'Cannot contact geolocation servers. Please make sure that your internet connection is up and running (Extra data: line 2 column 1 - line 78 column 1 (char 5 - 2174)).')
2014-03-20 20:05:35,688 15630 ERROR openerp-buildbot-ocb-7.0 openerp.modules.loading: module crm_partner_assign: an exception occurred in a test
Traceback (most recent call last):
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/server/openerp/modules/loading.py", line 83, in load_test
_load_data(cr, module_name, idref, mode, 'test')
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/server/openerp/modules/loading.py", line 122, in _load_data
tools.convert_yaml_import(cr, module_name, fp, kind, idref, mode, noupdate, report)
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/server/openerp/tools/yaml_import.py", line 928, in yaml_import
yaml_interpreter.process(yaml_string)
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/server/openerp/tools/yaml_import.py", line 864, in process
self._process_node(node)
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/server/openerp/tools/yaml_import.py", line 877, in _process_node
self.process_python(node)
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/server/openerp/tools/yaml_import.py", line 550, in process_python
unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/addons/crm_partner_assign/test/partner_assign.yml", line 1, in <module>
-
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/addons/crm_partner_assign/crm_partner_assign.py", line 113, in geo_localize
country=partner.country_id.name))
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/addons/crm_partner_assign/crm_partner_assign.py", line 43, in geo_find
_('Cannot contact geolocation servers. Please make sure that your internet connection is up and running (%s).') % e)
except_osv: ('Network error', 'Cannot contact geolocation servers. Please make sure that your internet connection is up and running (Extra data: line 2 column 1 - line 78 column 1 (char 5 - 2174)).')
Issues:
1. it is not so great to depend on external network ressources for
testing. In this case I experience random test failures caused by this.
2. the error message is misleading. In this case, there was probably an
error returned from google geolocation services, but there is no telling
from the log message what really happened and what data was returned.
The exception hints that the json could not be properly decoded.
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1295545
Title:
crm_partner_assign: test failure in geo_find
Status in OpenERP Addons (modules):
New
Bug description:
On my buildbot I have intermittent failures from crm_partner_assign.
Here is the relevant log extract:
2014-03-20 20:01:35,440 15630 INFO openerp-buildbot-ocb-7.0 openerp.modules.loading: module crm_partner_assign: loading test/partner_assign.yml
2014-03-20 20:01:35,454 15630 TEST openerp-buildbot-ocb-7.0 openerp.tools.yaml_import: In order to test find nearest Partner functionality and assign to opportunity ,
2014-03-20 20:01:35,455 15630 TEST openerp-buildbot-ocb-7.0 openerp.tools.yaml_import: I Set Geo Lattitude and Longitude according to partner address.
2014-03-20 20:05:35,687 15630 ERROR openerp-buildbot-ocb-7.0 openerp.tools.yaml_import: ('Network error', 'Cannot contact geolocation servers. Please make sure that your internet connection is up and running (Extra data: line 2 column 1 - line 78 column 1 (char 5 - 2174)).')
Traceback (most recent call last):
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/server/openerp/tools/yaml_import.py", line 864, in process
self._process_node(node)
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/server/openerp/tools/yaml_import.py", line 877, in _process_node
self.process_python(node)
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/server/openerp/tools/yaml_import.py", line 550, in process_python
unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/addons/crm_partner_assign/test/partner_assign.yml", line 1, in <module>
-
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/addons/crm_partner_assign/crm_partner_assign.py", line 113, in geo_localize
country=partner.country_id.name))
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/addons/crm_partner_assign/crm_partner_assign.py", line 43, in geo_find
_('Cannot contact geolocation servers. Please make sure that your internet connection is up and running (%s).') % e)
except_osv: ('Network error', 'Cannot contact geolocation servers. Please make sure that your internet connection is up and running (Extra data: line 2 column 1 - line 78 column 1 (char 5 - 2174)).')
2014-03-20 20:05:35,688 15630 ERROR openerp-buildbot-ocb-7.0 openerp.modules.loading: module crm_partner_assign: an exception occurred in a test
Traceback (most recent call last):
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/server/openerp/modules/loading.py", line 83, in load_test
_load_data(cr, module_name, idref, mode, 'test')
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/server/openerp/modules/loading.py", line 122, in _load_data
tools.convert_yaml_import(cr, module_name, fp, kind, idref, mode, noupdate, report)
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/server/openerp/tools/yaml_import.py", line 928, in yaml_import
yaml_interpreter.process(yaml_string)
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/server/openerp/tools/yaml_import.py", line 864, in process
self._process_node(node)
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/server/openerp/tools/yaml_import.py", line 877, in _process_node
self.process_python(node)
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/server/openerp/tools/yaml_import.py", line 550, in process_python
unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/addons/crm_partner_assign/test/partner_assign.yml", line 1, in <module>
-
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/addons/crm_partner_assign/crm_partner_assign.py", line 113, in geo_localize
country=partner.country_id.name))
File "/srv/openerp/buildbot/slave/sandbox/ocb-7_0-postgresql-9_1/build/parts/addons/crm_partner_assign/crm_partner_assign.py", line 43, in geo_find
_('Cannot contact geolocation servers. Please make sure that your internet connection is up and running (%s).') % e)
except_osv: ('Network error', 'Cannot contact geolocation servers. Please make sure that your internet connection is up and running (Extra data: line 2 column 1 - line 78 column 1 (char 5 - 2174)).')
Issues:
1. it is not so great to depend on external network ressources for
testing. In this case I experience random test failures caused by
this.
2. the error message is misleading. In this case, there was probably
an error returned from google geolocation services, but there is no
telling from the log message what really happened and what data was
returned. The exception hints that the json could not be properly
decoded.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1295545/+subscriptions
Follow ups
References