Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0035117 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | minor | random | 2017-02-01 08:15 | 2017-09-21 16:49 | |||
Reporter | alostale | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | high | Resolution | fixed | Fixed in Version | 3.0PR17Q4 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 88f469f4c231 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | caristu | |||||||
OBNetwork customer | No | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0035117: unstable DataSourceWhereParameter tests | |||||||
Description | Tests in DataSourceWhereParameter are sometimes unstable. They randomly fail with an unclear error message. Ie.: org.openbravo.test.datasource.DataSourceWhereParameter.datasourceWithNoManualWhereParameter[ActionRegardingSelector datasource] Record not present Expected: is <false> but: was <true> junit.framework.AssertionFailedError: Record not present Expected: is <false> but: was <true> at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20) at org.openbravo.test.datasource.DataSourceWhereParameter.datasourceWithNoManualWhereParameter(DataSourceWhereParameter.java:212) | |||||||
Steps To Reproduce | So far unknown conditions to make it fail. Example of failed case: https://ci.openbravo.com/job/ret-checks-oracle/4380/testReport/junit/org.openbravo.test.datasource/DataSourceWhereParameter/datasourceWithNoManualWhereParameter_ActionRegardingSelector_datasource_/ [^] | |||||||
Proposed Solution | - Improve error message to make easier to understand what is expected and why it failed - Make it stable | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0096373) hgbot (developer) 2017-05-04 10:02 |
Repository: erp/devel/pi Changeset: 8baa2bae6ff2ca6433a7c850317cffe4f15fa44e Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Thu May 04 10:01:48 2017 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/8baa2bae6ff2ca6433a7c850317cffe4f15fa44e [^] related to issue 35117: improved some error messages so it makes it easier to anlyze logs when tests fail --- M src-test/src/org/openbravo/test/datasource/DataSourceSecurity.java M src-test/src/org/openbravo/test/datasource/TestComboDatasource.java --- |
(0096936) hudsonbot (viewer) 2017-05-29 17:43 |
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/1ee70113bdc4 [^] Maturity status: Test |
(0098277) alostale (viewer) 2017-07-31 15:30 |
Most probably it was failing because of how it checked if record was not present in custom query selector response: the record to assert it was not returned has id "369". The check was performed by simply checking if substring was not present. It is possible 369 substring to be present not as record ID but as part of record timestamp (which is randomly genereated based on creation timestamp). |
(0098278) hgbot (developer) 2017-07-31 15:31 |
Repository: erp/devel/pi Changeset: 88f469f4c2313c940e2f9dd4994fa32546319319 Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Fri Jul 28 12:10:42 2017 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/88f469f4c2313c940e2f9dd4994fa32546319319 [^] fixed 35117: unstable DataSourceWhereParameter tests * Added more log information in case it fails * Be more precise when checking for row id (asserting on "id" property instead of on the full response --- M src-test/src/org/openbravo/test/datasource/DataSourceWhereParameter.java --- |
(0098279) hgbot (developer) 2017-07-31 15:31 |
Repository: erp/devel/pi Changeset: ab7a251734086f0c86fc20748a119f8c3276e024 Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Mon Jul 31 08:52:55 2017 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/ab7a251734086f0c86fc20748a119f8c3276e024 [^] related to bug 35117: fixed assertions with implicit filters --- M src-test/src/org/openbravo/test/datasource/DataSourceWhereParameter.java --- |
(0098389) caristu (viewer) 2017-08-04 10:40 |
Code reviewed + tested OK |
(0099288) hudsonbot (viewer) 2017-09-21 16:49 |
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/9750b78d3e5c [^] Maturity status: Test |
![]() |
|||
Date Modified | Username | Field | Change |
2017-02-01 08:15 | alostale | New Issue | |
2017-02-01 08:15 | alostale | Assigned To | => platform |
2017-02-01 08:15 | alostale | OBNetwork customer | => No |
2017-02-01 08:15 | alostale | Modules | => Core |
2017-02-01 08:15 | alostale | Triggers an Emergency Pack | => No |
2017-02-06 11:41 | shuehner | Relationship added | related to 0035166 |
2017-02-10 09:13 | alostale | Status | new => acknowledged |
2017-05-04 10:02 | hgbot | Checkin | |
2017-05-04 10:02 | hgbot | Note Added: 0096373 | |
2017-05-29 17:43 | hudsonbot | Checkin | |
2017-05-29 17:43 | hudsonbot | Note Added: 0096936 | |
2017-07-31 15:30 | alostale | Note Added: 0098277 | |
2017-07-31 15:31 | hgbot | Checkin | |
2017-07-31 15:31 | hgbot | Note Added: 0098278 | |
2017-07-31 15:31 | hgbot | Status | acknowledged => resolved |
2017-07-31 15:31 | hgbot | Resolution | open => fixed |
2017-07-31 15:31 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/88f469f4c2313c940e2f9dd4994fa32546319319 [^] |
2017-07-31 15:31 | hgbot | Checkin | |
2017-07-31 15:31 | hgbot | Note Added: 0098279 | |
2017-08-01 15:51 | shuehner | Assigned To | platform => alostale |
2017-08-04 09:33 | alostale | Review Assigned To | => caristu |
2017-08-04 10:40 | caristu | Note Added: 0098389 | |
2017-08-04 10:40 | caristu | Status | resolved => closed |
2017-08-04 10:40 | caristu | Fixed in Version | => 3.0PR17Q4 |
2017-09-21 16:49 | hudsonbot | Checkin | |
2017-09-21 16:49 | hudsonbot | Note Added: 0099288 |
Copyright © 2000 - 2009 MantisBT Group |