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

FROSADO / onecloudriver / 32078345928
78%
main: 78%

Build:
Build:
LAST BUILD BRANCH: issue-49-keyring-key-helpers
DEFAULT BRANCH: main
Ran 17 Aug 2026 11:03PM UTC
Jobs 1
Files 47
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

17 Aug 2026 10:57PM UTC coverage: 78.169% (-0.09%) from 78.262%
32078345928

Pull #100

github

FROSADO
feat(cli): add manual sync command (onecloudriver sync)

Adds a one-shot delta poll independent of the mount's background interval:
`onecloudriver sync` resolves the account, opens its persisted cache
(BoltDB + content) read/write, runs a single delta cycle via the existing
DeltaSync machinery and prints how many changes were applied.

- internal/fs/delta.go: pollAndApply now returns the applied count (the
  old bool was redundant with err); new DeltaSync.PollOnce performs one
  cycle reusing pollAndApply and persists the delta link + dirty inodes
  exactly like a background cycle.
- cmd/onecloudriver/sync.go: new command (registered in main.go) with the
  standard -a/--account preamble. A running mount holds the cache lock, so
  it fails with a clear double-mount message and a tip instead of corrupting
  the DB.
- Tests: PollOnce with mocked PollDelta (count, applied items, persisted
  link, exactly one poll) and end-to-end CLI test with mocked Graph delta;
  the 3 existing pollAndApply tests updated to the new signature.
- Docs: MANUAL.md/.es and man pages (+.es) document the command.

Closes #73
Pull Request #100: feat(cli): add manual sync command (onecloudriver sync)

58 of 79 new or added lines in 3 files covered. (73.42%)

4422 of 5657 relevant lines covered (78.17%)

3137.81 hits per line

Uncovered Changes

Lines Coverage ∆ File
11
73.17
cmd/onecloudriver/sync.go
10
83.33
-1.67% internal/fs/delta.go
Jobs
ID Job ID Ran Files Coverage
1 32078345928.1 17 Aug 2026 11:03PM UTC 47
78.17
GitHub Action Run
Source Files on build 32078345928
  • Tree
  • List 47
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #100
  • PR Base - main (#32005239988)
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