Skip to content

fix panic in provider server while onboarding #4933

fix panic in provider server while onboarding

fix panic in provider server while onboarding #4933

Triggered via pull request October 1, 2024 16:30
Status Failure
Total duration 2m 7s
Artifacts

ocs-operator-ci.yaml

on: pull_request
shellcheck
16s
shellcheck
verify code spellings
13s
verify code spellings
commitlint
16s
commitlint
Matrix: go test
Matrix: golangci-lint
Matrix: verify generated changes
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 2 warnings
golangci-lint (1.22): services/provider/main.go#L10
could not import github.com/red-hat-storage/ocs-operator/v4/services/provider/server (-: # github.com/red-hat-storage/ocs-operator/v4/services/provider/server
golangci-lint (1.22): services/provider/server/consumer.go#L79
invalid operation: storageQuotaInGiB != nil (mismatched types int and untyped nil)
golangci-lint (1.22): services/provider/server/consumer.go#L80
invalid operation: cannot indirect storageQuotaInGiB (variable of type int)) (typecheck)
golangci-lint (1.22): controllers/storagecluster/provider_server.go#L25
could not import github.com/red-hat-storage/ocs-operator/v4/services/provider/server (-: # github.com/red-hat-storage/ocs-operator/v4/services/provider/server
golangci-lint (1.22): services/provider/server/consumer.go#L79
invalid operation: storageQuotaInGiB != nil (mismatched types int and untyped nil)
golangci-lint (1.22): services/provider/server/consumer.go#L80
invalid operation: cannot indirect storageQuotaInGiB (variable of type int)) (typecheck)
golangci-lint (1.22): services/provider/server/consumer.go#L79
invalid operation: storageQuotaInGiB != nil (mismatched types int and untyped nil)
golangci-lint (1.22): services/provider/server/consumer.go#L80
invalid operation: cannot indirect storageQuotaInGiB (variable of type int) (typecheck)
golangci-lint (1.22)
issues found
go test (1.22): services/provider/server/consumer.go#L79
invalid operation: storageQuotaInGiB != nil (mismatched types int and untyped nil)
go test (1.22): services/provider/server/consumer.go#L80
invalid operation: cannot indirect storageQuotaInGiB (variable of type int)
go test (1.22)
Process completed with exit code 2.
go test (1.22)
Restore cache failed: Dependencies file is not found in /home/runner/work/ocs-operator/ocs-operator. Supported file pattern: go.sum
verify generated changes (1.22)
Restore cache failed: Dependencies file is not found in /home/runner/work/ocs-operator/ocs-operator. Supported file pattern: go.sum