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

tomdesair / tus-java-server / 32178860231
95%

Build:
DEFAULT BRANCH: master
Ran 18 Aug 2026 07:53PM UTC
Jobs 1
Files 156
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

18 Aug 2026 07:50PM UTC coverage: 94.747% (-0.06%) from 94.81%
32178860231

push

github

web-flow
feat: implement NFS- and SMB-safe lease file locking (LeaseFileLockingService) (#119)

* feat: implement NFS- and SMB-safe lease file locking (LeaseFileLockingService)

- Implement LeaseFileLockingService using atomic directory creation and TTL-based lease metadata
- Implement LeaseFileUploadLock with background heartbeat watchdog renewal
- Decouple DiskStorageService upload metadata I/O from kernel FileLock
- Set LeaseFileLockingService as default in TusFileUploadService.withStoragePath
- Calibrate lock retry budget to 40 iterations (8.0s) for NFS/SMB attribute caching
- Add comprehensive unit tests, integration tests (Tus 1.0.0 & RUFH), and legacy regression tests
- Add docs/DISK_BASED_LOCKING.md and update README.md, docs/LOCKING.md, and CHANGELOG.md

* test: add comprehensive branch and error case coverage for lease file locking

* refactor: reduce constructors in LeaseFileUploadLock to 2 and streamline lease creation

* tests: lower required coverage

* fix(locking): mitigate TOCTOU races in LeaseFileLockingService and S3LockingService

* docs: add TOCTOU race mitigation and atomic directory staging to DISK_BASED_LOCKING.md

* feat: Code review

* feat: make lock acquisition retries configurable via withMaxLockRetries

* fix: Code formatting

2222 of 2496 branches covered (89.02%)

Branch coverage included in aggregate %.

295 of 311 new or added lines in 8 files covered. (94.86%)

4939 of 5062 relevant lines covered (97.57%)

6.5 hits per line

Uncovered Changes

Lines Coverage ∆ File
14
92.0
src/main/java/me/desair/tus/server/upload/disk/LeaseFileLockingService.java
1
91.42
-0.25% src/main/java/me/desair/tus/server/upload/azure/AzureBlobStorageService.java
1
98.77
src/main/java/me/desair/tus/server/upload/disk/LeaseFileUploadLock.java
Jobs
ID Job ID Ran Files Coverage
1 32178860231.1 18 Aug 2026 07:53PM UTC 312
78.89
GitHub Action Run
Source Files on build 32178860231
  • Tree
  • List 156
  • Changed 95
  • Source Changed 6
  • Coverage Changed 95
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #32178860231
  • 6489e431 on github
  • Prev Build on master (#31942537504)
  • Next Build on master (#32180999040)
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