-
Notifications
You must be signed in to change notification settings - Fork 3k
DNS tests modification for ESP8266-specific scenario #11601
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
DNS tests modification for ESP8266-specific scenario #11601
Conversation
@michalpasztamobica, thank you for your changes. |
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.
We shouldn't add device specific settings to the test code. In my opinion it would be better to increase the sleep time for all devices.
@VeijoPesonen , ok, I see your point here. |
Should the whole test be thought again because we know exactly how many callback calls we want/need. Something like,
This would work with all targets and shields |
@AnttiKauppila , I thought the same, but actually this callback gets called more than a 1000 times throughout this test case. It is a callback for all possible queue events, not the final timeout event - a replacement for whatever is installed in the query. |
The test floods the device with UDP requests (it skips the 100 ms delay to simulate instant timeout). ESP8266 starts responding with "busy p..." message. It needs more time to process the data and recover for subsequent tests.
42a4bd0
to
3297445
Compare
@VeijoPesonen , I changed the code as you suggested, leaving the reason behind the large number only in the commit message. I hope this is ok? @AnttiKauppila , I also had another thought: what if we add a small delay in the "fake" event queue handler, to decrease the rate at which ESP is flooded with messages, but I noticed, that even without the delay we sometimes pass with only 1 timed out request (and sometimes with 5 of them) and I thought this is too narrow to failure... |
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.
Looks good to me.
@michalpasztamobica Checked the code again and it seems the real callback functionality you would need is hidden in main.cpp's |
CI started |
Test run: SUCCESSSummary: 5 of 5 test jobs passed |
Description
The
ASYNCHRONOUS_DNS_TIMEOUTS
test floods the device with UDP requests (it skips the 100 ms delay to simulate instant timeout).ESP8266
starts responding with "busy p..." message. It needs more time to process the requests and recover for subsequent tests.I have also increased the total suite timeout, not only to cover the delay I've just added, but also to allow larger time buffer as we've seen the tests have come really close to the borderline and they have a large variation, dependent on the network status.
Pull request type
Reviewers
@AnttiKauppila
@AriParkkila
@tymoteuszblochmobica
@SeppoTakalo
@VeijoPesonen