-
Notifications
You must be signed in to change notification settings - Fork 142
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
feature/echo branch #30
Conversation
… is never imported, which causes a NameError.
…nature than the normal PcapWriter, causing a TypeError. * Fixed log messages to be one string only (multi-string log messages is warned against in the documentation of twisted.python.log). * Moved an exception class to the top of the file.
…be would swallow the error and continue trying to run tests.
…rnel BPF, which in some kernels may not be enabled. Scapy tries to do this if we set filter=''.
There are a few bugs in this branch. I tried fixing some of them in this branch here: https://github.com/hellais/ooni-probe/tree/feature-echo Though I am stuck on this as I am not sure exactly what resp is supposed to be:
|
The bug fixes in this branch look good, the only problem is with the test. In the branch the changes that were made are:
@isislovecruft was telling me that she was encountering some issues with running the scapy test template. If you could file some bugs on that it would be very helpful. Also be careful of calling blocking functions (like the scapy sr1) inside of the event loop. It is not sufficient to use maybeDeferred as that is meant to be used when function that don't wait on file descriptors may or may not return a deferred. |
It would be helpful if there was a summary of what this branch is supposed to do/impact/etc; it is very hard to even know if i want to pull down the branch, test it, review it, etc. In theory, I think d613ca0 is an icmp echo test - eg: a ping variant. However, it is totally unclear until I start the review, if I want to review the code. So what does this do? |
@hellais re: issues:
@ioerror: Is what documentation and and code comments is for, comrade, no? Dear sweet satan, I don't want to document twice.... EDIT: |
@isislovecruft - There is no meaningful commit message for the group of commits. There should be at least one message that explains the entire set of patches overall. How else will I know if I should review the code? As a result, I reviewed every other patch and then left a comment here last. |
Poke? |
This was rebased, retested, and a new pull request was issued. Closing. |
This is a copy of the echo test which was specified in the bridge reachability testing ticket, and this branch has been cleaned up to remove unrelated commits. It includes some necessary bug fixes for txscapy. I ended up rewriting the test to not use the scapy test template because the template was broken in some cases, and attempting to fix all the scapy related tests and fix the template at the same time was obnoxious; it seemed a better idea to have tests which definitely work correctly and then make sure that any changes to the template do not break any of the tests.
It's been long enough now that I no longer remember what the problems with the template were, though there is a chance I have records of it in my testing logs.