Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||||||||||
View Issue Details | |||||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||||
0029274 | Openbravo ERP | 09. Financial management | public | 2015-03-13 15:07 | 2015-09-07 11:55 | ||||||||||||||||
Reporter | shuehner | ||||||||||||||||||||
Assigned To | aferraz | ||||||||||||||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||||
Product Version | |||||||||||||||||||||
Target Version | Fixed in Version | ||||||||||||||||||||
Merge Request Status | |||||||||||||||||||||
Review Assigned To | dmiguelez | ||||||||||||||||||||
OBNetwork customer | |||||||||||||||||||||
Web browser | |||||||||||||||||||||
Modules | Core | ||||||||||||||||||||
Support ticket | |||||||||||||||||||||
Regression level | |||||||||||||||||||||
Regression date | |||||||||||||||||||||
Regression introduced in release | |||||||||||||||||||||
Regression introduced by commit | |||||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||||
Summary | 0029274: New TestCosting junit test is very very slow | ||||||||||||||||||||
Description | That TestCosting junit test is testing the CostingBackground process which is using weld. Current those junit test do not call the process directly as that is not supported in junit tests (platform team has a bug about that). This is tracked in issue 28625. However the current code to work around that is causing severe slowdown of the Costing tests. | ||||||||||||||||||||
Steps To Reproduce | See TestCosting runtime being 17min alone. Compare to 4-5 min for all other junit tests combined. | ||||||||||||||||||||
Proposed Solution | Improve the workaround code to call background processes via process monitor. It currently does 1.) trigger process execution 2.) wait always 5s 3.) then loop 30 attemtps of (check finished, wait 1s) Proposal: Remove static 5s wait as that it causing most of the 17min runtime. Reduce the 1s check in loop to 0.25s as most junit tests seems to finish much faster In theory that should not affect stability at all assuming that the tests are stable before. As the current code seems to asusme already: It is waiting for its own process execution and no other concurrent one should happen. If that assumption is not true both unchanged + modified code are not stable. | ||||||||||||||||||||
Additional Information | |||||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||||
Relationships |
| ||||||||||||||||||||
Attached Files | 29274.diff (3,567) 2015-03-13 15:08 https://issues.openbravo.com/file_download.php?file_id=7895&type=bug | ||||||||||||||||||||
Issue History | |||||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||||
2015-03-13 15:07 | shuehner | New Issue | |||||||||||||||||||
2015-03-13 15:07 | shuehner | Assigned To | => Sandrahuguet | ||||||||||||||||||
2015-03-13 15:07 | shuehner | Modules | => Core | ||||||||||||||||||
2015-03-13 15:07 | shuehner | Triggers an Emergency Pack | => No | ||||||||||||||||||
2015-03-13 15:08 | shuehner | File Added: 29274.diff | |||||||||||||||||||
2015-03-13 15:08 | shuehner | Note Added: 0075568 | |||||||||||||||||||
2015-03-13 15:15 | shuehner | Relationship added | related to 0028625 | ||||||||||||||||||
2015-03-30 12:26 | aferraz | Assigned To | Sandrahuguet => aferraz | ||||||||||||||||||
2015-04-14 12:48 | Triage Finance | Assigned To | aferraz => Triage Finance | ||||||||||||||||||
2015-07-13 18:06 | aferraz | Assigned To | Triage Finance => aferraz | ||||||||||||||||||
2015-07-13 18:07 | aferraz | Relationship deleted | related to 0028625 | ||||||||||||||||||
2015-07-13 18:07 | aferraz | Relationship added | depends on 0028625 | ||||||||||||||||||
2015-08-12 11:10 | aferraz | Relationship added | related to 0030557 | ||||||||||||||||||
2015-09-04 09:28 | hgbot | Checkin | |||||||||||||||||||
2015-09-04 09:28 | hgbot | Note Added: 0080073 | |||||||||||||||||||
2015-09-04 09:28 | hgbot | Status | new => resolved | ||||||||||||||||||
2015-09-04 09:28 | hgbot | Resolution | open => fixed | ||||||||||||||||||
2015-09-04 09:28 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/1fc3c80992d592df81340979f43711e7b04aec69 [^] | ||||||||||||||||||
2015-09-04 15:46 | hudsonbot | Checkin | |||||||||||||||||||
2015-09-04 15:46 | hudsonbot | Note Added: 0080131 | |||||||||||||||||||
2015-09-07 11:55 | dmiguelez | Review Assigned To | => dmiguelez | ||||||||||||||||||
2015-09-07 11:55 | dmiguelez | Note Added: 0080181 | |||||||||||||||||||
2015-09-07 11:55 | dmiguelez | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|