Skip to content

Comments

fix(ci): enable ICMP tests on Linux and fix gotestfmt on macOS/Windows#1602

Open
mannie-exe wants to merge 1 commit intocloudflare:masterfrom
inherent-design:fix/ci-workflow
Open

fix(ci): enable ICMP tests on Linux and fix gotestfmt on macOS/Windows#1602
mannie-exe wants to merge 1 commit intocloudflare:masterfrom
inherent-design:fix/ci-workflow

Conversation

@mannie-exe
Copy link

Hey! I didn't see any issues for the CI/CD failures, so I'm not really sure if this is needed work, but I did get them working on my fork and wanted to share in case it's needed.

  1. Linux: ICMP tests failure in GitHub Actions (🐛 The user running cloudflared process has a GID (group ID) that is not within ping_group_range #1334)

ICMP tests fail because ping_group_range on GitHub Actions runners defaults to "1 0" (unprivileged ICMP disabled). Add sysctl step to allow unprivileged ICMP sockets.

  1. macOS: gotestfmt panic (Panic with "build-output" action GoTestTools/gotestfmt#64)

go test -json emits linker warnings (LC_DYSYMTAB) as "Action":"build-output" JSON lines. gotestfmt v2.5.0 predates this action type (Go 1.21+) and panics in parseLine. Filter build-output lines before piping to gotestfmt.

  1. Windows: /tmp/gotest.log path not found

GO_TEST_LOG_OUTPUT pointed to /tmp/gotest.log which does not resolve through the MSYS2-to-native-Go boundary. Use relative path instead.

@mannie-exe mannie-exe marked this pull request as ready for review February 23, 2026 01:31
@mannie-exe mannie-exe changed the title Fix CI: enable ICMP tests on Linux and fix gotestfmt on macOS/Windows fix(ci): enable ICMP tests on Linux and fix gotestfmt on macOS/Windows Feb 23, 2026
Three pre-existing issues prevented the Check workflow from passing:

1. Linux: ICMP tests fail because ping_group_range on GitHub Actions
   runners defaults to "1 0" (unprivileged ICMP disabled). Add sysctl
   step to allow unprivileged ICMP sockets.

2. macOS: go test -json emits linker warnings (LC_DYSYMTAB) as
   "Action":"build-output" JSON lines. gotestfmt v2.5.0 predates this
   action type (Go 1.21+) and panics in parseLine
   (GoTestTools/gotestfmt#64). Filter build-output lines before piping
   to gotestfmt.

3. Windows: GO_TEST_LOG_OUTPUT pointed to /tmp/gotest.log which does
   not resolve through the MSYS2-to-native-Go boundary. Use relative
   path instead.

These failures were masked by fail-fast: Linux failed first (ICMP),
cancelling macOS and Windows before they reached gotestfmt.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant