Skip to content

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.

2 participants