Skip to content

coverage: run the daemons against a declared /etc/nvme - #518

Merged
martin-belanger merged 1 commit into
linux-nvme:mainfrom
martin-belanger:coverage-fake-etc-nvme
Sep 2, 2026
Merged

coverage: run the daemons against a declared /etc/nvme#518
martin-belanger merged 1 commit into
linux-nvme:mainfrom
martin-belanger:coverage-fake-etc-nvme

Conversation

@martin-belanger

Copy link
Copy Markdown
Collaborator

The coverage run read whatever the machine had. A stale exclusions.conf had been changing what it connected for an unknown number of runs, with nothing in the script saying so, and a runner with no /etc/nvme at all was a third answer again.

The script now writes the host NQN, host ID and exclusion lists itself and bind-mounts that directory over /etc/nvme in the daemons' units, so libnvme's C code sees it too. A probe on a throw-away unit decides whether BindPaths= is usable; where it is not, the run falls back to the real directory and says so.

The coverage run read whatever the machine had. A stale exclusions.conf
had been changing what it connected for an unknown number of runs, with
nothing in the script saying so, and a runner with no /etc/nvme at all
was a third answer again.

The script now writes the host NQN, host ID and exclusion lists itself
and bind-mounts that directory over /etc/nvme in the daemons' units, so
libnvme's C code sees it too. A probe on a throw-away unit decides
whether BindPaths= is usable; where it is not, the run falls back to the
real directory and says so.

Signed-off-by: Martin Belanger <martin.belanger@dell.com>
@codecov

codecov Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.32%. Comparing base (fc93ae9) to head (523cf0e).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #518   +/-   ##
=======================================
  Coverage   71.32%   71.32%           
=======================================
  Files          16       16           
  Lines        2786     2786           
=======================================
  Hits         1987     1987           
  Misses        799      799           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@martin-belanger
martin-belanger merged commit 4245dba into linux-nvme:main Sep 2, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant