Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add wrapper for utils package from sriov-device-plugin #598

Merged
merged 2 commits into from
Feb 1, 2024

Conversation

ykulazhenkov
Copy link
Collaborator

This is a pre requisite to cover code in host pkg with unit tests.

cc @adrianchiris @SchSeba @zeeke

Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
Copy link

Thanks for your PR,
To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor.
    Best regards.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 7707528551

  • -151 of 158 (4.43%) changed or added relevant lines in 5 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.2%) to 24.097%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/host/manager.go 0 3 0.0%
pkg/host/internal/network/network.go 0 7 0.0%
pkg/host/internal/sriov/sriov.go 2 16 12.5%
pkg/host/internal/lib/dputils/dputils.go 0 30 0.0%
pkg/host/internal/lib/dputils/mock/mock_dputils.go 5 102 4.9%
Files with Coverage Reduction New Missed Lines %
pkg/host/internal/network/network.go 1 0.0%
Totals Coverage Status
Change from base Build 7699430230: -0.2%
Covered Lines: 2708
Relevant Lines: 11238

💛 - Coveralls

Copy link
Collaborator

@adrianchiris adrianchiris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

}

//go:generate ../../../../../bin/mockgen -destination mock/mock_dputils.go -source dputils.go
type DPUtilsLib interface {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These might be good candidates for sriovnet (not related to this PR)

@adrianchiris
Copy link
Collaborator

@zeeke can we merge this one ?

Copy link
Member

@zeeke zeeke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zeeke zeeke merged commit 9648745 into k8snetworkplumbingwg:master Feb 1, 2024
11 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.

4 participants