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

enbility / ship-go / 46319208498
92%

Build:
DEFAULT BRANCH: dev
Ran 29 Nov 2026 10:45PM UTC
Jobs 1
Files 46
Run time 1min
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

29 Nov 2026 10:41PM UTC coverage: 92.375% (-0.7%) from 93.091%
46319208498

push

github

web-flow
Fix mdns deadlock and unreported read/write pump panic (#124)

Three robustness fixes found while chasing failures on a real
installation. No API changes, no
behaviour change on the happy path.

### 1. `fix(mdns): keep the browse listener off the provider lock to
break the Avahi deadlock`

Issue observed on stopping and starting shippairing announcements in a
controlbox service multiple times. Sometimes it works flawlessly,
sometimes already the seconds reannounce is not happening, the avahi
service seems to hang.

`AvahiProvider` holds `a.mux` across blocking D-Bus round trips while
the browse stream is drained
by a listener that needs the same lock. On a busy network the browse
channel fills up, the listener
blocks on `a.mux`, and the lock holder blocks on a D-Bus reply that can
no longer be processed.
Nothing recovers. This takes the browse listener out of that cycle, for
*all* `a.mux` holders —
`Start`, `Shutdown`, `attemptReconnect`, `AnnounceService` and
`UnannounceService`.

Verified against a real `avahi-daemon`: 300 announce/unannounce rounds
under browse pressure from
25 external `avahi-publish` instances. Without the fix 3/3 runs wedge
(0–45 rounds, 120 s watchdog
never recovers), with the fix 3/3 runs complete 300/300. Mock-based
regression test added.

### 2. `fix(ws): report a recovered read pump panic so the connection is
torn down`

The `recover` in `readShipPump` closed the socket and stopped there. But
`ReportConnectionError` is
the only route from the ws layer to `ShipConnection`, `CloseConnection`
is the only caller of
`Hub.HandleConnectionClosed`, and that is the only caller of
`UnregisterConnectionIfMatch` — so the
connection was gone on the wire but still registered in the hub:
`isSkiConnected` stayed `true`, the
SKI was never dialled again, and incoming connections for it were
dropped right after the handshake
until a restart. Issue is seen several times in a certification run logs
of an EMS service, triggered by a `spine-go` p... (continued)

26 of 26 new or added lines in 3 files covered. (100.0%)

5 existing lines in 3 files now uncovered.

5161 of 5587 relevant lines covered (92.38%)

13169.06 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
95.75
-0.42% mdns/avahi.go
2
90.12
-2.23% mdns/zeroconf.go
1
86.67
-1.52% hub/hub_shipconnection.go
Jobs
ID Job ID Ran Files Coverage
1 46319208498.1 29 Nov 2026 10:45PM UTC 46
92.38
GitHub Action Run
Source Files on build 46319208498
  • Tree
  • List 46
  • Changed 46
  • Source Changed 3
  • Coverage Changed 46
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #46319208498
  • 3a53ff5d on github
  • Prev Build on dev (#43866738818)
  • Next Build on dev (#46401173626)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc