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

ooni / probe-cli / 6304159239
72%

Build:
DEFAULT BRANCH: master
Ran 25 Sep 2023 07:55PM UTC
Jobs 1
Files 509
Run time 14s
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

25 Sep 2023 07:49PM UTC coverage: 81.599% (-0.006%) from 81.605%
6304159239

push

github

web-flow
refactor(enginenetx): make LookupTactics async (#1300)

Rather than waiting for LookupTactics to complete, make it async and let
it stream the tactics back to the caller. This design allows us to start
connecting while DNS lookups are still in progress when we have
configured beacons for specific hosts. In turn, this means we could
perform more operations in the same unit of time, by overalapping some
DNS lookups and TCP+TLS dials. Additionally, the new design would also
work quite well with a DNS resolver that awaits for additional responses
after the first one and returns all of them as tactics.

While there, recognize that the HTTPSDialer code and the code in the
related structs was a bit more complex than it should be. We don't need
to explicitly honor the context when moving data between goroutines as
long as the writer goroutines write until completion and then close the
channel, and as long as reader goroutines read until either the channel
is closed (when there's a single writer) or all the possible writers
have completed (otherwise). Networking code and networking-like code is
the only code that MAY block and for which we really need a context.

With the new simplified design, all the goroutines will join before
`DialTLSContext` returns, hence we don't need anymore a `sync.WaitGroup`
to make sure we're not leaking any goroutine in this code.

Part of https://github.com/ooni/probe/issues/2531

84 of 84 new or added lines in 4 files covered. (100.0%)

23698 of 29042 relevant lines covered (81.6%)

23.74 hits per line

Jobs
ID Job ID Ran Files Coverage
1 0 - 6304159239.1 25 Sep 2023 07:55PM UTC 0
81.6
GitHub Action Run
Source Files on build 6304159239
Detailed source file information is not available for this build.
  • Back to Repo
  • 1af54cff on github
  • Prev Build on master (#6300067276)
  • Next Build on master (#6305154612)
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