Skip to content

Commit 7e98d1f

Browse files
committed
Try to fix CI for Windows (cont)
Signed-off-by: Alvaro Saurin <saurin@adobe.com>
1 parent 2f50005 commit 7e98d1f

2 files changed

Lines changed: 31 additions & 4 deletions

File tree

go.sum

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
7777
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
7878
github.com/mailru/easyjson v0.9.1 h1:LbtsOm5WAswyWbvTEOqhypdPeZzHavpZx96/n553mR8=
7979
github.com/mailru/easyjson v0.9.1/go.mod h1:1+xMtQp2MRNVL/V1bOzuP3aP8VNwRW55fQUto+XFtTU=
80-
github.com/mark3labs/mcp-go v0.41.1 h1:w78eWfiQam2i8ICL7AL0WFiq7KHNJQ6UB53ZVtH4KGA=
81-
github.com/mark3labs/mcp-go v0.41.1/go.mod h1:T7tUa2jO6MavG+3P25Oy/jR7iCeJPHImCZHRymCn39g=
82-
github.com/mark3labs/mcp-go v0.42.0 h1:gk/8nYJh8t3yroCAOBhNbYsM9TCKvkM13I5t5Hfu6Ls=
83-
github.com/mark3labs/mcp-go v0.42.0/go.mod h1:YnJfOL382MIWDx1kMY+2zsRHU/q78dBg9aFb8W6Thdw=
8480
github.com/mark3labs/mcp-go v0.43.0 h1:lgiKcWMddh4sngbU+hoWOZ9iAe/qp/m851RQpj3Y7jA=
8581
github.com/mark3labs/mcp-go v0.43.0/go.mod h1:YnJfOL382MIWDx1kMY+2zsRHU/q78dBg9aFb8W6Thdw=
8682
github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE=

pkg/command/runner_docker_test.go

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"context"
55
"os"
66
"os/exec"
7+
"runtime"
78
"strings"
89
"testing"
910
"time"
@@ -28,6 +29,11 @@ func checkDockerRunning() bool {
2829
}
2930

3031
func TestDockerRunnerInitialization(t *testing.T) {
32+
// Skip on Windows - Alpine Linux doesn't support Windows containers
33+
if runtime.GOOS == "windows" {
34+
t.Skip("Skipping Docker test on Windows - Alpine Linux image not compatible with Windows containers")
35+
}
36+
3137
if !checkDockerRunning() {
3238
t.Skip("Docker not installed or not running, skipping test")
3339
}
@@ -79,6 +85,11 @@ func TestDockerRunnerInitialization(t *testing.T) {
7985
}
8086

8187
func TestDockerRunnerBasic(t *testing.T) {
88+
// Skip on Windows - Alpine Linux doesn't support Windows containers
89+
if runtime.GOOS == "windows" {
90+
t.Skip("Skipping Docker test on Windows - Alpine Linux image not compatible with Windows containers")
91+
}
92+
8293
// Skip if docker is not available or not running
8394
if !checkDockerRunning() {
8495
t.Skip("Docker not installed or not running, skipping test")
@@ -109,6 +120,11 @@ func TestDockerRunnerBasic(t *testing.T) {
109120
}
110121

111122
func TestDockerRunnerNetworking(t *testing.T) {
123+
// Skip on Windows - Alpine Linux doesn't support Windows containers
124+
if runtime.GOOS == "windows" {
125+
t.Skip("Skipping Docker test on Windows - Alpine Linux image not compatible with Windows containers")
126+
}
127+
112128
// Skip if docker is not available or not running
113129
if !checkDockerRunning() {
114130
t.Skip("Docker not installed or not running, skipping test")
@@ -168,6 +184,11 @@ func TestDockerRunnerNetworking(t *testing.T) {
168184
}
169185

170186
func TestDockerRunnerEnvironmentVariables(t *testing.T) {
187+
// Skip on Windows - Alpine Linux doesn't support Windows containers
188+
if runtime.GOOS == "windows" {
189+
t.Skip("Skipping Docker test on Windows - Alpine Linux image not compatible with Windows containers")
190+
}
191+
171192
// Skip if docker is not available or not running
172193
if !checkDockerRunning() {
173194
t.Skip("Docker not installed or not running, skipping test")
@@ -216,6 +237,11 @@ func TestDockerRunnerEnvironmentVariables(t *testing.T) {
216237
}
217238

218239
func TestDockerRunnerPrepareCommand(t *testing.T) {
240+
// Skip on Windows - Alpine Linux doesn't support Windows containers
241+
if runtime.GOOS == "windows" {
242+
t.Skip("Skipping Docker test on Windows - Alpine Linux image not compatible with Windows containers")
243+
}
244+
219245
// Skip if docker is not available or not running
220246
if !checkDockerRunning() {
221247
t.Skip("Docker not installed or not running, skipping test")
@@ -246,6 +272,11 @@ func TestDockerRunnerPrepareCommand(t *testing.T) {
246272
}
247273

248274
func TestDockerRunner_Optimization_SingleExecutable(t *testing.T) {
275+
// Skip on Windows - Alpine Linux doesn't support Windows containers
276+
if runtime.GOOS == "windows" {
277+
t.Skip("Skipping Docker test on Windows - Alpine Linux image not compatible with Windows containers")
278+
}
279+
249280
if !checkDockerRunning() {
250281
t.Skip("Docker not installed or not running, skipping test")
251282
}

0 commit comments

Comments
 (0)