• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ooni / probe-engine / 337
83%
master: 86%

Build:
Build:
LAST BUILD BRANCH: release/0.23.0
DEFAULT BRANCH: master
Ran 04 Dec 2019 11:56AM UTC
Jobs 1
Files 46
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Dec 2019 11:53AM UTC coverage: 83.348% (+0.2%) from 83.125%
337

Pull #152

travis-ci

web-flow
go.mod go.sum: use latest dependencies for psiphon

I have obtained the dependencies used by psiphon v2.0.9 (the latest
stable release as of this writing) by doing the following:

1. `git clone https://github.com/Psiphon-Labs/psiphon-tunnel-core`

2. `cd psiphon-tunnel-core`

3. `go mod init`

This has given me a `go.mod` file using the dependencies used
by such specific version of Psiphon. Note that the `go.mod` has
been computed by `go mod init` from `./vendor/vendor.json`.

Once I had both our `go.mod` and such `go.mod`, I used the
following script to get what versions of our dependencies were
older than the versions used by such version of Psiphon:

```Python

import distutils.version
import sys

def slurp(path):
    deps = {}
    with open(path, "r") as filep:
        for line in filep:
            if not line.startswith("\t"):
                continue
            line = line.strip()
            if "// indirect" in line:
                index = line.find("// indirect")
                line = line[:index]
                line = line.strip()
            name, version = line.strip().split()
            deps[name] = version
    return deps

def main():
    if len(sys.argv) != 3:
        sys.exit("usage: %s /our/go.mod /their/go.mod" % sys.argv[0])
    ourdict = slurp(sys.argv[1])
    theirdict = slurp(sys.argv[2])
    for key in theirdict:
        if key not in ourdict:
            continue
        ourver = distutils.version.LooseVersion(ourdict[key])
        theirver = distutils.version.LooseVersion(theirdict[key])
        if theirver <= ourver:
            continue
        print(key, theirdict[key], ourdict[key])

if __name__ == "__main__":
    main()
```

I have then pinned the few packages that needed it to the version
that was used by Psiphon. For all other packages, no action was
required, because their version was either equal or newer in our
code and everything has been working fine thus far.

Albeit very manual, the procedure described in th... (continued)
Pull Request #152: go.mod go.sum: update all dependencies (and specifically psiphon's)

1867 of 2240 relevant lines covered (83.35%)

0.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 337.1 (CGO_ENABLED=0 GO111MODULE=on) 04 Dec 2019 11:56AM UTC 0
83.35
Travis Job 337.1
Source Files on build 337
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #337
  • Pull Request #152
  • PR Base - master (#333)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc