Skip to content

refactor: sync controller #721

refactor: sync controller

refactor: sync controller #721

Triggered via pull request July 27, 2023 04:45
Status Failure
Total duration 3m 47s
Artifacts

ci.yml

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

Annotations

31 errors and 2 warnings
typos
Process completed with exit code 2.
test (1.19): pkg/controllers/scheduler/scheduler_test.go#L32
no required module provides package github.com/kubewharf/kubeadmiral/pkg/apis/types/v1alpha1; to add it:
test (1.19): pkg/util/annotation/submap_test.go#L25
no required module provides package github.com/kubewharf/kubeadmiral/pkg/controllers/util/annotation; to add it:
test (1.19): pkg/client/generic/genericclient.go#L161
undefined: common.LastRevisionAnnotation
test (1.19): pkg/client/generic/genericclient.go#L163
undefined: common.LastRevisionAnnotation
test (1.19): pkg/controllers/util/federatedstatus.go#L83
undefined: common.SourceGenerationAnnotation
test (1.19): pkg/controllers/util/federatedstatus.go#L137
undefined: common.CurrentRevisionAnnotation
test (1.19): pkg/controllers/automigration/util_test.go#L40
undefined: countUnschedulablePods
test (1.19): pkg/controllers/federatedcluster/util_test.go#L263
undefined: aggregateResources
test (1.19): pkg/controllers/follower/util_test.go#L306
undefined: FollowerReference
test (1.19): pkg/controllers/follower/util_test.go#L309
undefined: FollowerReference
lint: pkg/controllers/sync/controller.go#L48
File is not `gci`-ed with --skip-generated -s standard -s default -s prefix(github.com/kubewharf/kubeadmiral) --custom-order (gci)
lint: pkg/controllers/sync/controller.go#L49
File is not `gci`-ed with --skip-generated -s standard -s default -s prefix(github.com/kubewharf/kubeadmiral) --custom-order (gci)
lint: pkg/controllers/sync/controller.go#L53
File is not `gci`-ed with --skip-generated -s standard -s default -s prefix(github.com/kubewharf/kubeadmiral) --custom-order (gci)
lint: pkg/controllers/sync/controller.go#L54
File is not `gci`-ed with --skip-generated -s standard -s default -s prefix(github.com/kubewharf/kubeadmiral) --custom-order (gci)
lint: pkg/controllers/sync/controller.go#L56
File is not `gci`-ed with --skip-generated -s standard -s default -s prefix(github.com/kubewharf/kubeadmiral) --custom-order (gci)
lint: pkg/controllers/override/util_test.go#L28
File is not `gci`-ed with --skip-generated -s standard -s default -s prefix(github.com/kubewharf/kubeadmiral) --custom-order (gci)
lint: pkg/controllers/sync/dispatch/retain.go#L529
line is 145 characters (lll)
lint: pkg/controllers/sync/controller.go#L224
line is 142 characters (lll)
lint: pkg/controllers/sync/controller.go#L927
line is 143 characters (lll)
lint: pkg/controllers/sync/dispatch/unmanaged.go#L196
ineffectual assignment to updateObj (ineffassign)
test (1.20): pkg/controllers/scheduler/scheduler_test.go#L32
no required module provides package github.com/kubewharf/kubeadmiral/pkg/apis/types/v1alpha1; to add it:
test (1.20): pkg/util/annotation/submap_test.go#L25
no required module provides package github.com/kubewharf/kubeadmiral/pkg/controllers/util/annotation; to add it:
test (1.20): pkg/client/generic/genericclient.go#L161
undefined: common.LastRevisionAnnotation
test (1.20): pkg/client/generic/genericclient.go#L163
undefined: common.LastRevisionAnnotation
test (1.20): pkg/controllers/automigration/util_test.go#L40
undefined: countUnschedulablePods
test (1.20): pkg/controllers/util/federatedstatus.go#L83
undefined: common.SourceGenerationAnnotation
test (1.20): pkg/controllers/util/federatedstatus.go#L137
undefined: common.CurrentRevisionAnnotation
test (1.20): pkg/controllers/federatedcluster/util_test.go#L263
undefined: aggregateResources
test (1.20): pkg/controllers/follower/util_test.go#L306
undefined: FollowerReference
test (1.20): pkg/controllers/follower/util_test.go#L309
undefined: FollowerReference
typos: docs/quickstart.md#L6
"propgating" should be "propagating".
typos: pkg/util/informermanager/informermanager.go#L386
"intial" should be "initial".