From b0227d1f16ea5da448f7a610ed9a7e22e6f35782 Mon Sep 17 00:00:00 2001 From: machine424 Date: Fri, 14 Mar 2025 12:04:44 +0100 Subject: [PATCH] chore(discovery): disable some file update tests as flaky Signed-off-by: machine424 --- discovery/file/file_test.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/discovery/file/file_test.go b/discovery/file/file_test.go index 179ac5cd1c..4bd91d4785 100644 --- a/discovery/file/file_test.go +++ b/discovery/file/file_test.go @@ -19,6 +19,7 @@ import ( "io" "os" "path/filepath" + "runtime" "sort" "sync" "testing" @@ -319,6 +320,9 @@ func valid2Tg(file string) []*targetgroup.Group { } func TestInitialUpdate(t *testing.T) { + if runtime.GOOS == "windows" { + t.Skip("flaky test, see https://github.com/prometheus/prometheus/issues/16212") + } for _, tc := range []string{ "fixtures/valid.yml", "fixtures/valid.json", @@ -363,6 +367,9 @@ func TestInvalidFile(t *testing.T) { } func TestNoopFileUpdate(t *testing.T) { + if runtime.GOOS == "windows" { + t.Skip("flaky test, see https://github.com/prometheus/prometheus/issues/16212") + } t.Parallel() runner := newTestRunner(t) @@ -381,6 +388,9 @@ func TestNoopFileUpdate(t *testing.T) { } func TestFileUpdate(t *testing.T) { + if runtime.GOOS == "windows" { + t.Skip("flaky test, see https://github.com/prometheus/prometheus/issues/16212") + } t.Parallel() runner := newTestRunner(t) @@ -399,6 +409,9 @@ func TestFileUpdate(t *testing.T) { } func TestInvalidFileUpdate(t *testing.T) { + if runtime.GOOS == "windows" { + t.Skip("flaky test, see https://github.com/prometheus/prometheus/issues/16212") + } t.Parallel() runner := newTestRunner(t)