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

jmclong / azuredisk-csi-driver / 27848737582
76%
main_v2: 70%

Build:
Build:
LAST BUILD BRANCH: dev/jlong/fair-lock
DEFAULT BRANCH: main_v2
Ran 19 Jun 2026 09:18PM UTC
Jobs 1
Files 34
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

19 Jun 2026 09:13PM UTC coverage: 75.54% (-0.4%) from 75.907%
27848737582

push

github

jmclong
feat(azuredisk): skip detach for already-unattached disk on ControllerUnpublishVolume

During mass detach (e.g. when many spot/preemptible nodes are deleted at
once), ControllerUnpublishVolume calls DetachDisk per volume, which
serializes on the global VMManagementType mutex and can stall the
controller.

Add a fast-path that does a cheap disk read first: if the disk no longer
exists (HTTP 404) or exists but has no owning VM (ManagedBy and
ManagedByExtended both empty), the volume is already detached from every
node, so we return success without taking the node-centric DetachDisk
path. checkDiskExists honors GetDisk throttling and a timeout, so any read
error simply falls through to the normal detach.

The behavior is gated by a new CLI flag --skip-detach-for-unattached-disk
(default true). Adds unit tests for diskHasNoOwner and isDiskNotFoundError.

11 of 34 new or added lines in 3 files covered. (32.35%)

8 existing lines in 2 files now uncovered.

4688 of 6206 relevant lines covered (75.54%)

11.28 hits per line

Uncovered Changes

Lines Coverage ∆ File
23
68.04
-1.27% pkg/azuredisk/controllerserver.go

Coverage Regressions

Lines Coverage ∆ File
5
92.55
-1.2% pkg/azuredisk/migration_monitor.go
3
65.45
0.08% pkg/azuredisk/azuredisk.go
Jobs
ID Job ID Ran Files Coverage
1 27848737582.1 19 Jun 2026 09:18PM UTC 34
75.54
GitHub Action Run
Source Files on build 27848737582
  • Tree
  • List 34
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 29235533 on github
  • Prev Build on master (#27848180369)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc