[zeromq-dev] travis testing -- udp broadcasts and valgrind

Luca Boccassi luca.boccassi at gmail.com
Thu Sep 14 12:46:46 CEST 2017

On Wed, 2017-09-13 at 19:13 -0400, Wes Young wrote:
> those of you that have messed with travis and the zmq build infra-
> i seem to be hitting the wall in testing udp-beacon stuff (zyre +
> curve) with the valgrind test. the default tests pass- but as soon as
> you load up the valgrind vm it comes to a screeching halt.
> i finally threw an `ifconfig` into the ci_build.sh to figure out why
> i can send beacons, but they’re never recv’d (again, this all works
> on the default build via travis, locally, etc). and it appears that
> the valgrind build (which really is just adding sudo? maybe some more
> docker bits?) sets the eth0 broadcast to instead of
> https://travis-ci.org/wesyoung/zyre/jobs/275250344#L624
> https://travis-ci.org/wesyoung/zyre/jobs/275250349#L640
> has anyone else run into this with their travis+(c)zmq adventures? i
> need to do some more digging, but in the correct build there’s no
> docker adapter, but in the valgrind build there is-
> based on the hostname strings, it almost looks like i’m either in a
> docker instance where i can do broadcasts (non-sudo) and when i’m
> using sudo- i’m outside the instance where broadcast is more locked
> down(?)
> obvs i need to dig more into travis doc, curious if anyone has run
> into this- and if not, posting for posterity.
> --
> wes
> wesyoung.me


IIRC with sudo-enabled jobs it's a GCE VM, with sudo-disabled jobs it's
a container

There's no reason for that sudo: required anymore, so feel free to take
it away (I've already removed it from czmq, probably forgot to do the
same elsewhere), it should fix your problem

Unfortunately doing networking on Travis is a bit of a pain... had some
fun setting up an IPv6 enabled job a while back in libzmq

Kind regards,
Luca Boccassi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20170914/ead96ff5/attachment.sig>

More information about the zeromq-dev mailing list