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

kubeovn / kube-ovn / 25909114514
26%

Build:
DEFAULT BRANCH: master
Ran 15 May 2026 08:56AM UTC
Jobs 1
Files 211
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

15 May 2026 08:51AM UTC coverage: 25.036% (+0.06%) from 24.976%
25909114514

push

github

web-flow
fix(ipam): roll back partial state when random allocation fails (#6738)

getV4RandomAddress and getV6RandomAddress mutated the per-pool and
per-subnet IP counters before calling GetStaticMac. When the MAC check
failed (static MAC conflict, gateway-MAC collision) they returned
without undoing those mutations, leaking the IP out of the pool. The
same gap existed in getDualRandomAddress when the v6 half failed after
the v4 half had already succeeded.

Split releaseAddr into single-family releaseV4Addr and releaseV6Addr
helpers so rollback paths can undo only the half they allocated. For
the dual-stack case, only roll back the IPv4 lease when this call
actually allocated it — fast-path cache hits must be left intact so
retries do not silently revoke a working pre-existing lease.

Add tests covering the random-address MAC conflict rollback, dual-stack
v6 failure rollback, and the symmetric cases where the nic already
holds a working v4/v6 lease that must survive the failure.

Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

96 of 102 new or added lines in 1 file covered. (94.12%)

14318 of 57189 relevant lines covered (25.04%)

0.29 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
91.7
1.55% pkg/ipam/subnet.go
Jobs
ID Job ID Ran Files Coverage
1 25909114514.1 15 May 2026 08:56AM UTC 211
25.04
GitHub Action Run
Source Files on build 25909114514
  • Tree
  • List 211
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 3ade01c8 on github
  • Prev Build on master (#25902397304)
  • Next Build on master (#25917468877)
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