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

rollandf / spectrum-x-operator / 27548882035
29%
main: 32%

Build:
Build:
LAST BUILD BRANCH: vf-follow
DEFAULT BRANCH: main
Ran 15 Jun 2026 01:19PM UTC
Jobs 1
Files 17
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 Jun 2026 01:15PM UTC coverage: 29.486% (+0.1%) from 29.36%
27548882035

push

github

rollandf
feat: propagate PF NO-CARRIER to VF representors (VF state follow)

When an upstream switch port goes down the PF correctly shows NO-CARRIER
but the VF representor and the VF inside the pod remain UP, causing
workloads to transmit silently into a dead uplink.

Add a background monitor (internal/vfstatefollower) that polls PF
carrier state every second via netlink OperState. When all PFs of a
RailTopology report NO-CARRIER, the active VF representors (those whose
VF is inside a pod) are set admin-down, propagating the link-down event
into the pod. Carrier recovery on any PF restores the representors.

- Add LinkSetDown and IsLinkNoCarrier to the NetlinkLib interface
- Use sriovnet to enumerate VFs and resolve representor names
- Add VFStateFollow *bool field to SpectrumXRailPoolConfigSpec
  (nil/true = enabled, &false = disabled per CR)
- Wire the monitor into the flowscontroller binary
- 15 unit tests covering carrier logic, rep state transitions,
  node selector filtering, and the VFStateFollow opt-out

Signed-off-by: Fred Rolland <frolland@nvidia.com>

56 of 114 new or added lines in 3 files covered. (49.12%)

36 existing lines in 3 files now uncovered.

470 of 1594 relevant lines covered (29.49%)

0.35 hits per line

Uncovered Changes

Lines Coverage ∆ File
43
56.57
0.0% internal/vfstatefollower/monitor.go
8
0.0
0.0% cmd/flowscontroller/main.go
7
0.0
0.0% pkg/lib/netlink/netlink.go

Coverage Regressions

Lines Coverage ∆ File
17
0.0
0.0% pkg/lib/netlink/netlink.go
16
0.0
0.0% cmd/flowscontroller/main.go
3
0.0
0.0% api/v1alpha2/spectrumxrailpoolconfig_types.go
Jobs
ID Job ID Ran Files Coverage
1 27548882035.1 15 Jun 2026 01:19PM UTC 17
29.49
GitHub Action Run
Source Files on build 27548882035
  • Tree
  • List 17
  • Changed 2
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27548882035
  • ef225889 on github
  • Prev Build on vf-follow (#27547633824)
  • 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