Skip to content

Commit

Permalink
Merge branch 'master' into riseup_tests_improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed Oct 11, 2023
2 parents c3264d8 + 82b11fc commit 1fca652
Show file tree
Hide file tree
Showing 590 changed files with 26,777 additions and 10,504 deletions.
1 change: 1 addition & 0 deletions .github/workflows/alltests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Runs the whole test suite
name: alltests
on:
pull_request:
push:
branches:
- "release/**"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
go-version: "${{ steps.goversion.outputs.version }}"
cache-key-suffix: "-coverage-${{ steps.goversion.outputs.version }}"

- run: go test -short -race -tags shaping -coverprofile=probe-cli.cov ./...
- run: ./script/linuxcoverage.bash

- uses: shogo82148/actions-goveralls@v1
with:
Expand Down
26 changes: 0 additions & 26 deletions .github/workflows/jafar.yml

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/libtorlinux.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Runs tests for internal/libtor with -tags=ooni_libtor
name: libtorlinux
on:
pull_request:
push:
branches:
- "master"
Expand Down
15 changes: 0 additions & 15 deletions .github/workflows/qa.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
/citizenlab-test-lists
/gardener
/ghpublish.out.txt
/jafar
/libooniengine.*
/measurement.json
/miniooni
Expand All @@ -25,4 +24,5 @@
/ooniprobe
/ooporthelper
/probe-cli.cov
/tinyjafar
/tmp-*
21 changes: 11 additions & 10 deletions CDEPS/openssl/001.patch
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
diff --git a/include/openssl/opensslv.h b/include/openssl/opensslv.h
index fd9400a..0d2c9dc 100644
--- a/include/openssl/opensslv.h
+++ b/include/openssl/opensslv.h
@@ -94,6 +94,9 @@ extern "C" {
# define SHLIB_VERSION_HISTORY ""
# define SHLIB_VERSION_NUMBER "1.1"

diff --git a/include/openssl/opensslv.h.in b/include/openssl/opensslv.h.in
index 3f47a2a..af1db51 100644
--- a/include/openssl/opensslv.h.in
+++ b/include/openssl/opensslv.h.in
@@ -101,6 +101,10 @@ extern "C" {
|(OPENSSL_VERSION_PATCH<<4) \
|_OPENSSL_VERSION_PRE_RELEASE )
+/* OPENSSL_OONI is used by dependencies to ensure they are using the
+ correct OpenSSL headers and not some other headers. */
+#define OPENSSL_OONI 1

#ifdef __cplusplus
+
# ifdef __cplusplus
}
# endif
32 changes: 23 additions & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,26 @@ functionality should pass existing tests. What's more, any new pull
request that modifies existing functionality should not decrease the
existing code coverage.

Long-running tests should be skipped when running tests in short mode
using `go test -short`. We prefer internal testing to external
testing. We generally have a file called `foo_test.go` with tests
for every `foo.go` file. Sometimes we separate long running
integration tests in a `foo_integration_test.go` file.
New code should have full coverage using either localhost or the
[internal/netemx](./internal/netemx/) package. Try to cover all the
error paths as well as the important properties of the code you've written
that you would like to be sure about.

Additional integration tests using the host network are good,
but they MUST use this pattern:

```Go
func TestUsingHostNetwork(t *testing.T) {
if testing.Short() {
t.Skip("skip test in short mode")
}
}
```

The overall objective here is for `go test -short` to only use localhost
and [internal/netemx](./internal/netemx/) such that tests are always
reproducible. Tests using the host network are there to give us extra
confidence that everything is working as intended.

If there is a top-level DESIGN.md document, make sure such document is
kept in sync with code changes you have applied.
Expand Down Expand Up @@ -88,10 +103,9 @@ will understand you want to use the default pool)
## Code testing requirements

Make sure all tests pass with `go test -race ./...` run from the
top-level directory of this repository. (Integration tests may be
flaky, so there may be some failures here and and there; we know
in particular that `./internal/cmd/jafar` is one of the usual
suspects and that it's not super pleasant to test it under Linux.)
top-level directory of this repository. (Running [netem](
https://github.com/ooni/netem) based tests may not work as intended
with `-race` with macOS.)

## Writing a new OONI experiment

Expand Down
2 changes: 1 addition & 1 deletion GOVERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.20.6
1.20.8
2 changes: 1 addition & 1 deletion NDKVERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
25.2.9519653
26.0.10792818
1 change: 0 additions & 1 deletion QA/.dockerignore

This file was deleted.

4 changes: 0 additions & 4 deletions QA/.gitignore

This file was deleted.

24 changes: 0 additions & 24 deletions QA/README.md

This file was deleted.

68 changes: 0 additions & 68 deletions QA/common.py

This file was deleted.

21 changes: 0 additions & 21 deletions QA/dockermain.sh

This file was deleted.

88 changes: 0 additions & 88 deletions QA/minioonilike.py

This file was deleted.

16 changes: 0 additions & 16 deletions QA/rundocker.bash

This file was deleted.

Loading

0 comments on commit 1fca652

Please sign in to comment.