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

kubeovn / kube-ovn / 23406077511
27%

Build:
DEFAULT BRANCH: master
Ran 22 Mar 2026 03:20PM UTC
Jobs 1
Files 205
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

22 Mar 2026 03:18PM UTC coverage: 23.723% (+0.03%) from 23.695%
23406077511

push

github

web-flow
fix(controller): fix variable shadowing in cleanDuplicatedChassis (#6496)

* fix(controller): fix variable shadowing in cleanDuplicatedChassis that prevented duplicate chassis cleanup

L732 used := instead of = for err, creating a new block-scoped variable
that shadowed the outer err (always nil). This caused:
1. The error log at L735 to always print nil
2. errors.Is(nil, ErrOneNodeMultiChassis) to always be false, so
   DeleteChassisByHost was never called
3. The function to always return nil, defeating retryDelDupChassis retry

Also fixed: after successful deletion, return nil instead of the original
ErrOneNodeMultiChassis error to avoid unnecessary retries.

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

* test(controller): add unit tests for cleanDuplicatedChassis

Cover all branches: single chassis (no-op), multi-chassis cleanup
success, cleanup failure, and non-multi-chassis error propagation.
Also add MockSbClient to fake controller test infrastructure.

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

* chore(controller): fix import order in node_test.go

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

---------

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

11 of 11 new or added lines in 1 file covered. (100.0%)

13086 of 55161 relevant lines covered (23.72%)

0.28 hits per line

Jobs
ID Job ID Ran Files Coverage
1 23406077511.1 22 Mar 2026 03:20PM UTC 205
23.72
GitHub Action Run
Source Files on build 23406077511
  • Tree
  • List 205
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • c84be750 on github
  • Prev Build on master (#23405076297)
  • Next Build on master (#23421236360)
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