Skip to content
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

cleanup: remove UnderlyingNetworkLibrary and TProxy #874

Merged
merged 2 commits into from
Aug 23, 2022
Merged

Conversation

bassosimone
Copy link
Contributor

While there, replace mixture of mocking and real connections inside
quicping with pure mocking of network connections.

Closes ooni/probe#2224

While there, replace mixture of mocking and real connections inside
quicping with pure mocking of network connections.

See ooni/probe#2224
@bassosimone bassosimone requested a review from hellais as a code owner August 23, 2022 09:16
This type was only used by UnderlyingNetworkLibrary and all the
rest of the code uses Resolver. So, let's avoid complexity by zapping
the SimpleResolver type and merging it inside Resolver.
@bassosimone bassosimone merged commit da1c13e into master Aug 23, 2022
@bassosimone bassosimone deleted the issue/2224 branch August 23, 2022 09:43
bassosimone added a commit that referenced this pull request Aug 23, 2022
This diff modifies how dnsovergetaddrinfo.go works such that the
returned DNSResponse includes the CNAME.

Closes ooni/probe#2226.

While there, recognize that we can remove getaddrinfoLookupHost and
always call getaddrinfoLookupANY everywhere. (This simplification is
why we did #874.)
bassosimone added a commit that referenced this pull request Aug 23, 2022
* feat(dnsovergetaddrinfo): collect the CNAME

This diff modifies how dnsovergetaddrinfo.go works such that the
returned DNSResponse includes the CNAME.

Closes ooni/probe#2226.

While there, recognize that we can remove getaddrinfoLookupHost and
always call getaddrinfoLookupANY everywhere. (This simplification is
why we did #874.)

* fix: extra debugging because of failing CI

Everything is OK locally (on macOS). However, maybe things are a bit
different on GNU/Linux perhaps?

Here's the error:

```
--- FAIL: TestPass (0.11s)
    resolver_test.go:113: unexpected rcode
FAIL
coverage: 95.7% of statements
FAIL	github.com/ooni/probe-cli/v3/internal/cmd/jafar/resolver	0.242s
```

I'm a bit confused because jafar's resolver is _unrelated_. But actually this
error never occurred again after a committed the debugging diff.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cleanup(engine): remove the TProxy abstraction
1 participant