-
Notifications
You must be signed in to change notification settings - Fork 482
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
JeroMQ 0.5.1 #704
Comments
My own build and tests succeeded with Java 8 and 11: Tests are very brittle and can fails for no reason. Perhaps this commit will help: 8c3f999 |
Could you give a try to modify the tests by stopping the beacon before asserting? |
@fredoboulo I just tried that, and the same 3 tests still failed. I did notice that the tests take a long time, which makes me think that the |
Aha! I found the issue. We're creating the ZBeacon for those tests on port 255.255.255.255, which is supposed to be the "global" broadcast address, not all routers support it and its use is discouraged. I changed it to 127.0.0.1 and the tests pass. I can make a PR with that change, unless there is a reason not to? |
255.255.255.255 is a local link broadcast address (not a port), so no router at all should forward it. The answer that you linked to is plain wrong. |
I see not point of making an integration test for broadcast feature, when there is only one local machine having the beacon. |
It does seem kind of pointless, come to think of it. I wonder if the integration tests idea we've been discussing (#631) could be set up in some way to test using multiple machines? I doubt there is a way to do it for free, though, since this project doesn't have funding. We might be stuck with manual testing, at the end of the day. |
I'm looking into the I played around with I'm not really sure how to address this. Maybe this means that we can't reliably determine that an address is invalid, and we should just remove the |
|
Did you try to use an invalid FQDN like ggglocalhostxxx.google.com ? It might help. |
@fbacchella Good call! I tried that and both tests passed. So if I'm understanding correctly, as long as we use a known domain like google.com and a known invalid subdomain, the tests should pass. I'll make another PR to re-add those tests. |
I think I'm un-blocked at this point. I'll take a stab at releasing JeroMQ 0.5.1 soon! |
JeroMQ 0.5.1 is now available in Maven Central. TODO at this point:
@trevorbernard It looks like I would need to subscribe to the ZMQ mailing list in order to announce the release, and I'm not really interested in subscribing, particularly because this page describes it as high-traffic and I'm an Inbox Zero person. Would you be OK with continuing to announce releases on the mailing list? |
No worries. I can do the announcements. |
Awesome, much appreciated! |
I'd like to release JeroMQ 0.5.1, but am currently unable to do so because 5 test cases are failing on my machine:
The ZBeacon tests have been noted before in an open issue, #620. I haven't seen these other 2 test failures before.
Help getting these tests to pass would be much appreciated!
The changelog also needs to be updated, which I'm happy to take care of unless somebody else beats me to it.
The text was updated successfully, but these errors were encountered: