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

ooni / probe-engine / 336 / 1
83%
master: 86%

Build:
Build:
LAST BUILD BRANCH: release/0.23.0
DEFAULT BRANCH: master
Ran 04 Dec 2019 11:54AM UTC
Files 46
Run time 2s
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:49AM UTC coverage: 83.348%. Remained the same
CGO_ENABLED=0 GO111MODULE=on

push

travis-ci

bassosimone
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)

1867 of 2240 relevant lines covered (83.35%)

0.93 hits per line

Source Files on job 336.1 (CGO_ENABLED=0 GO111MODULE=on)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 265
  • Travis Job 336.1
  • d5568bac on github
  • Prev Job for CGO_ENABLED=0 GO111MODULE=on on issue/141 (#335.1)
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