|
Ran
|
Jobs
1
|
Files
107
|
Run time
1min
|
Badge
README BADGES
|
push
github
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
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 8 |
68.2 |
0.31% | pkg/host/internal/bridge/ovs/ovs.go |
| 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 |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 21246933371.1 | 107 |
62.95 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|