It may have something to do with the ginkgo logger.
go fmt ./...
golangci-lint run
go build -o bin/karpenter karpenter/main.go
go test ./... -v -cover
? github.com/ellistarn/karpenter/karpenter [no test files]
? github.com/ellistarn/karpenter/pkg/apis [no test files]
? github.com/ellistarn/karpenter/pkg/apis/autoscaling/v1alpha1 [no test files]
? github.com/ellistarn/karpenter/pkg/cloudprovider [no test files]
=== RUN TestUpdateAutoScalingGroupSuccess
--- PASS: TestUpdateAutoScalingGroupSuccess (0.00s)
=== RUN TestUpdateManagedNodeGroupSuccess
--- PASS: TestUpdateManagedNodeGroupSuccess (0.00s)
PASS
coverage: 36.4% of statements
ok github.com/ellistarn/karpenter/pkg/cloudprovider/aws 0.165s coverage: 36.4% of statements
? github.com/ellistarn/karpenter/pkg/controllers [no test files]
=== RUN TestAPIs
Running Suite: Horizontal Autoscaler Suite
==========================================
Random Seed: 1599870287
Will run 1 of 1 specs
FAIL github.com/ellistarn/karpenter/pkg/controllers/horizontalautoscaler/v1alpha1 9.808s
=== RUN TestProportionalGetDesiredReplicas
=== RUN TestProportionalGetDesiredReplicas/ValueMetricType_normal_case
=== RUN TestProportionalGetDesiredReplicas/ValueMetricType_does_not_scale_from_zero
=== RUN TestProportionalGetDesiredReplicas/AverageValueMetricType_normal_case
go mod tidy
go mod download
go vet ./...
go fmt ./...
golangci-lint run
go test ./... -v -cover
? github.com/ellistarn/karpenter/karpenter [no test files]
? github.com/ellistarn/karpenter/pkg/apis [no test files]
? github.com/ellistarn/karpenter/pkg/apis/autoscaling/v1alpha1 [no test files]
? github.com/ellistarn/karpenter/pkg/cloudprovider [no test files]
=== RUN TestUpdateAutoScalingGroupSuccess
--- PASS: TestUpdateAutoScalingGroupSuccess (0.00s)
=== RUN TestUpdateManagedNodeGroupSuccess
--- PASS: TestUpdateManagedNodeGroupSuccess (0.00s)
PASS
coverage: 36.4% of statements
ok github.com/ellistarn/karpenter/pkg/cloudprovider/aws (cached) coverage: 36.4% of statements
? github.com/ellistarn/karpenter/pkg/controllers [no test files]
=== RUN TestAPIs
Running Suite: Horizontal Autoscaler Suite
==========================================
Random Seed: 1599870852
Will run 1 of 1 specs
• Failure [0.021 seconds]
Controller
/Users/etarn/workspaces/go/src/github.com/ellistarn/karpenter/pkg/controllers/horizontalautoscaler/v1alpha1/suite_test.go:80
with an empty resource
/Users/etarn/workspaces/go/src/github.com/ellistarn/karpenter/pkg/controllers/horizontalautoscaler/v1alpha1/suite_test.go:81
should should create and delete [It]
/Users/etarn/workspaces/go/src/github.com/ellistarn/karpenter/pkg/controllers/horizontalautoscaler/v1alpha1/suite_test.go:90
Expected success, but got an error:
<*errors.StatusError | 0xc000456320>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {
SelfLink: "",
ResourceVersion: "",
Continue: "",
RemainingItemCount: nil,
},
Status: "Failure",
Message: "Internal error occurred: failed calling webhook \"vhorizontalautoscaler.kb.io\": the server could not find the requested resource",
Reason: "InternalError",
Details: {
Name: "",
Group: "",
Kind: "",
UID: "",
Causes: [
{
Type: "",
Message: "failed calling webhook \"vhorizontalautoscaler.kb.io\": the server could not find the requested resource",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 500,
},
}
Internal error occurred: failed calling webhook "vhorizontalautoscaler.kb.io": the server could not find the requested resource
/Users/etarn/workspaces/go/src/github.com/ellistarn/karpenter/pkg/controllers/horizontalautoscaler/v1alpha1/suite_test.go:91
------------------------------
Summarizing 1 Failure:
[Fail] Controller with an empty resource [It] should should create and delete
/Users/etarn/workspaces/go/src/github.com/ellistarn/karpenter/pkg/controllers/horizontalautoscaler/v1alpha1/suite_test.go:91
Ran 1 of 1 Specs in 4.638 seconds
FAIL! -- 0 Passed | 1 Failed | 0 Pending | 0 Skipped
--- FAIL: TestAPIs (4.64s)
FAIL
coverage: 14.3% of statements
FAIL github.com/ellistarn/karpenter/pkg/controllers/horizontalautoscaler/v1alpha1 6.271s
=== RUN TestProportionalGetDesiredReplicas
=== RUN TestProportionalGetDesiredReplicas/ValueMetricType_normal_case
=== RUN TestProportionalGetDesiredReplicas/ValueMetricType_does_not_scale_from_zero
=== RUN TestProportionalGetDesiredReplicas/AverageValueMetricType_normal_case
=== RUN TestProportionalGetDesiredReplicas/AverageValueMetricType_scales_to_zero
=== RUN TestProportionalGetDesiredReplicas/AverageUtilization_normal_case
=== RUN TestProportionalGetDesiredReplicas/AverageUtilization_does_not_scale_to_zero
=== RUN TestProportionalGetDesiredReplicas/Unknown_metric_type_returns_replicas
--- PASS: TestProportionalGetDesiredReplicas (0.00s)
--- PASS: TestProportionalGetDesiredReplicas/ValueMetricType_normal_case (0.00s)
--- PASS: TestProportionalGetDesiredReplicas/ValueMetricType_does_not_scale_from_zero (0.00s)
--- PASS: TestProportionalGetDesiredReplicas/AverageValueMetricType_normal_case (0.00s)
--- PASS: TestProportionalGetDesiredReplicas/AverageValueMetricType_scales_to_zero (0.00s)
--- PASS: TestProportionalGetDesiredReplicas/AverageUtilization_normal_case (0.00s)
--- PASS: TestProportionalGetDesiredReplicas/AverageUtilization_does_not_scale_to_zero (0.00s)
--- PASS: TestProportionalGetDesiredReplicas/Unknown_metric_type_returns_replicas (0.00s)
PASS
coverage: 88.9% of statements
ok github.com/ellistarn/karpenter/pkg/controllers/horizontalautoscaler/v1alpha1/algorithms (cached) coverage: 88.9% of statements
? github.com/ellistarn/karpenter/pkg/controllers/horizontalautoscaler/v1alpha1/autoscaler [no test files]
? github.com/ellistarn/karpenter/pkg/controllers/metricsproducer/v1alpha1 [no test files]
? github.com/ellistarn/karpenter/pkg/controllers/scalablenodegroup/v1alpha1 [no test files]
? github.com/ellistarn/karpenter/pkg/metrics [no test files]
? github.com/ellistarn/karpenter/pkg/metrics/clients [no test files]
? github.com/ellistarn/karpenter/pkg/metrics/producers [no test files]
? github.com/ellistarn/karpenter/pkg/test [no test files]
? github.com/ellistarn/karpenter/pkg/utils [no test files]
FAIL
make: *** [test] Error 1