Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qa: Use bitcoind as parent in Travis tests #418

Conversation

stevenroose
Copy link
Member

No description provided.

.travis.yml Outdated
@@ -30,6 +30,7 @@ env:
# Win64
- HOST=x86_64-w64-mingw32 DPKG_ADD_ARCH="i386" DEP_OPTS="NO_QT=1" PACKAGES="python3 nsis g++-mingw-w64-x86-64 wine1.6 bc" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-reduce-exports"
# bitcoind
- HOST=i686-pc-linux-gnu PACKAGES="g++-multilib bc python3-zmq" DEP_OPTS="NO_QT=1 NO_UPNP=1 DEBUG=1" RUN_TESTS=true RUN_FEDPEG_BITCOIND=true GOAL="install" BITCOIN_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports CPPFLAGS=-DDEBUG_LOCKORDER"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're running into the exact some OOB issue here with the build below...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah so I have no idea what build to add the RUN_FEDPEG_BITCOIND to add to then :D

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one that's currently running? :P

chasing this down

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you want to add a new test that won't fail, take away DEBUG=1. This is what enforces the stricter debugging mode that is getting tripped up.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or we merge #419 first then rebase

@instagibbs
Copy link
Collaborator

Unexpected exception caught during testing: FileNotFoundError(2, "No such file or directory: '--cachedir=/home/travis/build/ElementsProject/elements/build/elements-i686-pc-linux-gnu/qa/cache'")

Looks like it can't find the file.

@instagibbs
Copy link
Collaborator

Needs rebase now that we've fixed DEBUG=1 builds.

@stevenroose stevenroose force-pushed the fedpeg-bitcoind-travis branch 7 times, most recently from 40923f2 to 9fbebf1 Compare September 27, 2018 19:04
@stevenroose stevenroose changed the title WIP: qa: Use bitcoind as parent in Travis tests qa: Use bitcoind as parent in Travis tests Sep 27, 2018
@stevenroose
Copy link
Member Author

Works now :) @jtimon

@instagibbs
Copy link
Collaborator

itshappening.gif

.travis.yml Outdated
@@ -70,6 +70,11 @@ script:
- export LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/depends/$HOST/lib
- if [ "$RUN_TESTS" = "true" ]; then make $MAKEJOBS check VERBOSE=1; fi
- if [ "$RUN_TESTS" = "true" ]; then qa/pull-tester/rpc-tests.py --coverage; fi
- if [ "$RUN_FEDPEG_BITCOIND" = "true" ]; then BITCOIND_VERSION=0.16.3; fi
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any particular reason this can't be one big block inside one conditional?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just readability I guess. You prefer it alltogether? I know it's a bit stupid to take 5 lines for one extra thing, but those files are already so unreadable, didn't want to contribute more to that.

I could add all the install stuff in one line and then the actual test in a second. Will be one long line though :D

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't set the variables in the same line as doing 3 commands they don't ripple through. So now have var line, install line and test line.

@jtimon
Copy link
Contributor

jtimon commented Oct 2, 2018 via email

@stevenroose
Copy link
Member Author

@jtimon Whoops, that is very much true. Fixed that.

@instagibbs
Copy link
Collaborator

bitcoind test is taking too long for some reason:

Waiting to ensure block is being rejected by sidechain2
JSONRPC error: 'getblockcount' RPC took longer than 30.000000 seconds. Consider using larger timeout for calls that take longer to return.

@instagibbs
Copy link
Collaborator

restarting job to see if this repeats.

@stevenroose
Copy link
Member Author

I've seen that error on my machine too. Second attempt usually works.

@instagibbs
Copy link
Collaborator

ACK, moar testing

@instagibbs instagibbs merged commit 7e02f39 into ElementsProject:elements-0.14.1 Oct 3, 2018
instagibbs added a commit that referenced this pull request Oct 3, 2018
7e02f39 qa: Use bitcoind as parent in Travis tests (Steven Roose)
@stevenroose stevenroose deleted the fedpeg-bitcoind-travis branch March 25, 2019 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants