Skip to content

Fix common_ipv6 test failures on runners without IPv6 support#7732

Merged
achamayou merged 2 commits intoipv6_experimentfrom
copilot/sub-pr-7671
Mar 11, 2026
Merged

Fix common_ipv6 test failures on runners without IPv6 support#7732
achamayou merged 2 commits intoipv6_experimentfrom
copilot/sub-pr-7671

Conversation

Copy link
Contributor

Copilot AI commented Mar 11, 2026

The common_ipv6 test unconditionally attempts to bind CCF nodes to ::1, causing uv_tcp_bind to fail and the node process to abort on CI runners where IPv6 is disabled at the OS level.

Changes

  • tests/e2e_common_endpoints.py: Guard run_ipv6 with a pre-flight check — attempt socket.bind(("::1", 0)) before starting any nodes; skip with a warning if IPv6 loopback is unavailable. Added missing import socket and import infra.interfaces.

  • src/node/node_state.h: Strip brackets from IPv6 hosts in get_subject_alternative_names() before SAN construction. Without this, when published_address falls back to bind_address (which uses bracket notation, e.g. [::1]:8080), the SAN is incorrectly emitted as DNS:[::1] instead of IP:::1. Updated is_ip() comment to drop the "untested" qualifier for IPv6.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

…SANs

Co-authored-by: achamayou <4016369+achamayou@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix issues with experimental support for IPv6 Fix common_ipv6 test failures on runners without IPv6 support Mar 11, 2026
@achamayou achamayou marked this pull request as ready for review March 11, 2026 05:12
@achamayou achamayou requested a review from a team as a code owner March 11, 2026 05:12
@achamayou achamayou merged commit b889d2b into ipv6_experiment Mar 11, 2026
2 checks passed
@achamayou achamayou deleted the copilot/sub-pr-7671 branch March 11, 2026 05:12
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