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

FROSADO / onecloudriver / 31970991424
78%

Build:
DEFAULT BRANCH: main
Ran 16 Aug 2026 08:40PM 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

16 Aug 2026 08:35PM UTC coverage: 77.828% (+0.09%) from 77.735%
31970991424

push

github

web-flow
feat(fs): optimistic concurrency (If-Match) on uploads with conflict preservation (#91)

* feat(fs): optimistic concurrency (If-Match) on uploads with conflict preservation

Add an etag parameter to UploadItem/UploadItemStream (sent as an
If-Match header) and a typed ErrPreconditionFailed for HTTP 412. The
UploadManager passes the inode ETag and, on a 412 conflict, applies a
"local wins, preserve remote" policy: the remote item is renamed with a
_conflict_<timestamp> suffix and the local content is re-uploaded under
the original name.

Closes #16

* fix(fs): overwrite existing files by ID with the correct content URL

Editing an existing file built the upload URL as
/items/<fileId>:/<name>:/content, which addresses a child named <name>
inside a folder — but <fileId> is a file, so Graph returned 404
itemNotFound and the upload was abandoned. Add OverwriteItem and
OverwriteItemStream that target the item's own /content (and
createUploadSession) endpoint, and use them for non-local files.

Closes #92

106 of 126 new or added lines in 4 files covered. (84.13%)

2 existing lines in 1 file now uncovered.

4093 of 5259 relevant lines covered (77.83%)

2821.33 hits per line

Uncovered Changes

Lines Coverage ∆ File
9
84.14
0.76% internal/fs/upload_manager.go
9
82.94
-0.9% internal/graph/upload.go
2
36.54
0.0% cmd/onecloudriver/upload.go

Coverage Regressions

Lines Coverage ∆ File
2
77.82
-0.7% internal/fs/content_cache.go
Jobs
ID Job ID Ran Files Coverage
1 31970991424.1 16 Aug 2026 08:39PM UTC 46
77.83
GitHub Action Run
Source Files on build 31970991424
  • Tree
  • List 46
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • edbaf538 on github
  • Prev Build on main (#31961261219)
  • Next Build on main (#31972252471)
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