-
Notifications
You must be signed in to change notification settings - Fork 180
[WIP] Fix failing GitHub Actions workflow for integration #15731
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -63,11 +63,15 @@ func TestValidateContainerImages(t *testing.T) { | |
|
|
||
| for _, tt := range tests { | ||
| t.Run(tt.name, func(t *testing.T) { | ||
| // Skip test if docker is not available | ||
| // Skip test if docker daemon is not running | ||
| if tt.skipIfNoDocker { | ||
| if _, err := exec.LookPath("docker"); err != nil { | ||
| t.Skip("docker not available, skipping test") | ||
| } | ||
| // Also check if Docker daemon is running (not just if binary exists) | ||
| if !isDockerDaemonRunning() { | ||
| t.Skip("docker daemon not running, skipping test") | ||
|
Comment on lines
+71
to
+73
|
||
| } | ||
| } | ||
|
|
||
| compiler := NewCompiler() | ||
|
|
@@ -88,6 +92,10 @@ func TestValidateDockerImage(t *testing.T) { | |
| if _, err := exec.LookPath("docker"); err != nil { | ||
| t.Skip("docker not available, skipping test") | ||
| } | ||
| // Also check if Docker daemon is running (not just if binary exists) | ||
| if !isDockerDaemonRunning() { | ||
| t.Skip("docker daemon not running, skipping test") | ||
| } | ||
|
|
||
| tests := []struct { | ||
| name string | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment is slightly misleading. It says "Skip test if docker daemon is not running" but the code checks both Docker binary availability (line 68-70) AND daemon running status (line 72-74). Consider updating to "Skip test if docker is not available or daemon is not running" for accuracy.