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

refactor(oohelperd): depend on netxlite.Netx only #1466

Merged
merged 1 commit into from
Jan 24, 2024
Merged

Conversation

bassosimone
Copy link
Contributor

@bassosimone bassosimone commented Jan 24, 2024

This diff modifies netxlite such that the oohelperd only depends on a netxlite.Netx instance.

The overall goal here is to refactor oohelperd to only depend on netxlite.Netx such that we can remove the code duplication between how we instantiate oohelperd.Handler in oohelperd and how we instantiate it inside netemx.

In turn, by doing this, we would ensure we have the same oohelperd behavior for QA and production.

In turn, with this guarantee, we can write QA tests that ensure we're correctly dealing with 127.0.0.1.

The reference issue is ooni/probe#1517.

This diff modifies netxlite such that the oohelperd only depends
on the netxlite.Netx instance.

The overall goal here is to refactor `oohelperd` to only depend on
`netxlite.Netx` such that we can remove the code duplication between how
we instantiate `oohelperd.Handler` in `oohelperd` and how we instantiate
it inside `netemx`.

In turn, by doing this, we would ensure we have the same `oohelperd`
behavior for QA and production.

In turn, with this guarantee, we can write QA tests that ensure we're
correctly dealing with 127.0.0.1.

The reference issue is ooni/probe#1517.
@bassosimone bassosimone merged commit 9f66878 into master Jan 24, 2024
9 of 11 checks passed
@bassosimone bassosimone deleted the issue/1517d branch January 24, 2024 10:15
Murphy-OrangeMud pushed a commit to Murphy-OrangeMud/probe-cli that referenced this pull request Feb 13, 2024
This diff modifies netxlite such that the oohelperd only depends on a
netxlite.Netx instance.

The overall goal here is to refactor `oohelperd` to only depend on
`netxlite.Netx` such that we can remove the code duplication between how
we instantiate `oohelperd.Handler` in `oohelperd` and how we instantiate
it inside `netemx`.

In turn, by doing this, we would ensure we have the same `oohelperd`
behavior for QA and production.

In turn, with this guarantee, we can write QA tests that ensure we're
correctly dealing with 127.0.0.1.

The reference issue is ooni/probe#1517.
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.

1 participant