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

poc: rewrite urlgetter using step-by-step #1622

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Conversation

bassosimone
Copy link
Contributor

This diff shows how we could incrementally rewrite urlgetter using a step-by-step measurement style.

Additionally, this diff modifies the facebook_messanger experiment to show what changes are required to upgrade it.

The general idea of these changes is to incrementally move experiments away from depending on ./internal/experiment/urlgetter, and instead use a near drop-in replacement implementation, implemented in ./internal/urlgetter, which uses step-by-step to measure.

Because ./internal/experiment/urlgetter depends on ./internal/legacy/netx and, instead, ./internal/urlgetter depends on ./internal/measurexlite, by performing this kind of migration we make ./internal/legacy/netx unnecessary.

Also, because most users of ./internal/experiment/urlgetter only use limited functionality, incremental refactoring would be possible.

Reference issue: ooni/probe#2751.

This diff shows how we could incrementally rewrite urlgetter
using a step-by-step measurement style.

Additionally, this diff modifies the facebook_messanger experiment
to show what changes are required to upgrade it.

The general idea of these changes is to incrementally move
experiments away from depending on ./internal/experiment/urlgetter,
and instead use a near drop-in replacement implementation, implemented
in ./internal/urlgetter, which uses step-by-step to measure.

Because ./internal/experiment/urlgetter depends on
./internal/legacy/netx and, instead, ./internal/urlgetter
depends on ./internal/measurexlite, by performing this
kind of migration we make ./internal/legacy/netx unnecessary.

Also, because most users of ./internal/experiment/urlgetter only
use limited functionality, incremental refactoring would be possible.

Reference issue: ooni/probe#2751.
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