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

FROSADO / onecloudriver / 33999112520
81%
main: 81%

Build:
Build:
LAST BUILD BRANCH: feat(service)--Add-a-restart-command-to-service-command
DEFAULT BRANCH: main
Ran 05 Sep 2026 11:40PM 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:35PM UTC coverage: 81.29% (-0.3%) from 81.584%
33999112520

Pull #148

github

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

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%.
Pull Request #148: feat(control): local Unix-socket HTTP/JSON control channel with /v1/info

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

2 existing lines in 1 file now uncovered.

6404 of 7878 relevant lines covered (81.29%)

2980.3 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

Coverage Regressions

Lines Coverage ∆ File
2
84.47
-0.65% internal/fs/delta.go
Jobs
ID Job ID Ran Files Coverage
1 33999112520.1 05 Sep 2026 11:40PM UTC 60
81.29
GitHub Action Run
Source Files on build 33999112520
  • Tree
  • List 60
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #148
  • PR Base - main (#33991672405)
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