Skip to content

Commit

Permalink
Skip IPv6 tests on MacOS
Browse files Browse the repository at this point in the history
In valkey-io#786, we did skip it in the daily, but not for the others.
When running ./runtest on MacOS, we will get the failure.
```
couldn't open socket: host is unreachable (nodename nor servname provided, or not known)
```

This PR moves the skip logic from tags -ipv6 to TCL uname.
This also revert valkey-io#786.

Signed-off-by: Binbin <[email protected]>
  • Loading branch information
enjoy-binbin committed Aug 14, 2024
1 parent 131857e commit d0b9232
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ jobs:
run: make SERVER_CFLAGS='-Werror'
- name: test
if: true && !contains(github.event.inputs.skiptests, 'valkey')
run: ./runtest --accurate --verbose --tags -ipv6 --clients 1 --no-latency --dump-logs ${{github.event.inputs.test_args}}
run: ./runtest --accurate --verbose --clients 1 --no-latency --dump-logs ${{github.event.inputs.test_args}}
- name: module api test
if: true && !contains(github.event.inputs.skiptests, 'modules')
run: CFLAGS='-Werror' ./runtest-moduleapi --verbose --clients 1 --no-latency --dump-logs ${{github.event.inputs.test_args}}
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/cluster/announce-client-ip.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ start_cluster 2 2 {tags {external:skip cluster} overrides {cluster-replica-no-fa
}
}

if {![string match {*Darwin*} [exec uname -a]]} {
start_cluster 2 2 {tags {external:skip cluster ipv6} overrides {cluster-replica-no-failover yes bind {127.0.0.1 ::1}}} {
# Connecting to localhost as "::1" makes the clients use IPv6.
set clients {}
Expand Down Expand Up @@ -147,3 +148,4 @@ start_cluster 2 2 {tags {external:skip cluster ipv6} overrides {cluster-replica-
[lindex $clients $j] close
}
}
} ;# if uname

0 comments on commit d0b9232

Please sign in to comment.