Tests are flaky on clean checkout

14 views
Skip to first unread message

Christian Gruber

unread,
Oct 4, 2019, 1:29:55 PM10/4/19
to bitcoinj
Hey,

Totally new to bitcoinj, and so I'm sorry if I'm missing some obvious configuration (Followed the docs, which I understand are a bit out of date).  Anyway, I checked out a clean clone of master, and ran `gradle clean build` per the instructions.  The first time I ran them, I got warnings that the db used by the test was locked.  A second run (without clean) doesn't cause this behavior, but I get verification errors: " org.bitcoinj.core.VerificationException: Block too far in future: 2009-01-03T18:15:05Z (1231006505) vs allowed 1970-01-01T09:00:08Z (32408)"

Given that this is a shipping project, I'm assuming that this is an artifact of my setup, and htat I'm missing something - any ideas?  Are these tests known to be flaky? Am I running tests in parallel that need isolation (for the db lock ones)? 

What's weirder, is that when I run wiht JDK11 I end up with NoClassDefFound errors on the leveldb JNI adapter. 

I can, ultimately debug these issues one by one, but I'm wondering if there are obvious things project veterans are just used to, that I might not know about, which resolve these.  Configuration steps, etc. 

Os: Mac OS X
Java: OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.4+11) and Java(TM) SE Runtime Environment (build 1.8.0_202-b08)

Andreas Schildbach

unread,
Oct 7, 2019, 4:35:07 AM10/7/19
to bitc...@googlegroups.com
Do tests actually fail? If all you see is errors on the console that's
normal because the unit tests try to test all error cases too.

Obviously tests shouldn't fail. We managed to fix almost all flakes,
only once every approx 100 builds I've got a hanging test. That's on
Ubuntu 18.04, OpenJDK 8.

Feel free to report an issue if you see a flake and can provide details.
> --
> You received this message because you are subscribed to the Google
> Groups "bitcoinj" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to bitcoinj+u...@googlegroups.com
> <mailto:bitcoinj+u...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/bitcoinj/3f6692cb-aad2-48e4-b7dd-d4d98ccda439%40googlegroups.com
> <https://groups.google.com/d/msgid/bitcoinj/3f6692cb-aad2-48e4-b7dd-d4d98ccda439%40googlegroups.com?utm_medium=email&utm_source=footer>.


Reply all
Reply to author
Forward
0 new messages