mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-03 08:22:00 +01:00
tsconsensus: skip integration tests in CI
There is an issue to add non-integration tests: #18022 Fixes #15627 #16340 Signed-off-by: Fran Bull <fran@tailscale.com>
This commit is contained in:
parent
ac0b15356d
commit
f4a4bab105
@ -17,7 +17,6 @@ import (
|
|||||||
"net/netip"
|
"net/netip"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"testing"
|
"testing"
|
||||||
@ -27,7 +26,6 @@ import (
|
|||||||
"github.com/hashicorp/go-hclog"
|
"github.com/hashicorp/go-hclog"
|
||||||
"github.com/hashicorp/raft"
|
"github.com/hashicorp/raft"
|
||||||
"tailscale.com/client/tailscale"
|
"tailscale.com/client/tailscale"
|
||||||
"tailscale.com/cmd/testwrapper/flakytest"
|
|
||||||
"tailscale.com/ipn/store/mem"
|
"tailscale.com/ipn/store/mem"
|
||||||
"tailscale.com/net/netns"
|
"tailscale.com/net/netns"
|
||||||
"tailscale.com/tailcfg"
|
"tailscale.com/tailcfg"
|
||||||
@ -115,8 +113,8 @@ func (f *fsm) Restore(rc io.ReadCloser) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func testConfig(t *testing.T) {
|
func testConfig(t *testing.T) {
|
||||||
if runtime.GOOS == "windows" && cibuild.On() {
|
if cibuild.On() {
|
||||||
t.Skip("cmd/natc isn't supported on Windows, so skipping tsconsensus tests on CI for now; see https://github.com/tailscale/tailscale/issues/16340")
|
t.Skip("these integration tests don't always work well in CI and that's bad for CI; see https://github.com/tailscale/tailscale/issues/16340 and https://github.com/tailscale/tailscale/issues/18022")
|
||||||
}
|
}
|
||||||
// -race AND Parallel makes things start to take too long.
|
// -race AND Parallel makes things start to take too long.
|
||||||
if !racebuild.On {
|
if !racebuild.On {
|
||||||
@ -251,7 +249,6 @@ func warnLogConfig() Config {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestStart(t *testing.T) {
|
func TestStart(t *testing.T) {
|
||||||
flakytest.Mark(t, "https://github.com/tailscale/tailscale/issues/15627")
|
|
||||||
testConfig(t)
|
testConfig(t)
|
||||||
control, controlURL := startControl(t)
|
control, controlURL := startControl(t)
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
@ -372,7 +369,6 @@ func createConsensusCluster(t testing.TB, ctx context.Context, clusterTag string
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestApply(t *testing.T) {
|
func TestApply(t *testing.T) {
|
||||||
flakytest.Mark(t, "https://github.com/tailscale/tailscale/issues/15627")
|
|
||||||
testConfig(t)
|
testConfig(t)
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
clusterTag := "tag:whatever"
|
clusterTag := "tag:whatever"
|
||||||
@ -437,7 +433,6 @@ func assertCommandsWorkOnAnyNode(t testing.TB, participants []*participant) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestConfig(t *testing.T) {
|
func TestConfig(t *testing.T) {
|
||||||
flakytest.Mark(t, "https://github.com/tailscale/tailscale/issues/15627")
|
|
||||||
testConfig(t)
|
testConfig(t)
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
clusterTag := "tag:whatever"
|
clusterTag := "tag:whatever"
|
||||||
@ -477,7 +472,6 @@ func TestConfig(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestFollowerFailover(t *testing.T) {
|
func TestFollowerFailover(t *testing.T) {
|
||||||
flakytest.Mark(t, "https://github.com/tailscale/tailscale/issues/15627")
|
|
||||||
testConfig(t)
|
testConfig(t)
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
clusterTag := "tag:whatever"
|
clusterTag := "tag:whatever"
|
||||||
@ -549,7 +543,6 @@ func TestFollowerFailover(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestRejoin(t *testing.T) {
|
func TestRejoin(t *testing.T) {
|
||||||
flakytest.Mark(t, "https://github.com/tailscale/tailscale/issues/15627")
|
|
||||||
testConfig(t)
|
testConfig(t)
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
clusterTag := "tag:whatever"
|
clusterTag := "tag:whatever"
|
||||||
@ -585,7 +578,6 @@ func TestRejoin(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestOnlyTaggedPeersCanDialRaftPort(t *testing.T) {
|
func TestOnlyTaggedPeersCanDialRaftPort(t *testing.T) {
|
||||||
flakytest.Mark(t, "https://github.com/tailscale/tailscale/issues/15627")
|
|
||||||
testConfig(t)
|
testConfig(t)
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
clusterTag := "tag:whatever"
|
clusterTag := "tag:whatever"
|
||||||
@ -643,7 +635,6 @@ func TestOnlyTaggedPeersCanDialRaftPort(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestOnlyTaggedPeersCanBeDialed(t *testing.T) {
|
func TestOnlyTaggedPeersCanBeDialed(t *testing.T) {
|
||||||
flakytest.Mark(t, "https://github.com/tailscale/tailscale/issues/15627")
|
|
||||||
testConfig(t)
|
testConfig(t)
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
clusterTag := "tag:whatever"
|
clusterTag := "tag:whatever"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user