Skip to content

Commit

Permalink
Skip flaky tests on windows while root cause is being investigated (#…
Browse files Browse the repository at this point in the history
…6734) (#6831)

(cherry picked from commit 09c9abc)

Co-authored-by: Paolo Chilà <[email protected]>
Co-authored-by: Pierre HILBERT <[email protected]>
  • Loading branch information
3 people authored Feb 18, 2025
1 parent 58d496b commit f03e20b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions testing/integration/upgrade_gpg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ package integration

import (
"context"
"runtime"
"strings"
"testing"
"time"
Expand Down Expand Up @@ -98,6 +99,10 @@ func TestStandaloneUpgradeWithGPGFallbackOneRemoteFailing(t *testing.T) {
Sudo: true, // requires Agent installation
})

if runtime.GOOS == "windows" {
t.Skip("This test is flaky on windows. See https://github.com/elastic/elastic-agent/issues/6732")
}

minVersion := upgradetest.Version_8_10_0_SNAPSHOT
currentVersion, err := version.ParseVersion(define.Version())
require.NoError(t, err)
Expand Down
4 changes: 4 additions & 0 deletions testing/integration/upgrade_rollback_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@ func TestStandaloneUpgradeRollbackOnRestarts(t *testing.T) {
Sudo: true, // requires Agent installation
})

if runtime.GOOS == "windows" {
t.Skip("This test is flaky on windows. See https://github.com/elastic/elastic-agent/issues/6733")
}

ctx, cancel := testcontext.WithDeadline(t, context.Background(), time.Now().Add(10*time.Minute))
defer cancel()

Expand Down
5 changes: 5 additions & 0 deletions testing/integration/upgrade_standalone_retry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"net/http"
"path"
"path/filepath"
"runtime"
"strings"
"testing"
"time"
Expand All @@ -33,6 +34,10 @@ func TestStandaloneUpgradeRetryDownload(t *testing.T) {
Sudo: true, // requires Agent installation
})

if runtime.GOOS == "windows" {
t.Skip("This test is flaky on windows. See https://github.com/elastic/elastic-agent/issues/6731")
}

ctx, cancel := testcontext.WithDeadline(t, context.Background(), time.Now().Add(10*time.Minute))
defer cancel()

Expand Down
6 changes: 6 additions & 0 deletions testing/integration/upgrade_standalone_same_commit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"os"
"path"
"path/filepath"
"runtime"
"strings"
"testing"
"time"
Expand Down Expand Up @@ -81,6 +82,11 @@ func TestStandaloneUpgradeSameCommit(t *testing.T) {
})

t.Run(fmt.Sprintf("Upgrade on a repackaged version of agent %s (%s)", currentVersion, unPrivilegedString), func(t *testing.T) {

if runtime.GOOS == "windows" {
t.Skip("This test is flaky on windows. See https://github.com/elastic/elastic-agent/issues/6729")
}

ctx, cancel := testcontext.WithDeadline(t, context.Background(), time.Now().Add(10*time.Minute))
defer cancel()

Expand Down

0 comments on commit f03e20b

Please sign in to comment.