-
Notifications
You must be signed in to change notification settings - Fork 287
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
fix(test): tests use ipv6 by default, even with USE_IPV6 set to 0 #2468
Conversation
At the risk of doubling the size of your code, can I suggest "explicit is better than implicit" and adding the #else and opposite true case. |
Looking good:
ctest - most tests are passing except I'm getting a couple of timeouts: group_toxic and lan_discovery and tcp_relay and bootstrap @ 120 sec. - this could be because of tor. Is there an easy way of increasing the testing timeout? (as I said there are 2 timeouts I feel need increasing in the core to run with tor, although right now I'm running unmodified - I'll change them and retest.) Finally - first ever reallife testing of tor ipv4!!!!!!!!!!!!!!!!! @iphy - can we get a CI with a qemu build with ipv6.disable on the command line? |
nah, IF we do both sides, we better do tox_options_set_ipv6_enabled(default_opts, USE_IPV6); |
Sure great idea - C handles 0/1 for true/false? Much better - ignore my C :-) One less failure at 180 sec: 94% tests passed, 3 tests failed out of 54 Total Test time (real) = 751.85 sec The following tests FAILED: I've seen group join take 20 minutes under tor - can you set a per-test timeout? I'll try 1200 next. |
OK - we need a test for this with a container that has a linux kernel commandline. |
bbdb976
to
40ca9d8
Compare
@Green-Sky how do I tell what 2 tests are failing on a PR? |
|
Have you tried scrolling down the list of checks? |
It would be cool if we could print the stack when we fire a "critical" in the ci. |
(I hate autohiding scrollbars - thanks.) #1432 used to drive me nuts - went into the code and turned it off, but not recently - or did I turn off toxcore logging in toxygen - maybe that was my answer!? I always compile DEBUG... I raised #1432 in NGC a lot because I thought it shouldn't even be sending ipv6 packets when it was disabled - but got told SNAFU. I don't think I knew that there was an old issue open on it. You're the first dev in history to try testing Tox ipv6.disable=1! I'll open a separate issue on adding a test to the testsuite. I kept raising #1432 |
e73a664
to
2f2af53
Compare
@nurupo Yes I saw that, but that's at compile time - I was hoping dor something at run time as there are only one or two tests I expect to run long. No problem - I'll set it long for them all. |
2f2af53
to
765fd54
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #2468 +/- ##
==========================================
- Coverage 71.16% 71.11% -0.05%
==========================================
Files 127 127
Lines 28514 28517 +3
==========================================
- Hits 20291 20280 -11
- Misses 8223 8237 +14 ☔ View full report in Codecov by Sentry. |
765fd54
to
b01aac8
Compare
b01aac8
to
f81d8d5
Compare
70db77f
to
01e1825
Compare
01e1825
to
001d00a
Compare
@emdee-is please try latest master again. |
@Green-Sky still getting some timeouts and one failure, but that's a huge improvement. #2335 (comment) I think the failure in proxy test is expected if you are behind a firewall - it assumes open access to clearnet to run a proxy. (I'm wrong - the test sets up it's own network on localhost and never goes to the Internet.) Please break out the ctest list of BSnodes #2467 |
Signing this off as working - many thanks. I still get
but that's for other reasons: #2469 |
if you rerun |
Nope: 3600 sec. Expected - it doesn't know the proxy details. What surprised me is that |
fixes: #2335
It also fixes resolving to ipv6 addresses when its disabled.
This change is