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

SchSeba / sriov-network-operator-1 / 26826178027
64%
master: 64%

Build:
Build:
LAST BUILD BRANCH: devtask-d6444829-add-corerabbit-yaml-configuration-for-th
DEFAULT BRANCH: master
Ran 02 Jun 2026 02:36PM UTC
Jobs 1
Files 108
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

02 Jun 2026 02:23PM UTC coverage: 63.571% (-0.04%) from 63.61%
26826178027

push

github

SchSeba
fix(daemon): require a full drain before reboot escalation

A node can start with Drain_Required, which only triggers a partial drain for
SR-IOV workloads. If the daemon later detects that the same change also
requires a reboot, such as an RDMA subsystem mode change or firmware-related
update, it could observe DrainComplete and proceed to reboot even though the
node never went through a full drain.

Fix this by resetting the desired drain state back to Idle whenever a reboot
becomes required during or after a partial drain. This forces the operator to
finish the rollback to Idle, after which the daemon re-requests
Reboot_Required and gets a full drain before rebooting.

Add daemon tests that cover the drain-to-reboot escalation flow and the main
non-regression cases around partial and full drain handling.

Signed-off-by: Sebastian Sch <sebassch@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

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

27 existing lines in 5 files now uncovered.

9502 of 14947 relevant lines covered (63.57%)

0.71 hits per line

Coverage Regressions

Lines Coverage ∆ File
16
70.04
-2.38% controllers/sriovnetworknodepolicy_controller.go
5
72.92
-5.21% pkg/daemon/status.go
3
69.7
-1.14% controllers/helper.go
2
85.47
-1.71% pkg/utils/cluster.go
1
66.96
-0.45% controllers/drain_controller_helper.go
Jobs
ID Job ID Ran Files Coverage
1 26826178027.1 02 Jun 2026 02:36PM UTC 108
63.57
GitHub Action Run
Source Files on build 26826178027
  • Tree
  • List 108
  • Changed 7
  • Source Changed 1
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26826178027
  • 40757508 on github
  • Prev Build on master (#26752214612)
  • 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