Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: latest upper.io/db and pin probe-engine #116

Merged
merged 1 commit into from
Feb 26, 2020

Conversation

bassosimone
Copy link
Contributor

We're specifically pinning a commit of probe-engine that is using
MK v0.10.11, so that we address the following issues:

  1. we use db-ip.com for the country database as opposed to using
    the increasingly stale MaxMind database (see probe-assets: use db-ip.com IP for country DB probe-engine#334)

  2. we're using an implementation of WhatsApp that does not suffer
    from the super-old CIDR bug (see WhatsApp false positives due to obsolete CIDR probe-engine#341)

  3. we're not linking to libcurl anymore on Windows and Linux, thanks to
    this new version of MK where we can optionally disable libcurl; we are
    still linking to libcurl on macOS, but that has no impact on the binary
    size since on macOS libcurl is part of the system

This should be enough, from my side to bless a new release of the
probe-cli (see ooni/probe#1028).

We're specifically pinning a commit of probe-engine that is using
MK v0.10.11, so that we address the following issues:

1. we use db-ip.com for the country database as opposed to using
the increasingly stale MaxMind database (see ooni/probe-engine#334)

2. we're using an implementation of WhatsApp that does not suffer
from the super-old CIDR bug (see ooni/probe-engine#341)

3. we're not linking to libcurl anymore on Windows and Linux, thanks to
this new version of MK where we can optionally disable libcurl; we are
still linking to libcurl on macOS, but that has no impact on the binary
size since on macOS libcurl is part of the system

This should be enough, from my side to bless a new release of the
probe-cli (see ooni/probe#1028).
Copy link
Contributor Author

@bassosimone bassosimone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have explained the PR below:

@@ -1,2 +1,4 @@
/dist
/ooniprobe
/ooniprobe.exe
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Send less useless context to Docker daemon

@@ -1,2 +1,2 @@
FROM openobservatory/mk-alpine:latest
FROM openobservatory/mk-alpine:20200226
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reproducible builds

@@ -22,7 +22,7 @@ fi
if [ "$1" = "windows" ]; then
set -x
CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ \
CGO_ENABLED=1 GOOS=windows GOARCH=amd64 \
CGO_LDFLAGS_ALLOW='-fstack-.*' CGO_ENABLED=1 GOOS=windows GOARCH=amd64 \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now, sadly, we need to white list this flag to correctly link on Windows

@@ -48,7 +48,7 @@ elif [ "$1" = "release" ]; then
-C ./dist/macos/amd64 ooniprobe
shasum -a 256 ooniprobe_${v}_darwin_amd64.tar.gz >> ooniprobe_checksums.txt
$0 windows
tar -czf ooniprobe_${v}_windows_amd64.tar.gz ./dist/windows/amd64 \
tar -czf ooniprobe_${v}_windows_amd64.tar.gz LICENSE.md Readme.md \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While there, fix the distribution generation on Windows, which was broken

@bassosimone bassosimone merged commit f3b21f9 into master Feb 26, 2020
@bassosimone bassosimone deleted the feature/latestengine branch February 26, 2020 21:34
ainghazal pushed a commit to ainghazal/probe-cli that referenced this pull request Mar 8, 2022
We're specifically pinning a commit of probe-engine that is using
MK v0.10.11, so that we address the following issues:

1. we use db-ip.com for the country database as opposed to using
the increasingly stale MaxMind database (see ooni/probe-engine#334)

2. we're using an implementation of WhatsApp that does not suffer
from the super-old CIDR bug (see ooni/probe-engine#341)

3. we're not linking to libcurl anymore on Windows and Linux, thanks to
this new version of MK where we can optionally disable libcurl; we are
still linking to libcurl on macOS, but that has no impact on the binary
size since on macOS libcurl is part of the system

This should be enough, from my side to bless a new release of the
probe-cli (see ooni/probe#1028).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant