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

kubeovn / kube-ovn / 31781653975
32%

Build:
DEFAULT BRANCH: master
Ran 14 Aug 2026 07:55AM UTC
Jobs 1
Files 235
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

14 Aug 2026 07:52AM UTC coverage: 32.472% (+0.09%) from 32.386%
31781653975

push

github

web-flow
fix: reconcile terminating OVN EIP/FIP/DNAT/SNAT from the add handler on restart (#7220)

OVN EIP/FIP/DNAT/SNAT deletion cleanup only runs in handleUpdateOvn*. On restart
the informer re-lists existing objects and fires only AddFunc; with resync=0 a
terminating object lands in the add queue, hits the already-ok short-circuit and
never removes its finalizer. Route terminating objects to the update queue via a
new enqueueUpdateIfTerminatingWithFinalizer helper that mirrors the OVN update
handlers: terminating objects without a finalizer are skipped (cleanup done,
awaiting apiserver deletion) to avoid a double delete. enqueueAddOvnEip keeps its
requeueRouterLBRulesForEip side effect regardless.

test: verify OVN enqueue-add routing for terminating objects

Cover live->add, terminating+finalizer->update, terminating-without-finalizer->skip
for OvnEip/OvnFip/OvnDnatRule/OvnSnatRule via a shared assertEnqueueAddRoutingWithFinalizer.

refactor: reuse terminating-route helper in OVN update handlers

The four enqueueUpdateOvn* deletion branches duplicated the terminating->update-queue
logic now provided by enqueueUpdateIfTerminatingWithFinalizer. Reuse the helper to
remove the duplication; the enqueue log unifies to V(3) "enqueue update to clean".

test: cover router LB rule requeue for a terminating OVN eip

enqueueAddOvnEip must still requeue an EIP's RouterLBRules when the EIP is terminating;
the side effect runs before the terminating route returns.

Signed-off-by: zbb88888 <jmdxjsjgcxy@gmail.com>

32 of 36 new or added lines in 5 files covered. (88.89%)

6 existing lines in 5 files now uncovered.

20972 of 64585 relevant lines covered (32.47%)

0.38 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
1.52
1.52% pkg/controller/ovn_dnat.go
1
7.23
1.83% pkg/controller/ovn_eip.go
1
3.45
1.73% pkg/controller/ovn_fip.go
1
1.94
1.94% pkg/controller/ovn_snat.go

Coverage Regressions

Lines Coverage ∆ File
2
61.61
-0.62% pkg/ovs/ovn-nb-bfd.go
1
1.52
1.52% pkg/controller/ovn_dnat.go
1
7.23
1.83% pkg/controller/ovn_eip.go
1
3.45
1.73% pkg/controller/ovn_fip.go
1
1.94
1.94% pkg/controller/ovn_snat.go
Jobs
ID Job ID Ran Files Coverage
1 31781653975.1 14 Aug 2026 07:55AM UTC 235
32.47
GitHub Action Run
Source Files on build 31781653975
  • Tree
  • List 235
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 6eb352a1 on github
  • Prev Build on master (#31758366844)
  • Next Build on master (#31856909690)
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