Skip to content
Snippets Groups Projects
Select Git revision
  • riseupvpn_experiment
  • master default protected
  • workaround_for_go1.15
  • v0.16.0
  • v0.15.2
  • v0.15.1
  • v0.15.0
  • v0.14.1
  • v0.14.0
  • v0.13.2
  • v0.13.1
  • v0.13.0
  • v0.12.0
  • v0.11.0
  • v0.10.0
  • v0.9.0
  • v0.8.0
  • v0.7.0
  • v0.6.0
  • v0.5.0
  • v0.4.0
  • v0.3.0
  • v0.2.0
23 results

probe-engine

  • Clone with SSH
  • Clone with HTTPS
  • cyBerta's avatar
    cyberta authored
    * Tests the reachability of openvpn and obfs4 ports of each gateway by performing a tcp handshake.
    * Includes integration tests
    0ccd0a05
    History

    OONI probe measurement engine

    GoDoc Golang Status Coverage Status Go Report Card

    This repository contains OONI probe's measurement engine. That is, the piece of software that implements OONI nettests as well as all the required functionality to run such nettests.

    We expect you to use the Go version indicated in go.mod.

    Integrating ooni/probe-engine

    We recommend pinning to a specific version of probe-engine:

    go get -v github.com/ooni/probe-engine@VERSION

    See also the workflows/using.yml test where we check that the latest commit can be imported by a third party.

    We do not provide any API stability guarantee.

    Building miniooni

    miniooni is a small command line client used for research and quality assurance testing. Build using:

    go build -v ./cmd/miniooni/

    We don't provide any miniooni command line flags stability guarantee.

    See

    ./miniooni --help

    for more help.

    Building Android bindings

    ./build-android.bash

    We automatically build Android bindings whenever commits are pushed to the mobile-staging branch. Such builds could be integrated by using:

    implementation "org.ooni:oonimkall:VERSION"

    Where VERSION is like 2020.03.30-231914 corresponding to the time when the build occurred.

    Building iOS bindings

    ./build-ios.bash

    We automatically build iOS bindings whenever commits are pushed to the mobile-staging branch. Such builds could be integrated by using:

    pod 'oonimkall', :podspec => 'https://dl.bintray.com/ooni/ios/oonimkall-VERSION.podspec'

    Where VERSION is like 2020.03.30-231914 corresponding to the time when the build occurred.

    Updating dependencies

    1. update direct dependencies using:
    for name in `grep -v indirect go.mod | awk '/^\t/{print $1}'`; do \
      go get -u -v $name;                                             \
    done
    1. pin to a specific psiphon version (we usually track the staging-client branch) using:
    go get -v github.com/Psiphon-Labs/psiphon-tunnel-core@COMMITHASH
    1. clone psiphon-tunnel-core, checkout the tip of the staging-client branch and generate a go.mod by running go mod init && go mod tidy in the toplevel dir

    2. rewrite go.mod such that it contains only your direct dependencies followed by the exact content of psiphon-tunnel-core's go.mod

    3. run go mod tidy

    4. make sure you don't downgrade bolt and goselect because this will break downstream builds on MIPS:

    go get -u -v github.com/Psiphon-Labs/bolt github.com/creack/goselect

    The above procedure allows us to pin all psiphon dependencies precisely.