Commit Graph

631 Commits

Author SHA1 Message Date
Arturo Filastò
862e27efcd
Update Readme.md 2020-12-09 12:52:57 +01:00
Arturo Filastò
72a3fa0bca
Update Readme.md 2020-12-09 12:51:59 +01:00
Arturo Filastò
5b838ec188
Update plist file 2020-12-09 12:51:28 +01:00
Simone Basso
fa9ac93804
fix(Readme.md): issues badge lands us on issue tracker
Before it was landing us onto the badge itself, which is quite useless :-).
2020-12-08 17:46:24 +01:00
Simone Basso
b9e619b22e
chore(Readme): add badge pointing to issue tracker
While there improve the wording around opening issues.
2020-12-08 17:45:10 +01:00
Simone Basso
1f5f6efd85
chore(Readme): say where to report issues 2020-12-08 17:39:50 +01:00
Simone Basso
1a4b70c9aa chore: we're now at 3.2.0-alpha 2020-12-08 15:59:48 +01:00
Simone Basso
c9ea92fc53
chore: bless 3.1.0 (#186) 2020-12-07 19:42:13 +01:00
cyBerta
9192ead36d
cli: expose riseupvpn (#171) 2020-12-07 17:14:48 +01:00
Simone Basso
a8070edc27
chore: update dependencies (#185) 2020-12-07 11:51:09 +01:00
Simone Basso
cb58fb5b79
go get -v github.com/ooni/probe-engine@f8284475147 (#184) 2020-12-04 14:36:52 +01:00
Simone Basso
d402cd9090
feat: implement the unattended group (#183)
We don't want to run performance in the background because this
causes too much traffic towards m-lab servers.

When we'll have the check-in API, this will be the entry point we'll
use to contact such an API and get things to do.

Part of https://github.com/ooni/probe/issues/1289.
2020-12-01 16:52:12 +01:00
Simone Basso
60d08eef3b
refactor: move code to run group in nettests package (#182)
Part of https://github.com/ooni/probe/issues/1289
2020-12-01 15:04:04 +01:00
Simone Basso
2381c50dc5
feat: implement syslog logging (#181)
* feat: implement syslog logging

With this functionality in tree, macOS users could easily access
ooniprobe logs by filtering by process name in the console app.

Part of https://github.com/ooni/probe/issues/1289

* fix: build on windows

* fix: all build issues
2020-12-01 13:31:15 +01:00
Simone Basso
cfd3b8f9b2
feat(cli/run): read inputs from file/cmdline (#180)
This diff introduces the possibility of specifying --input-file file
multiple times to force ooniprobe to read inputs from file.

Like we do for miniooni, the file shall contain a single entry per
line and this entry should be a URL for websites.

Likewise, one can specify --input URL multiple times.

This implementation is a very simple, initial implementation and there
is a bunch of changes I'd like to add on top of it.

And also perhaps a bunch of cleanups.

I've chosen to expose these flag _only_ for websites for now.

Part of https://github.com/ooni/probe/issues/1283.
2020-12-01 07:21:33 +01:00
Simone Basso
a324e94973
refactor(webconnectivity): use engine.InputLoader (#179)
This diff pins to ooni/probe-engine@3049779878
and starts using the recently introduced probe-engine APIs.

Namely, here, we use the InputLoader for loading URLs.

I've confirmed manually everything is still working as intended.

Part of https://github.com/ooni/probe/issues/1283.

(In particular, the InputLoader is the abstraction allowing us to load
input from several sources, including command line flags and external
files.)
2020-11-30 15:39:25 +01:00
Simone Basso
2fc160b202
cleanup(nettests): remove unused OnDataUsage (#178)
Part of https://github.com/ooni/probe/issues/1283
2020-11-26 19:12:27 +01:00
Simone Basso
95906fbcce
feat: use ooni/probe-engine@286613b74e and cleanup (#177)
* feat: use ooni/probe-engine@286613b74e and cleanup

1. zap unused configuration settings from the config file but do not
bump the version number because doing that _may_ interact in unexpected
ways with probe-desktop (hence https://github.com/ooni/probe/issues/1297)
and also because we've just _removed_ stuff for now, therefore any
previous configuration file will continue to work, except that we'll
be ignoring a bunch of options. In a future version of probe-cli I'll
spend some time to further improve config file management.

2. accordingly, make sure all current configuration files that are around
in the tree are current and only feature supported options.

3. update to ooni/probe-engine@286613b74e, which contains a bunch of
APIs that should allow us to simplify the interaction between the cli and
the engine, by sharing code more cleverly.

4. zap GetTestKeys because now we use code in probe-engine instead.

5. zap LogSummary because it was not being used.

6. the main change related to cleaning up the config and to the update
to the latest probe-engine is that include_{cc,asn,ip} settings are
gone and we now share the CC and the ASN and we never share the IP addr.

Reference issue: https://github.com/ooni/probe/issues/1283.

After this change is landed, there's a bunch more work to do to further
unify cli and engine. The final state will be that the cli uses ~the code
used by miniooni, so it will have a bunch of desirable options.

* fix: bindata after recent changes
2020-11-26 18:48:20 +01:00
Simone Basso
e4ef279b80
fix(onboard): fail if input is /dev/null (#176)
When the input is /dev/null, every read returns EOF. In general, it
may also happen that read doesn't work as intended. So, the robust thing
to do here is to ensure that we check the return values. By doing that
we notice of io.EOF errors and we don't proceed with the onboarding.

This diff fixes the issue described by https://github.com/ooni/probe/issues/1281
however it may be that we also want (in the near or not-so-near future)
to stop onboarding if the input terminal is not a tty. This is however a
possible future evolution that should not prevent us for committing and
merging this simple fix that unblocks creating a Debian package.
2020-11-24 09:19:34 +01:00
Simone Basso
7a4397555b
Merge pull request #175 from ooni/testing
Start increasing testing and code coverage
2020-11-20 12:59:35 +01:00
Simone Basso
7eedf4d947 feat(geoip, info): write comprehensive unit tests 2020-11-20 12:19:51 +01:00
Simone Basso
fa803300bb refactor(ooni): introduce interfaces for testability 2020-11-20 12:19:51 +01:00
Simone Basso
c55f67273e
chore: set version to 3.0.12-alpha (#172)
* chore: set version to 3.0.12-alpha

I need to bless 3.0.11 now to pin to ooni/probe-engine v0.20.2.

* chore: update all dependencies

Most notably, pin to ooni/probe-engine 0.20.2.
2020-11-17 18:22:46 +01:00
Simone Basso
9e238c27dd
refactor(internal/ooni): Context => Probe (#170)
Closes https://github.com/ooni/probe/issues/939
2020-11-13 19:01:06 +01:00
Simone Basso
163922e001
refactor: run go fmt ./... (#169) 2020-11-13 18:42:10 +01:00
Simone Basso
c81393b31a
refactor: move ooni into the internal package (#168)
With this commit we've reorganised the package structure. Now I will
go more in depth and perform further refactoring.
2020-11-13 17:47:29 +01:00
Simone Basso
bc85efa6e5
refactor: version is now an internal package (#167)
Like for previous commits, just refactoring/yak shaving.
2020-11-13 17:37:06 +01:00
Simone Basso
a4ae94b5ec
refactor: now utils is an internal package (#166)
Let us make internal everything because this is not a library.
2020-11-13 17:28:02 +01:00
Simone Basso
a58dff3050
refactor: nettests is now an internal package (#165)
I'm moving everything into internal packages since this ain't a library.

While there, remove typo that was causing a build breakage.
2020-11-13 17:14:26 +01:00
Simone Basso
fb2ca32004
refactor: config is now a private package (#164)
We are working on ooniprobe for Debian. Before starting to apply
changes to the codebase, I'd like to apply some refactoring steps
that I've been thinking about for quite some time.

The general concept here is that the purpose of this repository
changed since it was designed and now there is probe-engine which
is a library, therefore, this repo can be mostly private.
2020-11-13 16:58:14 +01:00
Sarath
73d6b550e5
Replace ooni with ooniprobe in example usage (#163) 2020-11-13 16:57:01 +01:00
Simone Basso
3733e551e1
chore: start hacking on 3.0.11-alpha 2020-11-13 11:29:54 +01:00
Simone Basso
f82aa2eff1
Merge pull request #161 from ooni/release/3.0.10
Release 3.0.10
2020-11-13 11:29:27 +01:00
Simone Basso
d648b06eb3 chore: version.go is no 3.0.10 2020-11-13 11:10:48 +01:00
Simone Basso
4dc0c2b3f7
fix(debian pkg): only package the master branch (#160)
See https://github.com/ooni/backend/issues/452
2020-11-13 10:26:37 +01:00
Federico Ceratto
6df2c34974
Initial packaging (#117)
* Add initial packaging

* Update Vcs URLs

* Disable test

* Update dh version

* Switch to ubuntu-20.04

* Add d/compat

* Update install

* Find file

* Update location

* Upload to bintray

* Add version

* Add dep

* Set vars

* Drop file

* Update Readme.md

* Update linux-debian-packages.yml

* Update linux-debian-packages.yml

Co-authored-by: Simone Basso <bassosimone@gmail.com>
2020-11-13 09:59:30 +01:00
Arturo Filastò
c0a95c037f
Add support for deleting all measurements (#158)
Co-authored-by: Simone Basso <bassosimone@gmail.com>
2020-11-13 07:43:00 +01:00
Simone Basso
c4da81e894
chore: upgrade all dependencies (#159)
See https://github.com/ooni/probe-engine/issues/1004
2020-11-13 06:58:39 +01:00
Simone Basso
8eada581c2
doc: add code of conduct (#157)
Copied from github.com/ooni/ooni.org
2020-11-03 21:16:04 +01:00
Simone Basso
2a34d7db04
chore(version.go): we're at 3.0.10-alpha
Committing directly to master since this should be a simple enough change
2020-10-27 15:27:47 +01:00
Simone Basso
f172031a03
Release 3.0.9 (#156)
* chore(version.go): we're now at 3.0.9

* chore(go.mod go.sum): update dependencies

* fix(gha/cross.yml): brew update seems broken?

See https://github.com/ooni/probe-cli/pull/156/checks?check_run_id=1315116799
2020-10-27 15:23:24 +01:00
cyBerta
ca11b2b65f
turn off printing of each command in the help section of the build script (#155) 2020-10-14 11:42:10 +02:00
Simone Basso
10c806b1a2
Merge pull request #154 from ooni/release/3.0.8
Release 3.0.8 cycle
2020-10-06 13:15:32 +02:00
Simone Basso
4bd6c3e9d4 version/version.go: we're now hacking on v3.0.9-alpha 2020-10-06 13:04:23 +02:00
Simone Basso
d02b47dcda version/version.go: bless v3.0.8 2020-10-06 12:50:33 +02:00
Simone Basso
acfbbd9dd5 go.mod: pin to ooni/probe-engine@v0.18.0 2020-10-06 12:49:56 +02:00
Simone Basso
fd11a63933
Merge pull request #153 from ooni/release/3.0.8-beta
Start testing v3.0.8-beta
2020-10-05 19:43:18 +02:00
Simone Basso
ad88fefe41 Start testing v3.0.8-beta
This beta release incorporates recent fixes in ooni/probe-engine that we
would like to test and ship relatively soon.

I'm doing this as part of https://github.com/ooni/explorer/issues/495
2020-10-05 19:25:19 +02:00
Simone Basso
f1f2350bfa
Release v3.0.7 (#152)
* Update go-bindata and regenerate binary data

* Pin to ooni/probe-engine 0.17.0 and update dependencies

* Set version to 3.0.7

* Readme.md: better release instructions
2020-09-30 10:54:58 +02:00
Simone Basso
b18a106698
Merge pull request #150 from ooni/fix/buildscript
Release v3.0.7-beta.1 with updated build script
2020-08-24 19:31:07 +02:00