Skip to content

CDI implementation #405

CDI implementation

CDI implementation #405

Triggered via pull request September 8, 2023 11:48
@e0nee0ne
synchronize #489
e0ne:cdi
Status Failure
Total duration 4m 56s
Artifacts

build-test-lint.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

13 errors and 3 warnings
Golangci-lint: pkg/resources/ddpSelector.go#L1
: # github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/resources [github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/resources.test]
Golangci-lint: pkg/resources/server_test.go#L329
cannot use cdi (variable of type *"github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi/mocks".CDI) as "github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi".CDI value in assignment: *"github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi/mocks".CDI does not implement "github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi".CDI (missing method CleanupSpecs)
Golangci-lint: pkg/resources/server_test.go#L481
cannot use cdi (variable of type *"github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi/mocks".CDI) as "github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi".CDI value in assignment: *"github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi/mocks".CDI does not implement "github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi".CDI (missing method CleanupSpecs) (typecheck)
Golangci-lint: pkg/resources/ddpSelector_test.go#L6
could not import github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/resources (-: # github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/resources [github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/resources.test]
Golangci-lint: pkg/resources/server_test.go#L329
cannot use cdi (variable of type *"github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi/mocks".CDI) as "github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi".CDI value in assignment: *"github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi/mocks".CDI does not implement "github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi".CDI (missing method CleanupSpecs)
Golangci-lint: pkg/resources/server_test.go#L481
cannot use cdi (variable of type *"github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi/mocks".CDI) as "github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi".CDI value in assignment: *"github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi/mocks".CDI does not implement "github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi".CDI (missing method CleanupSpecs)) (typecheck)
Golangci-lint: pkg/cdi/cdi.go#L20
File is not `goimports`-ed with -local github.com/k8snetworkplumbingwg/sriov-network-device-plugin (goimports)
Golangci-lint
issues found
test-coverage: pkg/resources/server_test.go#L329
cannot use cdi (variable of type *"github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi/mocks".CDI) as "github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi".CDI value in assignment: *"github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi/mocks".CDI does not implement "github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi".CDI (missing method CleanupSpecs)
test-coverage: pkg/resources/server_test.go#L481
cannot use cdi (variable of type *"github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi/mocks".CDI) as "github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi".CDI value in assignment: *"github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi/mocks".CDI does not implement "github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi".CDI (missing method CleanupSpecs)
test: pkg/resources/server_test.go#L329
cannot use cdi (variable of type *"github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi/mocks".CDI) as "github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi".CDI value in assignment: *"github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi/mocks".CDI does not implement "github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi".CDI (missing method CleanupSpecs)
test: pkg/resources/server_test.go#L481
cannot use cdi (variable of type *"github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi/mocks".CDI) as "github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi".CDI value in assignment: *"github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi/mocks".CDI does not implement "github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pkg/cdi".CDI (missing method CleanupSpecs)
test
Process completed with exit code 2.
Shellcheck
Input 'ignore' has been deprecated with message: Use ignore_paths or ignore_names instead.
test-coverage
The following actions uses node12 which is deprecated and will be forced to run on node16: coverallsapp/[email protected]. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
test-coverage
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/