-
Notifications
You must be signed in to change notification settings - Fork 219
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
mDNS & DNS-SD #247
mDNS & DNS-SD #247
Conversation
Unit tests failing when merging to the latest dev branch. Details below:
|
Hmm, thats odd. I have no errors locally not even when I checkout the dns-sd-dev branch somewhere else and build it again. I use following command:
Could this be a platform issue? Maybe then I could reproduce the errors? |
I am getting the same before the merge. My platform: debian-sid, 32bit, Linux 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt2-1 my command:
|
I'll try to reproduce & find the causes. |
Found the causes and fixed the errrors. Most of the errors where caused by wrong DNS name conversion-functions in the DNS Common module. I had already updated those functions in some other directory earlier on, but forgot to update them in the actual developing directory. Strange the unit tests didn't fail on Ubuntu though. Normally, all unit tests should run smooth now. |
Changes Unknown when pulling 1b338a6 on dns-sd-dev into * on development*. |
Thanks @jelledevleeschouwer - All my tests are passing now. Merge should happen soon, stay tuned. |
Hello @jelledevleeschouwer - we just fixed the format of pico_dns_name_to_dns_notation() and pico_dns_notation_to_dns_name() in dns_common, It is not safe to call these function without any boundary, so we added a maximum length as a second argument passed to these two functions. The old mdns module has been temporarily reworked according to this, but it would be much nicer if you could review all the function calls in the new mdns module towards pico_dns_name_to_dns_notation and pico_dns_notation_to_dns_name, especially that the correct length is passed upon every call. Thanks, and sorry about this. The branch is still under review, and should be merged soon. |
No problem, makes sense, I'll fix it somewhere this weekend! |
I might have to push some more changes today/tomorrow to add support for NSEC records. NSEC records is the only point my implementation differs from the real Bonjour implementation. So I'll add it today. I'm sorry to slow the pull-request process down. |
Hey @jelledevleeschouwer great job so far, we also enjoyed your video on youtube. Thanks !! |
Will do 👍 |
Hey @danielinux, Overall quality should be better now and all memory structures are updated to use 'pico_tree' instead. Documentation follows on thursday, first going to work on my presentation a bit. |
Hi Jelle, Thank you, the code has improved a lot.
Thanks |
Hi @danielinux, First of all, I've written API documentation for the mDNS-module as well as the DNS SD-module. About the TICS coverage, I assume you mean the drop around May 4th for mDNS-module? To be honest I have no clue. Because since the first run through TICS somewhere in april, I've actually even added unit tests, so I would assume the coverage increases because of that. Does it need improvement? Thank you, Jelle |
Hi Jelle, sorry to see that the merge was so painful. When I maintain a branch, I do my left-to-right merges every day to avoid the fork to be too wide and end up in that situation. The regressions I was seeing on TICS coverage was not related to the module itself, but spread across other modules. I am now re-running the showcase, I'll comment on the results soon. |
@jelledevleeschouwer it looks like your merge was not successful, as you discarded a lot of fixes from the development branch. Would you attempt that again? Thanks -d |
70f7c63
to
e09106b
Compare
Hi @danielinux, Thank you, that indeed was the case, I think I finally figured out how to fix all my problems. Here's how: I checked out the development branch locally and merged my feature-branch into it, as if it would when this pull-request would pass. Then I updated the remote tracking branch to dns-sd-dev and just forced pushed to the remote dns-sd-dev. This destroyed all my previous commits of course, but I think this is better than fixing all those conflicts manually or losing all my work. Now the dns-sd-dev branch is actually just the development branch but with mDNS- and DNS-SD-modules. Sorry about all the troubles, my git skills aren't the best yet. It should be solved now, though 👍 Jelle |
@jelledevleeschouwer please install "uncrustify" and run "make style". This will fix indentation and coding style automatically, so we won't lose your authoring when merging. Thank you! |
I added the public prototype
to the pico_dns_common.h header, because it was never called within your code. If this is an API function, it needs to be documented. Otherwise it needs to go... |
@danielinux, Thanks a lot for the fixes, I've deleted the cache-flush since it isn't really necessary and doesn't add much value. Also 'made style' with uncrustify. |
Pull request for updated mDNS module and new DNS-SD module.