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

Mellanox / sriov-network-operator / 21246933371
63%
master: 63%

Build:
Build:
LAST BUILD BRANCH: network-operator-26.1.x
DEFAULT BRANCH: master
Ran 22 Jan 2026 11:45AM UTC
Jobs 1
Files 107
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 Jan 2026 11:35AM UTC coverage: 62.951% (+0.5%) from 62.497%
21246933371

push

github

e0ne
fix: getCurrentBridgeState to return all uplinks for grouped bridges

The getCurrentBridgeState() function was only processing the first
uplink (Uplinks[0]) and ignoring the rest. This caused bridges with
multiple uplinks (created via groupingPolicy: all) to constantly
reconfigure because the current state comparison always showed a
mismatch.

Additionally, NeedToUpdateBridges was comparing the entire Bridges
struct including the GroupingPolicy field. However, GroupingPolicy is
a policy directive used during configuration and is not stored in OVS,
so it will never appear in the discovered status. This caused another
source of constant mismatch detection.

Changes:
- Modify getCurrentBridgeState() to iterate through all uplinks in
  knownConfig.Uplinks instead of only processing the first one
- Modify NeedToUpdateBridges to only compare OVS configurations,
  ignoring the GroupingPolicy field
- Add test cases for bridge with multiple uplinks
- Add test case for partial uplinks when some interfaces are missing
- Add test case for groupingPolicy difference being ignored

Fixes infinite reconciliation loop where bridge ports kept being
removed and re-added on every sync cycle.

Signed-off-by: Alexander Maslennikov <amaslennikov@nvidia.com>
(cherry picked from commit c1c988791)

32 of 40 new or added lines in 2 files covered. (80.0%)

813 existing lines in 6 files now uncovered.

9396 of 14926 relevant lines covered (62.95%)

0.7 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
8
68.2
0.31% pkg/host/internal/bridge/ovs/ovs.go

Uncovered Existing Lines

Lines Coverage ∆ File
33
75.38
0.68% pkg/plugins/generic/generic_plugin.go
91
79.54
-0.05% api/v1/helper.go
127
68.2
0.31% pkg/host/internal/bridge/ovs/ovs.go
176
38.73
1.59% pkg/host/mock/mock_host.go
177
64.07
0.72% pkg/host/internal/sriov/sriov.go
209
53.09
0.51% pkg/helper/mock/mock_helper.go
Jobs
ID Job ID Ran Files Coverage
1 21246933371.1 22 Jan 2026 11:45AM UTC 107
62.95
GitHub Action Run
Source Files on build 21246933371
  • Tree
  • List 107
  • Changed 10
  • Source Changed 7
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21246933371
  • e6afa2fd on github
  • Prev Build on network-operator-26.1.x (#21241555526)
  • Next Build on network-operator-26.1.x (#21253833966)
  • 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