Skip to content

fix(preflight): improved error reporting for storage container and VM image checks #3857

fix(preflight): improved error reporting for storage container and VM image checks

fix(preflight): improved error reporting for storage container and VM image checks #3857

Triggered via pull request June 25, 2025 19:45
Status Failure
Total duration 6m 26s
Artifacts

checks.yml

on: pull_request
Matrix: lint-go
Matrix: e2e-quick-start
Waiting for pending jobs
Matrix: e2e-self-hosted
Waiting for pending jobs
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 3 warnings
unit-test: pkg/webhook/preflight/nutanix/image_test.go#L297
image_test.go:297: Error Trace: /home/runner/work/cluster-api-runtime-extensions-nutanix/cluster-api-runtime-extensions-nutanix/pkg/webhook/preflight/nutanix/image_test.go:297 Error: Not equal: expected: []preflight.Cause{preflight.Cause{Message:"failed to get VM Image: api error", Field:"test-field"}} actual : []preflight.Cause{preflight.Cause{Message:"failed to get VM Image: failed to get data returned by ListImages", Field:"test-field"}} Diff: --- Expected +++ Actual @@ -2,3 +2,3 @@ (preflight.Cause) { - Message: (string) (len=33) "failed to get VM Image: api error", + Message: (string) (len=65) "failed to get VM Image: failed to get data returned by ListImages", Field: (string) (len=10) "test-field" Test: TestVMImageCheck/listing_images_returns_an_error_response
unit-test
Process completed with exit code 2.
lint-go (api)
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
lint-go (common)
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
lint-go (.)
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2