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

FROSADO / onecloudriver / 33999521885
81%

Build:
DEFAULT BRANCH: main
Ran 05 Sep 2026 11:50PM UTC
Jobs 1
Files 60
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

05 Sep 2026 11:45PM UTC coverage: 81.328% (-0.3%) from 81.584%
33999521885

push

github

web-flow
feat(control): local Unix-socket HTTP/JSON control channel with /v1/info (Closes #147) (#148)

Add a local control channel so a second process (CLI, future UI) can talk
to the running mount without sharing its cache. The mount now listens on a
Unix socket inside the account cache directory and serves a versioned
HTTP/JSON API; this version publishes GET /v1/info (mount state, pid,
account, mountpoint, cache dir and effective config).

internal/control: HTTP server over a Unix socket (mode 0600, stale-socket
cleanup, graceful Close that unlinks the file) and a typed Go client whose
error handling maps dial failures to ErrNotRunning with errors.As instead
of string matching. The runtime daemon fields are owned by the server, so
a provider cannot spoof pid/startedAt/goVersion.

internal/fs: MountConfig.ControlSocket (default <cacheDir>/control.sock)
and start/stop of the server in fs.Mount, including the signal path that
exits via os.Exit.

cmd/onecloudriver: mount --control-socket flag ('off' disables; any path
overrides; otherwise derived from the final --cache-dir).

docs: SOCKET-API.md documents the published endpoint, schema, examples and
socket lifecycle; MANUAL (en/es) and man pages reference the channel and the
new flag.

Tests: unit tests for the server (info, 404/405, permissions, stale socket,
close, bind error) and client (success, not-running via ENOENT/ECONNREFUSED,
404/500, generic transport error) with no sleeps; fs provider coverage.
Coverage internal/control 82.2%, internal/fs provider 100%.

173 of 238 new or added lines in 5 files covered. (72.69%)

6407 of 7878 relevant lines covered (81.33%)

3099.05 hits per line

Uncovered Changes

Lines Coverage ∆ File
26
41.72
-3.12% internal/fs/mount.go
17
84.11
internal/control/server.go
13
79.03
internal/control/client.go
9
37.58
-1.88% cmd/onecloudriver/mount.go
Jobs
ID Job ID Ran Files Coverage
1 33999521885.1 05 Sep 2026 11:50PM UTC 60
81.33
GitHub Action Run
Source Files on build 33999521885
  • Tree
  • List 60
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 4229df0d on github
  • Prev Build on main (#33991672405)
  • Next Build on main (#34025598702)
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