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

rollandf / sriov-network-operator / 21030842510
63%
master: 63%

Build:
Build:
LAST BUILD BRANCH: karg-temp
DEFAULT BRANCH: master
Ran 15 Jan 2026 12:21PM 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

15 Jan 2026 12:11PM UTC coverage: 62.897% (+0.2%) from 62.698%
21030842510

push

github

rollandf
daemon: fix kernel argument management and logging errors

This commit addresses several issues in the sriov-network-config-daemon
relating to host configuration management and observability.

1. Fix kargs.sh for read-only root filesystems:
   The daemon now uses the host's /tmp directory (via chroot) for temporary
   workspace files. This allows the script to function correctly when the
   container is deployed with 'readOnlyRootFilesystem: true', which previously
   caused 'cp' and 'grep' failures.

2. Improve Ubuntu kargs robustness:
   - Switched from 'grep -P' to 'grep -E' for better compatibility with minimal
     container environments.
   - Added idempotency checks to verify if a kernel argument is already present
     before attempting modification, preventing duplicate entries in GRUB and
     /proc/cmdline.
   - Added support for fallbacks between GRUB_CMDLINE_LINUX and
     GRUB_CMDLINE_LINUX_DEFAULT.
   - Refactored parsing logic to safely handle variable expansions and complex
     quoting in /etc/default/grub.

3. Fix logging serialization bug:
   Updated NodeReconciler to correctly call the Name() method of the main
   plugin when logging errors. Previously, passing the function pointer directly
   caused "json: unsupported type: func() string" errors, masking the actual
   reconciliation failures.

4. Stabilize OS detection and return codes:
   Refactored OS detection in kargs.sh to be more reliable and replaced 'let'
   increments with standard arithmetic expansion to ensure consistent exit codes.

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

0 of 1 new or added line in 1 file covered. (0.0%)

854 existing lines in 12 files now uncovered.

9388 of 14926 relevant lines covered (62.9%)

0.7 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
49.2
-1.2% pkg/daemon/daemon.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
67.43
-0.46% controllers/drain_controller_helper.go
1
70.23
-0.38% controllers/helper.go
2
87.63
-2.06% pkg/utils/cluster.go
6
49.2
-1.2% pkg/daemon/daemon.go
10
60.42
-10.42% pkg/daemon/status.go
13
68.57
-2.65% controllers/sriovnetworknodepolicy_controller.go
33
75.38
0.68% pkg/plugins/generic/generic_plugin.go
91
79.48
-0.1% api/v1/helper.go
135
67.99
0.1% 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 21030842510.1 15 Jan 2026 12:21PM UTC 107
62.9
GitHub Action Run
Source Files on build 21030842510
  • Tree
  • List 107
  • Changed 14
  • Source Changed 7
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21030842510
  • 75c11ad3 on github
  • Prev Build on karg-temp (#21030782016)
  • Next Build on karg-temp (#21031217792)
  • 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