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

enbility / ship-go / 46401285140
92%

Build:
DEFAULT BRANCH: dev
Ran 30 Nov 2026 10:38AM 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

30 Nov 2026 10:34AM UTC coverage: 92.497% (+0.08%) from 92.42%
46401285140

push

github

web-flow
fix(hub): reset connection backoff when a remote service is registered (#110)

`RegisterRemoteService` expresses fresh connection intent, but the
per-SKI retry state survived it: the attempt counter kept whatever level
earlier failures had reached, so the next attempt was deferred by the
`10-20s` range even though the caller had just asked for the connection.

A pending delay timer made it worse. `UnregisterRemoteService` removed
the attempt counter but left the timer in place, and with it
`connectionAttemptRunning` set to `true`.
`coordinateConnectionInitations` returns early in that state, so the
following registration's attempt was swallowed until the stale timer
fired.

This is visible from an application waiting for a device connection:
evcc's device configuration test aborts after a fixed timeout, and once
the backoff had escalated it never saw a connection again
([evcc-io/evcc#25058](https://github.com/evcc-io/evcc/discussions/25058#discussioncomment-18123767)
— delays of 14.2s, 12.9s and 10.2s against a 10s window, with the
connection succeeding immediately after a restart).

Changes:

- `RegisterRemoteService` cancels a pending delay timer and drops the
attempt counter before triggering discovery
- `UnregisterRemoteService` cancels the delay timer as well, so it no
longer leaves the attempt flag set

The automatic retry behaviour on repeated failures is unchanged — only
an explicit register/unregister resets it.

Test `Test_RegisterRemoteServiceResetsBackoff` covers the reset; it
fails on `dev` without the change. Full `hub` package passes.

---
🤖 Generated with [Claude Code](https://claude.com/claude-code)

4 of 4 new or added lines in 1 file covered. (100.0%)

1 existing line in 1 file now uncovered.

5178 of 5598 relevant lines covered (92.5%)

13212.69 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
91.86
1.16% mdns/zeroconf.go
Jobs
ID Job ID Ran Files Coverage
1 46401285140.1 30 Nov 2026 10:38AM UTC 46
92.5
GitHub Action Run
Source Files on build 46401285140
  • Tree
  • List 46
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #46401285140
  • e5185360 on github
  • Prev Build on dev (#46401173626)
  • Next Build on dev (#46474885488)
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