projectbarbel / barbelhisto-core

Lightweight ultra-fast library to store data in bi-temporal format
MIT License
42 stars 0 forks source link

Failing Test Cases #5

Closed NBau closed 5 years ago

NBau commented 5 years ago

Hello, First of all, thank you for providing this library. I was trying to implement a patch to support LocalDateTime instead of LocalDate (I have the same problem as mentioned in #4), but I noticed that after my changes some tests were producing errors and some tests were failing. When running mvn clean install on the unmodified master branch, I noticed a similar behaviour. In particular, the following output is created:

[ERROR] Failures:
[ERROR]   BarbelHistoCore_MultiUpdate_andQuery_SuiteTest>BarbelHistoCore_MultiUpdate_andQuery.addLoadingOther:205 expected: <1> but was: <2>
[ERROR]   BarbelHistoCore_MultiUpdate_andQuery_SuiteTest>BarbelHistoCore_MultiUpdate_andQuery.addLoadingTwoIDs:199 expected: <25> but was: <6>
[ERROR]   BarbelHistoCore_MultiUpdate_andQuery_SuiteTest.addSomeMoreData:24 expected: <25> but was: <7>
[ERROR]   BarbelHistoCore_MultiUpdate_andQuery_SuiteTest>BarbelHistoCore_MultiUpdate_andQuery.allOtherQueries_preFetch_All:193 expected: <24> but was: <6>
[ERROR]   BarbelHistoCore_MultiUpdate_andQuery_SuiteTest>BarbelHistoCore_MultiUpdate_andQuery.allOtherQueries_preFetch_AllId:150 expected: <24> but was: <4>
[ERROR]   BarbelHistoCore_MultiUpdate_andQuery_SuiteTest>BarbelHistoCore_MultiUpdate_andQuery.allOtherQueries_preFetch_allActive:156 expected: <4> but was: <3>
[ERROR]   BarbelHistoCore_MultiUpdate_andQuery_SuiteTest>BarbelHistoCore_MultiUpdate_andQuery.allOtherQueries_preFetch_allInactive:162 expected: <20> but was: <1>
[ERROR]   BarbelHistoCore_MultiUpdate_andQuery_SuiteTest>BarbelHistoCore_MultiUpdate_andQuery.allOtherQueries_preFetch_effectiveAfter:168 expected: <2> but was: <1>
[ERROR]   BarbelHistoCore_MultiUpdate_andQuery_SuiteTest>BarbelHistoCore_MultiUpdate_andQuery.allOtherQueries_preFetch_effectiveBetween:174 expected: <4> but was: <3>
[ERROR]   BarbelHistoCore_MultiUpdate_andQuery_SuiteTest>BarbelHistoCore_MultiUpdate_andQuery.allOtherQueries_preFetch_journalAt:187 expected: <4> but was: <3>
[ERROR]   BarbelHistoCore_MultiUpdate_andQuery_SuiteTest>BarbelHistoCore_MultiUpdate_andQuery.embeddedOverlap_Extrapolate:43 expected: <4> but was: <6>
[ERROR]   BarbelHistoCore_JournalUpdate_SuiteTest.testCoreSave_Pojo:234 expected: <1> but was: <2>
[ERROR]   BarbelHistoCore_JournalUpdate_SuiteTest.testCoreSave_Pojo:235 expected: <PREOVERLAPPING_OVERLAY> but was: <EMBEDDEDOVERLAY>
[ERROR]   BarbelHistoCore_JournalUpdate_SuiteTest.testCoreSave_Pojo:235 expected: <STRAIGHTINSERT> but was: <EMBEDDEDOVERLAY>
[ERROR]   BarbelHistoCore_MultiUpdate_SuiteTest.update_10:159 expected: <17> but was: <277>
[ERROR]   BarbelHistoCore_MultiUpdate_SuiteTest.update_11:172 expected: <19> but was: <279>
[ERROR]   BarbelHistoCore_MultiUpdate_SuiteTest.update_12:185 expected: <20> but was: <280>
[ERROR]   BarbelHistoCore_MultiUpdate_SuiteTest.update_13:198 expected: <23> but was: <283>
[ERROR]   BarbelHistoCore_MultiUpdate_SuiteTest.update_14:211 expected: <24> but was: <284>
[ERROR]   BarbelHistoCore_MultiUpdate_SuiteTest.update_2:52 expected: <4> but was: <264>
[ERROR]   BarbelHistoCore_MultiUpdate_SuiteTest.update_3:66 expected: <5> but was: <265>
[ERROR]   BarbelHistoCore_MultiUpdate_SuiteTest.update_4:80 expected: <6> but was: <266>
[ERROR]   BarbelHistoCore_MultiUpdate_SuiteTest.update_5:94 expected: <7> but was: <267>
[ERROR]   BarbelHistoCore_MultiUpdate_SuiteTest.update_6:107 expected: <9> but was: <269>
[ERROR]   BarbelHistoCore_MultiUpdate_SuiteTest.update_7:120 expected: <10> but was: <270>
[ERROR]   BarbelHistoCore_MultiUpdate_SuiteTest.update_8:133 expected: <13> but was: <273>
[ERROR]   BarbelHistoCore_MultiUpdate_SuiteTest.update_9:146 expected: <15> but was: <275>
[ERROR]   BarbelHistoCore_PojoVariants_SuiteTest.testSave:67 expected: <1> but was: <294>
[ERROR]   BarbelHistoCore_PojoVariants_SuiteTest.testSave:67 expected: <1> but was: <295>
[ERROR]   BarbelHistoCore_PojoVariants_SuiteTest.testSave:67 expected: <1> but was: <296>
[ERROR]   BarbelHistoCore_PojoVariants_SuiteTest.testSave:67 expected: <1> but was: <297>
[ERROR]   BarbelHistoCore_PojoVariants_SuiteTest.testSave:67 expected: <1> but was: <298>
[ERROR]   BarbelHistoCore_PojoVariants_SuiteTest.testSave:67 expected: <1> but was: <285>
[ERROR]   BarbelHistoCore_PojoVariants_SuiteTest.testSave:67 expected: <1> but was: <286>
[ERROR]   BarbelHistoCore_PojoVariants_SuiteTest.testSave:67 expected: <1> but was: <287>
[ERROR]   BarbelHistoCore_PojoVariants_SuiteTest.testSave:67 expected: <1> but was: <288>
[ERROR]   BarbelHistoCore_PojoVariants_SuiteTest.testSave:67 expected: <1> but was: <289>
[ERROR]   BarbelHistoCore_PojoVariants_SuiteTest.testSave:67 expected: <1> but was: <290>
[ERROR]   BarbelHistoCore_PojoVariants_SuiteTest.testSave:67 expected: <1> but was: <291>
[ERROR]   BarbelHistoCore_PojoVariants_SuiteTest.testSave:67 expected: <1> but was: <292>
[ERROR]   BarbelHistoCore_PojoVariants_SuiteTest.testSave:67 expected: <1> but was: <293>
[ERROR] Errors:
[ERROR]   BarbelHistoCore_CQPersistence_Test.setUp:79 ▒ FileSystem test.dat: Der Prozess...
[ERROR]   BarbelHistoCore_CQPersistence_Test.tearDown:72 ▒ FileSystem test.dat: Der Proz...
[ERROR]   BarbelHistoCore_CQPersistence_Test.setUp:79 ▒ FileSystem test.dat: Der Prozess...
[ERROR]   BarbelHistoCore_CQPersistence_Test.setUp:79 ▒ FileSystem test.dat: Der Prozess...
[ERROR]   BarbelHistoCore_CQPersistence_Test.tearDown:72 ▒ FileSystem test.dat: Der Proz...
[ERROR]   BarbelHistoCore_CQPersistence_Test.setUp:79 ▒ FileSystem test.dat: Der Prozess...
[ERROR]   CQEnginePersistenceTest.tearDown:31 ▒ FileSystem def.dat: Der Prozess kann nic...
[ERROR]   CQEnginePersistenceTest.tearDown:31 ▒ FileSystem def.dat: Der Prozess kann nic...
[ERROR]   CQEnginePersistenceTest.tearDown:31 ▒ FileSystem def.dat: Der Prozess kann nic...
[ERROR]   CQEnginePersistenceTest.tearDown:31 ▒ FileSystem def.dat: Der Prozess kann nic...
[ERROR]   CQEnginePersistenceTest.tearDown:31 ▒ FileSystem def.dat: Der Prozess kann nic...
[ERROR]   BarbelHistoCore_MultiUpdate_andQueryBitemporal_SuiteTest>BarbelHistoCore_MultiUpdate_andQueryBitemporal.addLoadingOther:206 ▒ IllegalState
[ERROR]   BarbelHistoCore_MultiUpdate_andQueryBitemporal_SuiteTest>BarbelHistoCore_MultiUpdate_andQueryBitemporal.addLoadingTwoIDs:200 ▒ IllegalState
[ERROR]   BarbelHistoCore_MultiUpdate_andQueryBitemporal_SuiteTest.addSomeMoreData:26 ▒ IllegalState
[ERROR]   BarbelHistoCore_MultiUpdate_andQueryBitemporal_SuiteTest>BarbelHistoCore_MultiUpdate_andQueryBitemporal.allOtherQueries_preFetch_All:194 ▒ IllegalState
[ERROR]   BarbelHistoCore_MultiUpdate_andQueryBitemporal_SuiteTest>BarbelHistoCore_MultiUpdate_andQueryBitemporal.allOtherQueries_preFetch_AllId:151 ▒ IllegalState
[ERROR]   BarbelHistoCore_MultiUpdate_andQueryBitemporal_SuiteTest>BarbelHistoCore_MultiUpdate_andQueryBitemporal.allOtherQueries_preFetch_allActive:157 ▒ IllegalState
[ERROR]   BarbelHistoCore_MultiUpdate_andQueryBitemporal_SuiteTest>BarbelHistoCore_MultiUpdate_andQueryBitemporal.allOtherQueries_preFetch_allInactive:163 ▒ IllegalState
[ERROR]   BarbelHistoCore_MultiUpdate_andQueryBitemporal_SuiteTest>BarbelHistoCore_MultiUpdate_andQueryBitemporal.allOtherQueries_preFetch_effectiveAfter:169 ▒ IllegalState
[ERROR]   BarbelHistoCore_MultiUpdate_andQueryBitemporal_SuiteTest>BarbelHistoCore_MultiUpdate_andQueryBitemporal.allOtherQueries_preFetch_effectiveBetween:175 ▒ IllegalState
[ERROR]   BarbelHistoCore_MultiUpdate_andQueryBitemporal_SuiteTest>BarbelHistoCore_MultiUpdate_andQueryBitemporal.allOtherQueries_preFetch_effectiveNow:181 ▒ IllegalState
[ERROR]   BarbelHistoCore_MultiUpdate_andQueryBitemporal_SuiteTest>BarbelHistoCore_MultiUpdate_andQueryBitemporal.allOtherQueries_preFetch_journalAt:188 ▒ IllegalState
[ERROR]   BarbelHistoCore_MultiUpdate_andQueryBitemporal_SuiteTest>BarbelHistoCore_MultiUpdate_andQueryBitemporal.embeddedOverlap_Extrapolate:35 ▒ IllegalState
[ERROR]   BarbelHistoCore_Contracts_SuiteTest.tearDown:43 ▒ FileSystem test.dat: Der Pro...
[ERROR]   BarbelHistoCore_Contracts_SuiteTest.tearDown:43 ▒ FileSystem test.dat: Der Pro...
[ERROR]   BarbelHistoCore_Contracts_SuiteTest.tearDown:43 ▒ FileSystem test.dat: Der Pro...
[ERROR]   BarbelHistoCore_Contracts_SuiteTest.tearDown:43 ▒ FileSystem test.dat: Der Pro...
[ERROR]   BarbelHistoCore_Contracts_SuiteTest.tearDown:43 ▒ FileSystem test.dat: Der Pro...
[ERROR]   BarbelHistoCore_Contracts_SuiteTest.tearDown:43 ▒ FileSystem test.dat: Der Pro...
[ERROR]   BarbelHistoCore_Contracts_SuiteTest.tearDown:43 ▒ FileSystem test.dat: Der Pro...
[ERROR]   BarbelHistoCore_Contracts_SuiteTest.tearDown:43 ▒ FileSystem test.dat: Der Pro...
[ERROR]   BarbelHistoCore_Contracts_SuiteTest.tearDown:43 ▒ FileSystem test.dat: Der Pro...
[ERROR]   BarbelHistoCore_Contracts_SuiteTest.tearDown:43 ▒ FileSystem test.dat: Der Pro...
[ERROR]   BarbelHistoCore_JournalUpdate_SuiteTest.testCoreSave_Bitemporal:252 ▒ IllegalState
[ERROR]   BarbelHistoCore_JournalUpdate_SuiteTest.testCoreSave_Bitemporal:252 ▒ IllegalState
[ERROR]   BarbelHistoCore_JournalUpdate_SuiteTest.testCoreSave_Bitemporal:252 ▒ IllegalState
[ERROR]   BarbelHistoCore_JournalUpdate_SuiteTest.testCoreSave_Bitemporal:252 ▒ IllegalState
[ERROR]   BarbelHistoCore_JournalUpdate_SuiteTest.testCoreSave_Bitemporal:252 ▒ IllegalState
[ERROR]   BarbelHistoCore_JournalUpdate_SuiteTest.testCoreSave_Bitemporal:252 ▒ IllegalState
[ERROR]   BarbelHistoCore_JournalUpdate_SuiteTest.testCoreSave_Bitemporal:252 ▒ IllegalState
[ERROR]   BarbelHistoCore_JournalUpdate_SuiteTest.testCoreSave_Bitemporal:252 ▒ IllegalState
[ERROR]   BarbelHistoCore_JournalUpdate_SuiteTest.testCoreSave_Bitemporal:252 ▒ IllegalState
[ERROR]   BarbelHistoCore_JournalUpdate_SuiteTest.testCoreSave_Bitemporal:252 ▒ IllegalState
[ERROR]   BarbelHistoCore_JournalUpdate_SuiteTest.testCoreSave_Bitemporal:252 ▒ IllegalState
[ERROR]   BarbelHistoCore_JournalUpdate_SuiteTest.testCoreSave_Bitemporal:252 ▒ IllegalState
[ERROR]   BarbelHistoCore_JournalUpdate_SuiteTest.testCoreSave_Bitemporal:252 ▒ IllegalState
[ERROR]   BarbelHistoCore_JournalUpdate_SuiteTest.testCoreSave_Bitemporal:252 ▒ IllegalState
[ERROR]   BarbelHistoCore_LoadUnload_SuiteTest.testCompleteCycle_Bitemporal:121 ▒ IllegalState
[ERROR]   BarbelHistoCore_LoadUnload_SuiteTest.testCompleteCycle_Pojo:48 ▒ IllegalState ...
[ERROR]   BarbelHistoCore_LoadUnload_SuiteTest.testPartialUnloadAndCount_Pojo:81 ▒ IllegalState
[ERROR]   BarbelHistoCore_LoadUnload_SuiteTest.testPartialUnload_Pojo:65 ▒ IllegalState ...
[ERROR]   BarbelHistoCore_MultiUpdate_Bitemporal_SuiteTest.update_1:39 ▒ IllegalState Un...
[ERROR]   BarbelHistoCore_MultiUpdate_Bitemporal_SuiteTest.update_10:159 ▒ IllegalState ...
[ERROR]   BarbelHistoCore_MultiUpdate_Bitemporal_SuiteTest.update_11:172 ▒ IllegalState ...
[ERROR]   BarbelHistoCore_MultiUpdate_Bitemporal_SuiteTest.update_12:185 ▒ IllegalState ...
[ERROR]   BarbelHistoCore_MultiUpdate_Bitemporal_SuiteTest.update_13:198 ▒ IllegalState ...
[ERROR]   BarbelHistoCore_MultiUpdate_Bitemporal_SuiteTest.update_14:211 ▒ IllegalState ...
[ERROR]   BarbelHistoCore_MultiUpdate_Bitemporal_SuiteTest.update_2:52 ▒ IllegalState Un...
[ERROR]   BarbelHistoCore_MultiUpdate_Bitemporal_SuiteTest.update_3:66 ▒ IllegalState Un...
[ERROR]   BarbelHistoCore_MultiUpdate_Bitemporal_SuiteTest.update_4:80 ▒ IllegalState Un...
[ERROR]   BarbelHistoCore_MultiUpdate_Bitemporal_SuiteTest.update_5:94 ▒ IllegalState Un...
[ERROR]   BarbelHistoCore_MultiUpdate_Bitemporal_SuiteTest.update_6:107 ▒ IllegalState U...
[ERROR]   BarbelHistoCore_MultiUpdate_Bitemporal_SuiteTest.update_7:120 ▒ IllegalState U...
[ERROR]   BarbelHistoCore_MultiUpdate_Bitemporal_SuiteTest.update_8:133 ▒ IllegalState U...
[ERROR]   BarbelHistoCore_MultiUpdate_Bitemporal_SuiteTest.update_9:146 ▒ IllegalState U...
[ERROR]   BarbelHistoCore_ShadowCollectionPersistence_SuiteTest.lazyLoadExternalTest:67 ▒ IllegalState
[ERROR]   BarbelHistoCore_ShadowCollectionPersistence_SuiteTest.shadowExternalTest:48 ▒ IllegalState
[INFO]
[ERROR] Tests run: 353, Failures: 41, Errors: 67, Skipped: 3

Am I doing something wrong?

nschlimm commented 5 years ago

Can you make the code available to me?

NBau commented 5 years ago

Yes, sure, but first I would like to get the tests to pass and do some more quality checks. This is the reason for this issue; some tests were failing or causing errors even before my modifications, which makes it quite difficult for me to make sure I did not break anything.

nschlimm commented 5 years ago

Since the build is passing the tests must pass prior to code changes ... Is BarbelHistoCore_MultiUpdate_andQuery_SuiteTest the only test suite that causes errors?

NBau commented 5 years ago

I tried again, just downloaded the master branch and ran the tests, same fails and errors as above . The travis build seems to be configured to skip tests (-DskipTests=true), so having a passing build might not be a good indication of successfull tests. Does it work locally for you?

nschlimm commented 5 years ago
tests

Making barbelhisto LocalDateTime aware isn't a small todo ...

Please get the tests running first.

nschlimm commented 5 years ago

It's difficult for me to setup your environment remotely ... wish I could help you more here. Appreciate your engagament though.

NBau commented 5 years ago

It seems to be a windows problem, I managed to run the tests on a linux machine just fine. Thank you for your help. If you think it is helpful for others, you could add a disclaimer somewhere explaining that the tests might fail in windows. It seems to be related to file access (some files not yet closed when trying to delete them or something similar).

nschlimm commented 5 years ago

Thanks for the update. Will you make a pull request when you finish your work?

nschlimm commented 5 years ago

BTW: Tests have always been part of the travis build; it's just not so obvious in the build log. Open the "paragraphs" in the build log to find all the unit test results.