Commit Graph

273 Commits

Author SHA1 Message Date
Simone Basso
259ab41b15 Implement the circumvention nettest group
Only Psiphon for now. Closes #87 #77.
2019-12-28 17:48:07 +01:00
Simone Basso
5e868fe043 Readme.md build.sh: stop spreading lies about GOPATH
Turns out there's no need to unset GOPATH.
2019-12-27 12:22:20 +01:00
Arturo Filastò
7bbbab8774 Handle the SIGINT and SIGTERM signals to support stopping a test cleanly (#84) 2019-12-27 11:32:08 +01:00
Simone Basso
265177a8a6
Merge pull request #88 from ooni/release/3.0.0-rc.4
Release 3.0.0-rc.4
2019-12-27 11:30:32 +01:00
Simone Basso
6cccfeb97a travis: run goveralls inside the docker container
Factor code and reorganize location of go cache and go paths such
that subsequent invocations reuse both dirs.
2019-12-26 19:13:25 +00:00
Simone Basso
1e16f28634 Bump to 3.0.0-rc.4 2019-12-26 18:11:42 +01:00
Simone Basso
67d2f544a7 go.mod go.sum: update all direct dependencies 2019-12-26 18:10:13 +01:00
Simone Basso
8a1622d0c1 Update to ooni/probe-engine@v0.3.0
1. `go get -u github.com/ooni/probe-engine@v0.3.0`

2. `go mod tidy`

3. fix build failures
2019-12-26 18:09:23 +01:00
Arturo Filastò
7d97e3115d
Add minimal user setup for linux 2019-12-09 16:36:17 +01:00
Arturo Filastò
42deb58fac
Merge pull request #82 from ooni/probe-legacy-compat
Add document outlining the differences between probe-cli and probe-le…
2019-12-04 13:14:11 +02:00
Arturo Filastò
868e31bc09
Address feedback from @bassosimone 2019-12-04 13:13:13 +02:00
Arturo Filastò
68d00c8e4f
Merge pull request #83 from ooni/refactor-consolidate
Refactoring to reduce package count
2019-12-04 11:00:15 +02:00
Arturo Filastò
274e533b2e Fix import for groups 2019-12-02 18:05:02 +02:00
Arturo Filastò
b7deb6c88f Use a faster nettest for testing 2019-12-02 18:00:12 +02:00
Arturo Filastò
ccdff3ba24 Move IM tests into top level tree too 2019-12-02 17:59:37 +02:00
Arturo Filastò
b20af107dc Refactor nettests into top tree 2019-12-02 17:57:55 +02:00
Arturo Filastò
d6d2490d2c Disable -race as it fails on alpine 2019-12-02 16:09:10 +02:00
Arturo Filastò
c99e719a45 Use code coverage commands from probe-engine 2019-12-02 16:01:37 +02:00
Arturo Filastò
410b7514d7 Use coveralls which is the same thing used in other repos 2019-12-02 15:42:14 +02:00
Arturo Filastò
a3685ae6b0 Add coverage.txt to .gitignore 2019-12-02 15:26:12 +02:00
Arturo Filastò
cda9a3ee4f Add code coverage integration 2019-12-02 15:25:23 +02:00
Arturo Filastò
58199a020e Refactoring to reduce package count
* Consolidate util and utils into the same package
* Move internal/onboard into internal/cli/onboard
* Move maybeOnboard into the onboard package
2019-12-02 15:15:50 +02:00
Arturo Filastò
94f08d7e61
Update OONIProbeLegacyCompatibility.md 2019-12-02 12:59:10 +02:00
Arturo Filastò
e4ff1fe89a
Add missing options from @anadahz feedback 2019-12-02 12:58:18 +02:00
Arturo Filastò
5486f6db93
fix typos 2019-12-02 12:44:42 +02:00
Arturo Filastò
0b3661ffaa
Update OONIProbeLegacyCompatibility.md 2019-12-02 12:35:24 +02:00
Arturo Filastò
6f099bb3e0 Use emoji to make things more readable 2019-11-29 17:24:16 +01:00
Arturo Filastò
d51b535153 Add document outlining the differences between probe-cli and probe-legacy 2019-11-29 17:18:28 +01:00
Simone Basso
430a53e7d6
build.sh: re-enable psiphon (#81)
To test this, I'll create a fake release locally and make sure
the resulting binary is much larger. If you see this commit landing
on a PR, then it means I successfully run this check.
2019-11-29 16:17:37 +01:00
Arturo Filastò
222b0bfbca Bump version number 2019-11-14 18:03:31 +01:00
Arturo Filastò
e0160b5881 Bump probe-engine 2019-11-14 18:02:18 +01:00
Arturo Filastò
8a27de6c7d
Remove all settings which are not implemented (#73)
* Remove all settings which are not implemented

* Add support for migrating config files from version 0 -> 1

Add basic unittests for the config file migration

* Update the config file used by travis

* Fix typos in console log messages

* Improve the comment

* Fix type of limit

* Set informed consent to true in the travis config
2019-11-14 17:58:31 +01:00
Simone Basso
e5248d632b
build.sh: produce smaller binaries (#72)
* don't include psiphon until we need it

* strip the binaries
2019-11-14 12:20:04 +01:00
Arturo Filastò
bc1314ca61
Add support for calculating the estimate time remaining (#71) 2019-11-14 12:01:40 +01:00
Simone Basso
0c6862bb87 Readme.md: we require Go >= 1.13 now
While there, make sure the markdown output is not confusing.
2019-11-14 10:14:25 +01:00
Simone Basso
a9b2edc88e Readme.md: briefly document release procedure 2019-11-13 18:31:19 +01:00
Simone Basso
90c497873a
Merge pull request #70 from ooni/release/rc-2
Release 3.0.0-rc.2
2019-11-13 17:47:29 +01:00
Simone Basso
25008f9ffa Bump to v3.0.0-rc.2 2019-11-12 16:45:54 +01:00
Simone Basso
0bee29bc21 Upgrade to github.com/ooni/probe-engine@v0.2.0 2019-11-12 16:45:24 +01:00
Simone Basso
e97d21e844
Merge pull request #69 from ooni/release/rc-1
Bump to 3.0.0-rc.1
2019-11-12 16:43:22 +01:00
Arturo Filastò
68c2866ee9 Bump to 3.0.0-rc.1 2019-11-04 07:46:49 +08:00
Simone Basso
946289d6fe
Use more general ooni/probe-engine API (#67)
No functional change, just importing less stuff and meddling
much less with the internals of ooni/probe-engine.
2019-10-28 14:05:05 +01:00
Simone Basso
1b9bc457b9
Merge pull request #65 from ooni/issue/64
build.sh: produce same release as before
2019-10-03 23:40:38 +02:00
Simone Basso
2986cbcb25
Update build.sh
Co-Authored-By: Sarath <sarath.ms@gmail.com>
2019-10-03 23:34:41 +02:00
Simone Basso
a8f8c65ffb build.sh: produce same release as before 2019-10-03 20:33:20 +02:00
Simone Basso
1d8becf50f
Merge pull request #62 from ooni/feature/release
Publish code used to generate v3.0.0-beta.4
2019-10-03 12:25:16 +02:00
Simone Basso
839b51237d Temporarily remove goreleaser
For now, I'm fine with `./build.sh release`. When we'll be fully
written in Go, we'll explorer more perks.
2019-10-03 12:15:19 +02:00
Simone Basso
f3193b4a7c build.sh: add target to build release
While there, remove non actionable warning.
2019-10-03 11:45:49 +02:00
Simone Basso
a488c8d2a3 version.go: actually bump version
Classic mistake: you don't bump the version.

We need https://github.com/ooni/probe-cli/issues/43.
2019-10-03 11:22:13 +02:00
Simone Basso
7cde93fca4
Make sure ooniprobe show <id> is WAI (#61)
1. the description of the command and the helper function are
clear hints that the command is intended to show a single JSON
measurement at a time (also the use case seems clear) [*]

2. the function used to read lines was failing for all my
measurements that take input. Since that was not the optimal
pattern anyway, use a better pattern to fix it.

3. some changes are automatically applied by my editor (VSCode
with the Go plugin) and I am fine with them.

4. while reading code, I also applied my preferred pattern
wrt whitespaces, i.e.: no whitespace inside functions, if a
function feels too long in this way, just break it.

Closes #57

[*] Even if we want to show many measurements at a time, which
does not seem needed, given the UI patterns, this functionality
won't be P0. What is P0 is to bless a new beta and give to
@sarathms binaries for all archs that support a basic `show`.
2019-10-03 11:18:07 +02:00