Skip to content

Adding Statuscode Handler to Agent Health Extension #2201

Adding Statuscode Handler to Agent Health Extension

Adding Statuscode Handler to Agent Health Extension #2201

Triggered via pull request December 4, 2024 08:26
Status Failure
Total duration 4m 54s
Artifacts

PR-build.yml

on: pull_request
Check changes
5s
Check changes
Test data race
0s
Test data race
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
Check lint: translator/util/ec2util/ec2util.go#L17
could not import github.com/aws/amazon-cloudwatch-agent/extension/agenthealth/handler/stats/agent (-: # github.com/aws/amazon-cloudwatch-agent/extension/agenthealth/handler/stats/agent
Check lint: extension/agenthealth/handler/stats/agent/agent.go#L39
other.CpuPercent undefined (type Stats has no field or method CpuPercent)
Check lint: extension/agenthealth/handler/stats/agent/agent.go#L40
s.CpuPercent undefined (type *Stats has no field or method CpuPercent)
Check lint: extension/agenthealth/handler/stats/agent/agent.go#L40
other.CpuPercent undefined (type Stats has no field or method CpuPercent)) (typecheck)
Check lint: translator/translate/logs/metrics_collected/prometheus/ruleClusterName.go#L34
cannot use new(ClusterName) (value of type *ClusterName) as Rule value in argument to RegisterRule (typecheck)
Check lint: translator/translate/logs/metrics_collected/prometheus/ruleConfigPath.go#L31
cannot use obj (variable of type *ConfigPath) as Rule value in argument to RegisterRule (typecheck)
Check lint: translator/translate/logs/metrics_collected/prometheus/ecsservicediscovery/ruleSDClusterRegion.go#L30
cannot use new(SDClusterRegion) (value of type *SDClusterRegion) as Rule value in argument to RegisterRule (typecheck)
Check lint: translator/translate/logs/metrics_collected/prometheus/ecsservicediscovery/ruleSDFrequency.go#L23
cannot use new(SDFrequency) (value of type *SDFrequency) as Rule value in argument to RegisterRule (typecheck)
Check lint: translator/translate/logs/metrics_collected/prometheus/ecsservicediscovery/ruleSDResultFile.go#L23
cannot use new(SDResultFile) (value of type *SDResultFile) as Rule value in argument to RegisterRule (typecheck)
Check lint: translator/translate/logs/metrics_collected/prometheus/ecsservicediscovery/ruleSDTargetCluster.go#L27
cannot use new(SDTargetCluster) (value of type *SDTargetCluster) as Rule value in argument to RegisterRule (typecheck)
Check changes
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Check lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636