b58967d8d140cf2f6ec0d1ed159041d8857e971b
During tests on runbot, the main reason tours are slow to start is because the first loading of "/web" need to generate assets bundles. Generation can take up to 5 seconds time the number of tour. Before this, the first requests to /web takes around 7 seconds on runbot and the next ones less than 1 second. After this commit, the first request to /web takes around 1.5 seconds Note that the main difficulty is to choose when to generate the assets. (With optimisations from following commits) the generation time is arround 30 seconds (21 css + 12 js) the first time, for all modules. If the attachements exists the generation time is arround 3 seconds (2.5 js + 0.5 css) mainly because of globs to find usefull files. In practice for runbot the ideal would be to generate them at the end of the install so that it is shared for all post_install builds. Doint it at the end of an install is not wanted in all cases, saas pregenerated templates and upgrade may avoid doing that. Doing it in a special runbot step (subcommand) is not possible for niglty execution (no split, in one go). This needs to be in the code. It is also not practical for devs wanting to have the same behaviour on a local machine. A solution to make the test conditionnal at install is to base the condion on an existing test_module. test_assetsbundle is a good candidate here. On runbot, the at_install step (befor split) will automatically generate assets with this solution. Assets are also generated before post_install tests. This should be fast if they already exists and ensure that assets are up to date after modifying sources locally or after downloading a database on runbot. It should be fast enough for small database and may be even faster in the future for small diffs. Part-of: odoo/odoo#99176
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%