-
Notifications
You must be signed in to change notification settings - Fork 2k
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
tests/gnrc_rpl: speed up test #19134
base: master
Are you sure you want to change the base?
Conversation
Add a printout when the global prefix has been received that we can await. Strangely we still have to wait 5s after that for ping to work.
57e131b
to
cfac5e5
Compare
bors try |
Did you check if the DODAG was actually constructed at that point (i.e. if the pinging nodes have a parent)? |
A.cmd("nib prefix add 5 2001:db8::/32") | ||
A.cmd("ifconfig 5 add 2001:db8::1/32") | ||
A.cmd("nib prefix add 5 2001:db8::/64") | ||
A.cmd("ifconfig 5 add 2001:db8::1/64") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this change needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not needed, but a /64 is also enough and more idiomatic
A.cmd("nib prefix add 5 2001:db8::/32") | ||
A.cmd("ifconfig 5 add 2001:db8::1/32") | ||
A.cmd("nib prefix add 5 2001:db8::/64") | ||
A.cmd("ifconfig 5 add 2001:db8::1/64") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this?
yes, click the "Without 5s sleep, routing is broken" to expand the results |
Is it exactly 5s or did you pick that value arbitrarily? |
4s also works, 3s is too little |
Ok, I thought it might have to do something with address registration, but then again, the global address is valid already. Should we document this in an issue? |
tryBuild succeeded: |
I created an issue: #19147 |
But this PR is not intended to fix that, right? |
I had hoped by actually waiting for the global address the test would be more stable, but that didn’t turn out to be the case 😔 |
hm, my first run failed, now I'm at ~15, all runs after the first succeeded |
Maybe something akin to https://pypi.org/project/pytest-rerunfailures/ to our tests would help here (or we port the test to |
Contribution description
Add a printout when the global prefix has been received that we can await.
Strangely we still have to wait 5s after that for ping to work.
Testing procedure
should still work.
Without 5s sleep, routing is broken
Issues/PRs references