ooni-probe-cli/internal/engine
Simone Basso b78b9aca51
refactor(datafmt): use "udp" instead of "quic" (#946)
This diff changes the data format to prefer "udp" to "quic" everywhere we were previously using "quic".

Previously, the code inconsistently used "quic" for operations where we knew we were using "quic" and "udp" otherwise (e.g., for generic operations like ReadFrom).

While it would be more correct to say that a specific HTTP request used "quic" rather than "udp", using "udp" consistently allows one to see how distinct events such as ReadFrom and an handshake all refer to the same address, port, and protocol triple. Therefore, this change makes it easier to programmatically unpack a single measurement and create endpoint stats.

Before implementing this change, I discussed the problem with @hellais who mentioned that ooni/data is not currently using the "quic" string anywhere. I know that ooni/pipeline also doesn't rely on this string. The only users of this feature have been research-oriented experiments such as urlgetter, for which such a change would actually be acceptable.

See https://github.com/ooni/probe/issues/2238 and https://github.com/ooni/spec/pull/262.
2022-09-08 17:19:59 +02:00
..
experiment fix(dnscheck): record whether residual is enabled (#922) 2022-09-02 13:31:24 +02:00
geolocate refactor: spin geoipx off geolocate (#893) 2022-08-28 20:00:25 +02:00
mockable feat(oonirun): improve tests (#915) 2022-08-31 18:40:27 +02:00
netx refactor(datafmt): use "udp" instead of "quic" (#946) 2022-09-08 17:19:59 +02:00
probeservices fix(probeservices): use api.ooni.io (#926) 2022-09-02 16:48:14 +02:00
sessionresolver fix(probeservices): use api.ooni.io (#926) 2022-09-02 16:48:14 +02:00
testdata fix: add missing files causing tests to fail (#202) 2021-02-02 14:18:22 +01:00
.gitignore feat: support embedding encrypted psiphon config (#285) 2021-04-02 17:36:06 +02:00
allexperiments.go refactor(engine): allow scripts to register experiments (#860) 2022-08-17 10:57:03 +02:00
doc.go feat(engine): allow runner to return many measurements (#527) 2021-09-30 00:54:52 +02:00
experiment_integration_test.go feat: clearly indicate which resolver we're using (#885) 2022-08-27 15:47:48 +02:00
experiment_test.go refactor: spin geoipx off geolocate (#893) 2022-08-28 20:00:25 +02:00
experiment.go refactor: spin geoipx off geolocate (#893) 2022-08-28 20:00:25 +02:00
experimentbuilder_test.go refactor(engine): allow scripts to register experiments (#860) 2022-08-17 10:57:03 +02:00
experimentbuilder.go refactor(engine): allow scripts to register experiments (#860) 2022-08-17 10:57:03 +02:00
inputloader_network_test.go refactor(engine): allow scripts to register experiments (#860) 2022-08-17 10:57:03 +02:00
inputloader_test.go refactor(engine): allow scripts to register experiments (#860) 2022-08-17 10:57:03 +02:00
inputloader.go fix(dnscheck): trim the static input list (#923) 2022-09-02 13:54:59 +02:00
inputprocessor_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
inputprocessor.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
saver_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
saver.go feat(oonirun): improve tests (#915) 2022-08-31 18:40:27 +02:00
session_integration_test.go refactor: spin geoipx off geolocate (#893) 2022-08-28 20:00:25 +02:00
session_internal_test.go fix(ooniprobe): use ooniprobe-cli-unattended for unattended runs (#714) 2022-04-29 13:41:09 +02:00
session_nopsiphon_test.go refactor: only use shaping dialer for ndt7 and dash (#754) 2022-05-24 18:23:42 +02:00
session_nopsiphon.go refactor: only use shaping dialer for ndt7 and dash (#754) 2022-05-24 18:23:42 +02:00
session_psiphon_test.go refactor: only use shaping dialer for ndt7 and dash (#754) 2022-05-24 18:23:42 +02:00
session_psiphon.go refactor: only use shaping dialer for ndt7 and dash (#754) 2022-05-24 18:23:42 +02:00
session.go cleanup: doh.powerdns.org is not working anymore (#924) 2022-09-02 14:44:23 +02:00
submitter_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
submitter.go feat(oonirun): improve tests (#915) 2022-08-31 18:40:27 +02:00