Skip to content

Commit

Permalink
feat(api): prepare for WebConnectivity A/B testing
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed Jan 23, 2024
1 parent 48a4634 commit 925667c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions api/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
ooni-api (1.0.89) unstable; urgency=medium

* Start preparing for WebConnectivity v0.4 vs v0.5 A/B testing

-- Simone Basso <[email protected]> Tue, 23 Jan 2024 14:53:55 +0100

ooni-api (1.0.88) unstable; urgency=medium

* Add more logging
Expand Down
7 changes: 4 additions & 3 deletions api/ooniapi/probe_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,10 @@ def check_in() -> Response:
features={"torsf_enabled": True, "vanilla_tor_enabled": True}
)

# set webconnectivity_0.5 feature flag for some probes
octect = extract_probe_ipaddr_octect(1, 0)
if octect in (34, 239):
# WebConnectivity v0.4 vs v0.5 A/B testing.
#
# See https://github.com/ooni/probe/issues/2555#issuecomment-1906097413.
if software_name == "ooniprobe-android-unattended" and software_version == "3.8.6":
conf["features"]["webconnectivity_0.5"] = True

conf["test_helpers"] = generate_test_helpers_conf()
Expand Down

0 comments on commit 925667c

Please sign in to comment.