qa: Test ZMQ notification after chain reorg#16404
Conversation
910474b to
e11aa5a
Compare
test/functional/interface_zmq.py
Outdated
There was a problem hiding this comment.
Is it normal to import stuff in the middle of a file in python? Don't see it often. And you could remove the one below in test_reorg if you just moved this to top..
There was a problem hiding this comment.
This was already the case. It's like this to not break if zmq module is not available. See skip_if_no_py3_zmq() above.
There was a problem hiding this comment.
Can move the import zmq right after the line skip_if_no_bitcoind_zmq? :)
There was a problem hiding this comment.
Really? It's then available to other scopes? I'll try.
There was a problem hiding this comment.
If I remove import zmq and keep the one you said I get NameError: name 'zmq' is not defined.
|
ACK e11aa5a6f2683741567f0aaa08d3b198d219913f |
e11aa5a to
dae02dc
Compare
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsNo conflicts as of last run. |
dae02dc to
abdfc5e
Compare
|
Rebased. |
|
IMO this is ready to merge. |
|
Indeed. Thanks for the ping |
abdfc5e qa: Test ZMQ notification after chain reorg (João Barbosa) aa2622a qa: Refactor ZMQ test (João Barbosa) 6bc1ff9 doc: Add note regarding ZMQ block notification (João Barbosa) Pull request description: Top commit has no ACKs. Tree-SHA512: b93237adc8c84b3aa72ccc28097090eabcb006cf408083218bebf6fec703bd0de2ded80b6879e77096872e14ba9402a6d3f923b146a54d4c4e41dcb862c3e765
abdfc5e qa: Test ZMQ notification after chain reorg (João Barbosa) aa2622a qa: Refactor ZMQ test (João Barbosa) 6bc1ff9 doc: Add note regarding ZMQ block notification (João Barbosa) Pull request description: Top commit has no ACKs. Tree-SHA512: b93237adc8c84b3aa72ccc28097090eabcb006cf408083218bebf6fec703bd0de2ded80b6879e77096872e14ba9402a6d3f923b146a54d4c4e41dcb862c3e765
|
This test fails on travis |
|
The test should run pretty fast, on my system around 1s: But on one travis failure it takes around 60s to fail: and looking at the error: I assume the receive timeouts due to: socket.set(zmq.RCVTIMEO, 60000)I suspect it happens because by the time the message is published there is no subscriber connected - this is called a "slow joiner" in http://zguide.zeromq.org/py:all#sockets-and-patterns - and I think this happens because we are |
Summary: bitcoin/bitcoin@6bc1ff9 Partial backport of Core [[bitcoin/bitcoin#16404 | PR16404]] Test Plan: read it Reviewers: #bitcoin_abc, deadalnix Reviewed By: #bitcoin_abc, deadalnix Differential Revision: https://reviews.bitcoinabc.org/D7342
Summary: bitcoin/bitcoin@aa2622a Partial backport of Core [[bitcoin/bitcoin#16404 | PR16404]] and [[https://github.com/bitcoin/bitcoin/pull/16740| PR16740]] (PR16404 on its own is broken and will not pass the tests otherwise, sorry) notes: ~~* test looks to be wrong. socket.connect() is running before there is a node with the proper `-zmqxx=xx` CLI parameters set, so I moved it accordingly.~~ Test Plan: ninja ./test/functional/test_runner.py interface_zmq Reviewers: #bitcoin_abc, deadalnix Reviewed By: #bitcoin_abc, deadalnix Differential Revision: https://reviews.bitcoinabc.org/D7343
Summary: bitcoin/bitcoin@abdfc5e --- Depends on D7343 Concludes backport of Core [[bitcoin/bitcoin#16404 | PR16404]] and [[https://github.com/bitcoin/bitcoin/pull/16740| PR16740]] (PR16404 on its own is broken and will not pass the tests otherwise, sorry) notes: ~~* ditto as the note for D7343 re: callsite of socket.connect(address)~~ Test Plan: ./test/functional/test_runner.py interface_zmq Reviewers: #bitcoin_abc, deadalnix Reviewed By: #bitcoin_abc, deadalnix Subscribers: deadalnix Differential Revision: https://reviews.bitcoinabc.org/D7344
abdfc5e qa: Test ZMQ notification after chain reorg (João Barbosa) aa2622a qa: Refactor ZMQ test (João Barbosa) 6bc1ff9 doc: Add note regarding ZMQ block notification (João Barbosa) Pull request description: Top commit has no ACKs. Tree-SHA512: b93237adc8c84b3aa72ccc28097090eabcb006cf408083218bebf6fec703bd0de2ded80b6879e77096872e14ba9402a6d3f923b146a54d4c4e41dcb862c3e765
No description provided.