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

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

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

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.

4688 of 6206 relevant lines covered (75.54%)

11.28 hits per line

Source Files on job 27848737582.1
  • Tree
  • List 34
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 27848737582
  • 29235533 on github
  • Prev Job for on joshualong/detach-fast-path (#27848180369.1)
  • 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