feat: use go1.16 and resources embedding (#235)

* feat: use go1.16 embedding for resources

We want to embed everything that can be easily embedded. We should, at a
minimum, replace the downloading of resources and bindata.

Ref: https://github.com/ooni/probe/issues/1367.

* fix: get rid of bindata and use go embed instead

* fix: start unbreaking some automatic tests

* fix: fetch resources as part of the mobile build

* fix: convert more stuff to go1.16

I still expect many breakages, but we'll fix them.

* fix: make the windows CI green

* fix: get resources before running QA

* fix: go1.16 uses modules by default

* hopefully fix all other outstanding issues

* fix(QA/telegram.py): add another DC IP address

* Apply suggestions from code review
This commit is contained in:
Simone Basso
2021-03-02 12:08:24 +01:00
committed by GitHub
parent c33af04e29
commit 322394fe63
51 changed files with 441 additions and 780 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
FROM golang:1.14-alpine
FROM golang:1.16-alpine
RUN apk add go git musl-dev iptables tmux bind-tools curl sudo python3
+1
View File
@@ -1,6 +1,7 @@
#!/bin/sh
set -ex
export GOPATH=/jafar/QA/GOPATH GOCACHE=/jafar/QA/GOCACHE GO111MODULE=on
go run ./internal/cmd/getresources
go build -v ./internal/cmd/miniooni
go build -v ./internal/cmd/jafar
sudo ./QA/$1.py ./miniooni
+1
View File
@@ -26,6 +26,7 @@ ALL_POP_IPS = (
"149.154.175.100",
"149.154.167.91",
"149.154.171.5",
"95.161.76.100",
)