Skip to content

feat(notifier): refactor selfstate heartbeaters #2448

feat(notifier): refactor selfstate heartbeaters

feat(notifier): refactor selfstate heartbeaters #2448

Triggered via pull request November 8, 2024 11:21
Status Failure
Total duration 1m 51s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
lint: cmd/notifier/config.go#L12
could not import github.com/moira-alert/moira/notifier/selfstate (-: # github.com/moira-alert/moira/notifier/selfstate
lint: notifier/selfstate/check.go#L39
assignment mismatch: 3 variables but heartbeat.Check returns 2 values
lint: notifier/selfstate/check.go#L39
too many arguments in call to heartbeat.Check
lint: notifier/selfstate/check.go#L47
heartbeat.GetErrorMessage undefined (type heartbeat.Heartbeater has no field or method GetErrorMessage)
lint: notifier/selfstate/check.go#L48
heartbeat.NeedTurnOffNotifier undefined (type heartbeat.Heartbeater has no field or method NeedTurnOffNotifier)
lint: notifier/selfstate/check.go#L52
heartbeat.NeedToCheckOthers undefined (type heartbeat.Heartbeater has no field or method NeedToCheckOthers)
lint: notifier/selfstate/selfstate.go#L67
undefined: heartbeat.GetDatabase
lint: notifier/selfstate/selfstate.go#L71
undefined: heartbeat.GetFilter
lint: notifier/selfstate/selfstate.go#L75
undefined: heartbeat.GetLocalChecker
lint: notifier/selfstate/selfstate.go#L79
undefined: heartbeat.GetRemoteChecker
lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/