Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020495Openbravo ERPA. Platformpublic2012-05-14 16:552012-05-25 12:12
shuehner 
marvintm 
highminorhave not tried
closedfixed 
5
pi 
3.0MP12 
Core
No
0020495: ant smartbuild (called without -Dlocal=no) should not call apply.module
Calling:
1.) ant smartbuild -> does call apply.module once (via smartbuild directly)
2.) ant smartbuild -Dlocal=no -> does call apply.module twice (once indirectly via the update.database call + a second one like in case 1.)

As an apply.module not doing anything can cost up to 20s of runtime (indirect cost because of compile.apply.module) it should not be run twice.

Also ant smartbuild without the '-Dlocal=no' option does not request to update the database but apply.module does exactly that (import referencedata + translations).

Thus the function of 'ant smartbuild' should be changed to not call any 'apply.module' itself but only indirectly when requested via '-Dlocal=no'


Note: This is a behaviour change and probably should be announced somehow to all developers.
-
Thus the function of 'ant smartbuild' should be changed to not call any 'apply.module' itself but only indirectly when requested via '-Dlocal=no'
Performance
Issue History
2012-05-14 16:55shuehnerNew Issue
2012-05-14 16:55shuehnerAssigned To => marvintm
2012-05-14 16:55shuehnerModules => Core
2012-05-15 12:02hgbotCheckin
2012-05-15 12:02hgbotNote Added: 0048645
2012-05-15 12:02hgbotStatusnew => resolved
2012-05-15 12:02hgbotResolutionopen => fixed
2012-05-15 12:02hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9d97cd71780173b4e52929001009a8a0123e29cd [^]
2012-05-16 09:05alostaleTag Attached: Performance
2012-05-16 09:06alostaleNote Added: 0048677
2012-05-16 09:06alostaleStatusresolved => closed
2012-05-16 09:06alostaleFixed in Version => 3.0MP12
2012-05-25 12:12hudsonbotCheckin
2012-05-25 12:12hudsonbotNote Added: 0049130

Notes
(0048645)
hgbot   
2012-05-15 12:02   
Repository: erp/devel/pi
Changeset: 9d97cd71780173b4e52929001009a8a0123e29cd
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue May 15 12:01:27 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/9d97cd71780173b4e52929001009a8a0123e29cd [^]

Fixed issue 20495. Apply.module has been removed from smartbuild.
- As update.database already calls apply.module, it was called twice in case smartbuild was called with -Dlocal=no.
- In case -Dlocal=no was not used, it was actually incorrect, as the user didn't specify that he wanted to update the database (that's what -Dlocal means).

---
M build.xml
---
(0048677)
alostale   
2012-05-16 09:06   
Code reviewed and verified on pi@d4ef642f1e2a
(0049130)
hudsonbot   
2012-05-25 12:12   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/5401e185a8b0 [^]

Maturity status: Test