Skip to content

Conversation

jonasschnelli
Copy link
Contributor

Travis can't run the zmq tests because its missing the python zmq module.
https://travis-ci.org/bitcoin/bitcoin/jobs/80832394#L3588

This would install the python zmq module and re-enable the rpc tests.
Disabling zmq tests on travis would be another solution, but IMO we should maximize the CI test coverage.

Not sure if this is a good solution (@theuni?).

Let's discuss this before merging.

@sipa
Copy link
Member

sipa commented Sep 17, 2015 via email

@jgarzik
Copy link
Contributor

jgarzik commented Sep 17, 2015

ACK - is both necessary and correct

@jonasschnelli jonasschnelli force-pushed the 2015/09/travis_zmq branch 2 times, most recently from 66ff985 to e5ec7f3 Compare September 17, 2015 18:09
@jonasschnelli jonasschnelli changed the title [travis] add zmq python module [travis] add zmq python module and re-enable zmq rpc tests on travis Sep 17, 2015
@jonasschnelli jonasschnelli changed the title [travis] add zmq python module and re-enable zmq rpc tests on travis [travis] add zmq python module, re-enable zmq rpc tests Sep 17, 2015
@jonasschnelli jonasschnelli force-pushed the 2015/09/travis_zmq branch 9 times, most recently from 5d21398 to b24e306 Compare September 18, 2015 07:26
@jonasschnelli jonasschnelli changed the title [travis] add zmq python module, re-enable zmq rpc tests [travis] [please don't merge yet / under work] add zmq python module, re-enable zmq rpc tests Sep 18, 2015
@jonasschnelli jonasschnelli force-pushed the 2015/09/travis_zmq branch 3 times, most recently from c302e26 to aebecb2 Compare September 18, 2015 12:33
@btcdrak
Copy link
Contributor

btcdrak commented Sep 18, 2015

Looks like Travis timed out on a couple of jobs.

@dcousens
Copy link
Contributor

ACK

@jonasschnelli
Copy link
Contributor Author

Somehow even if travis successfully installs libzmq3 and python-zmq, the rpc test can't connect over zmq with bitcoind.
Still try to figure out why...

@theuni
Copy link
Member

theuni commented Sep 22, 2015

Does this work locally? It's not clear to me what needs to be native and what needs to be per-arch.

@jonasschnelli
Copy link
Contributor Author

@theuni
The zmq_test.py (RPC test) works prefect locally. Tested on OSX/Debian and Ubuntu.
The zmq_test.py changes within this PR are for debugging purposes.
I can only encounter the problem in Travis builds.
It looks like that zmq tcp:// connection does not work in travis. Even after installing python-zmq. Also my solution (sudo rm -f /etc/apt/sources.list.d/travis_ci_zeromq3-source.list;) looks after a workaround hack.
Maybe you have a different approach to get the zmq_test.py running on travis.

@jonasschnelli
Copy link
Contributor Author

@theuni: Any idea how we could fix this? Having CI tests for the ZMQ would be important IMO otherwise the risks are high that things break without noticing.

@theuni
Copy link
Member

theuni commented Sep 29, 2015

@jonasschnelli I need to spend a bit of time learning about the intricacies of zmq/python here. But I'll try to track down the issue.

@theuni
Copy link
Member

theuni commented Sep 29, 2015

@jonasschnelli This fixes: theuni@05a7243 . Problem was the old libzmq that the pyzmq was using. Installing the newer pyzmq from a ppa pulls in newer versions of both.

@jonasschnelli jonasschnelli changed the title [travis] [please don't merge yet / under work] add zmq python module, re-enable zmq rpc tests [travis] add zmq python module, re-enable zmq rpc tests Oct 1, 2015
@jonasschnelli
Copy link
Contributor Author

Added @theuni commit.
Travis is happy now.
This would add CI coverage of the ZMQ feature.

@laanwj
Copy link
Member

laanwj commented Oct 1, 2015

ACK when travis is green

@laanwj laanwj merged commit 745f909 into bitcoin:master Oct 1, 2015
laanwj added a commit that referenced this pull request Oct 1, 2015
745f909 travis: install a recent libzmq and pyzmq for tests (Cory Fields)
a9c27cd [travis] add zmq python module (Jonas Schnelli)
110a1fd enable zmq-test in rpc-tests.sh (Jonas Schnelli)
luke-jr pushed a commit to luke-jr/bitcoin that referenced this pull request Aug 24, 2016
luke-jr pushed a commit to luke-jr/bitcoin that referenced this pull request Aug 24, 2016
zkbot added a commit to zcash/zcash that referenced this pull request Feb 9, 2017
zkbot added a commit to zcash/zcash that referenced this pull request Feb 9, 2017
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants