• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Warning: This build has drifted.
The coverage report for this pull request build may be inaccurate because its base commit is no longer the HEAD of its target branch.
This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

    • Learn more: For more information on this, see Tracking coverage changes for pull request builds.
    • Fix now: For a quick fix, rebase this PR at GitHub. Your next report should be accurate.
    • Prevent going forward: To avoid this issue with future PRs, see these Recommended CI Configurations.
New Repo Setting:
INCLUDE COVERAGE % WITH WARNINGS ABOUT DRIFTED BUILDS?

Enabling this setting will include a (potentially inaccurate) coverage % with warning messages in status updates for drifted builds.

Adjust setting

FROSADO / onecloudriver / 32695707953
80%
main: 81%

Build:
Build:
LAST BUILD BRANCH: feat(service)--Add-a-restart-command-to-service-command
DEFAULT BRANCH: main
Ran 24 Aug 2026 06:08AM UTC
Jobs 1
Files 53
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

24 Aug 2026 06:02AM UTC coverage: 80.483% (-0.2%) from 80.705%
32695707953

Pull #127

github

FROSADO
feat(obs): lightweight observability (JSON logs + debug expvar/pprof)

Add dependency-free runtime introspection and contained logging for the
mount daemon (issue #74):

- --log-json global flag: emit structured JSON logs to stderr (systemd/
  journal friendly) instead of the on-disk file.
- mount --debug / --debug-addr: start an opt-in expvar + pprof HTTP
  server on the loopback interface (127.0.0.1:6060 by default) and raise
  the log level to debug.
- New internal/obs package registers live counters (cache, content cache,
  uploads, delta) as lazy expvar.Func and serves /debug/vars + /debug/pprof
  with a bounded ReadHeaderTimeout.
- internal/fs: UploadManager exposes completed/failed/inFlight counters;
  DeltaSync counters moved to atomic.Uint64 with a Counters() accessor so
  the expvar scrape does not race the delta loop; MountConfig gains
  DebugAddr wired in fs.Mount.
- internal/auth/logging.go: rotate the on-disk log by size via lumberjack
  (10MB, at most 5 gzipped backups, 30 days) so it stops growing unbounded
  (user report on 0.1.3). Default level was already Info.
- Docs: MANUAL.md and the EN/ES man pages gain an Observability section.

Verified: make build && make test-unit-short && make lint-all plus the
security lint; all new tests (obs server, rotation config, CLI flags,
upload counters) pass under -race.

Closes #74
Pull Request #127: feat(obs): lightweight observability (JSON logs + debug expvar/pprof)

55 of 96 new or added lines in 7 files covered. (57.29%)

2 existing lines in 1 file now uncovered.

5703 of 7086 relevant lines covered (80.48%)

2996.83 hits per line

Uncovered Changes

Lines Coverage ∆ File
17
44.48
-2.09% internal/fs/mount.go
12
40.82
-6.55% cmd/onecloudriver/main.go
8
39.46
-0.54% cmd/onecloudriver/mount.go
4
84.47
-0.83% internal/fs/delta.go

Coverage Regressions

Lines Coverage ∆ File
2
90.74
-3.7% internal/graph/children.go
Jobs
ID Job ID Ran Files Coverage
1 32695707953.1 24 Aug 2026 06:08AM UTC 53
80.48
GitHub Action Run
Source Files on build 32695707953
  • Tree
  • List 53
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #127
  • PR Base - main (#32693320680)
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