Skip to content

Fix backup post hook issue #9747

Fix backup post hook issue

Fix backup post hook issue #9747

Triggered via pull request December 6, 2024 05:09
Status Failure
Total duration 4m 7s
Artifacts

pr-linter-check.yml

on: pull_request
Run Linter Check
4m 0s
Run Linter Check
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
Run Linter Check: internal/hook/parser_test.go#L167
unnecessary conversion (unconvert)
Run Linter Check: internal/hook/item_hook_handler.go#L54
const `podBackupHookContainerAnnotationKey` is unused (unused)
Run Linter Check: internal/hook/item_hook_handler.go#L55
const `podBackupHookCommandAnnotationKey` is unused (unused)
Run Linter Check: internal/hook/item_hook_handler.go#L56
const `podBackupHookOnErrorAnnotationKey` is unused (unused)
Run Linter Check: internal/hook/item_hook_handler.go#L57
const `podBackupHookTimeoutAnnotationKey` is unused (unused)
Run Linter Check: internal/hook/parser.go#L8
ST1019: package "github.com/vmware-tanzu/velero/pkg/apis/velero/v1" is being imported more than once (stylecheck)
Run Linter Check: internal/hook/parser.go#L9
ST1019(related information): other import of "github.com/vmware-tanzu/velero/pkg/apis/velero/v1" (stylecheck)
Run Linter Check: internal/hook/handler_test.go#L55
error-nil: use require.NoError (testifylint)
Run Linter Check: internal/hook/handler_test.go#L144
error-nil: use require.NoError (testifylint)
Run Linter Check: internal/hook/handler_test.go#L178
error-nil: use require.NoError (testifylint)
Run Linter Check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Run Linter Check
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2