Vauxoo / maintainer-quality-tools

QA tools for Odoo maintainers
GNU Affero General Public License v3.0
3 stars 9 forks source link

Revert "[IMP] travis_install_nightly: Patch odoo to create unlogged DB tables" #281

Closed moylop260 closed 6 years ago

moylop260 commented 6 years ago

Reverts Vauxoo/maintainer-quality-tools#280

The database is created as well but you will the following error if you use /web/login url:

Traceback (most recent call last):
File "python2.7/site-packages/werkzeug/serving.py", line 193, in run_wsgi
execute(self.server.app)
File "python2.7/site-packages/werkzeug/serving.py", line 181, in execute
application_iter = app(environ, start_response)
File "/odoo/service/server.py", line 246, in app
return self.app(e, s)
File "/odoo/service/wsgi_server.py", line 186, in application
return application_unproxied(environ, start_response)
File "/odoo/service/wsgi_server.py", line 172, in application_unproxied
result = handler(environ, start_response)
File "/odoo/http.py", line 1323, in __call__
return self.dispatch(environ, start_response)
File "/odoo/http.py", line 1297, in __call__
return self.app(environ, start_wrapped)
File "python2.7/site-packages/werkzeug/wsgi.py", line 599, in __call__
return self.app(environ, start_response)
File "/odoo/http.py", line 1496, in dispatch
result = ir_http._dispatch()
File "/odoo/addons/base/ir/ir_http.py", line 199, in _dispatch
return cls._handle_exception(e)
File "/odoo/addons/base/ir/ir_http.py", line 169, in _handle_exception
return request._handle_exception(exception)
File "/odoo/http.py", line 774, in _handle_exception
return super(HttpRequest, self)._handle_exception(exception)
File "/odoo/addons/base/ir/ir_http.py", line 195, in _dispatch
result = request.dispatch()
File "/odoo/http.py", line 833, in dispatch
r = self._call_function(**self.params)
File "/odoo/http.py", line 333, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/odoo/service/model.py", line 101, in wrapper
return f(dbname, *args, **kwargs)
File "/odoo/http.py", line 329, in checked_call
result.flatten()
File "/odoo/http.py", line 1274, in flatten
self.response.append(self.render())
File "/odoo/http.py", line 1267, in render
return env["ir.ui.view"].render_template(self.template, self.qcontext)
File "/odoo/addons/base/ir/ir_ui_view.py", line 1043, in render_template
return self.browse(self.get_view_id(template)).render(values, engine)
File "/odoo/addons/base/ir/ir_ui_view.py", line 950, in get_view_id
return self.env['ir.model.data'].xmlid_to_res_id(template, raise_if_not_found=True)
File "/odoo/addons/base/ir/ir_model.py", line 1085, in xmlid_to_res_id
return self.xmlid_to_res_model_res_id(xmlid, raise_if_not_found)[1]
File "/odoo/addons/base/ir/ir_model.py", line 1076, in xmlid_to_res_model_res_id
return self.xmlid_lookup(xmlid)[1:3]
File "<decorator-gen-5>", line 2, in xmlid_lookup

File "/odoo/tools/cache.py", line 87, in lookup
value = d[key] = self.method(*args, **kwargs)
File "/odoo/addons/base/ir/ir_model.py", line 1065, in xmlid_lookup
raise ValueError('External ID not found in the system: %s' % xmlid)
ValueError: External ID not found in the system: web.login

UPDATED: The real error is the tables are empty (without records). SELECT * FROM res_users <- 0 records SELECT * FROM ir_module_module <- 0 records

It is failing from runbot enterprise-mx/11.0 using psql-9.6 and new changes of Tulio and custom postgresql.conf, you can reproduce it from the runbot build of:

Note: In the past, we had a similar issue because of runbot stop the container and postgresql doesn't have time to flush the data. We just added a time sleep before to stop, but maybe we have the same issue related, I think so since that I can't reproduce it locally. Myabe you can reproduce it locally running: ./20-run.sh "--entrypoint=/entrypoint.sh -e TEST_ENABLE=0"

moylop260 commented 6 years ago

Squashed after merging: