Skip to content

test(binding-tcp): skip IPv6 tests when unavailable in the build environment - #2111

Merged
jfallows merged 1 commit into
developfrom
claude/ipv6-conditional-tests-1llwlt
Jul 10, 2026
Merged

jfallows merged 1 commit into
developfrom
claude/ipv6-conditional-tests-1llwlt

Conversation

@jfallows

Copy link
Copy Markdown
Contributor

Description

Some build environments have no access to IPv6 locally, which fails the IPv6-based binding-tcp.spec and binding-tcp k3po integration tests even though the implementation is correct.

This adds IPv6Support.isAvailable() in binding-tcp.spec — it probes IPv6 loopback by binding a ServerSocket to ::1 — and gates the four IPv6 tests with Assume.assumeTrue(IPv6Support.isAvailable()) so they are skipped (not failed) when IPv6 isn't available:

  • specs/binding-tcp.spec: NetworkRoutingIT.shouldConnectClientWithIpv6Extension, ApplicationRoutingIT.shouldConnectClientWithIpv6Extension, ApplicationIT.shouldEstablishConnectionIPv6
  • runtime/binding-tcp: ClientIT.shouldEstablishConnectionIPv6

binding-tcp already depends on binding-tcp.spec (provided scope), so the single utility class is visible to both modules' tests without duplication.

Also added a jacoco exclude for IPv6Support.class in binding-tcp.spec/pom.xml, since that module enforces 100% instruction coverage and one branch of the availability probe is inherently environment-dependent (can't be hit in a single CI run either way).

Existing @Ignore("GitHub Actions") / @Ignore("TODO") annotations on other IPv6-related tests (ServerIT, ClientRoutingIT) are intentionally left unchanged.

Fixes # (issue)


Generated by Claude Code

…ronment

Add IPv6Support.isAvailable() in binding-tcp.spec and gate the IPv6 k3po
tests in binding-tcp.spec and binding-tcp with Assume.assumeTrue so they
are skipped, not failed, in environments without IPv6 loopback support.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Nxtu5PtSguEe8D4L7jiAwf
@jfallows
jfallows merged commit d187bbc into develop Jul 10, 2026
42 checks passed
jfallows pushed a commit that referenced this pull request Jul 10, 2026
Pulls in upstream fixes for the sandbox trust-store override (#2112) and
IPv6 unavailability (#2111) that this branch previously worked around
manually, plus new k3po reset-extension matching support (#2110, #2115)
and a vault entry resolution fix (#2114).
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.

2 participants