From 150aa20c3a932ccc61a010e5617c3defc5c1fd9a Mon Sep 17 00:00:00 2001 From: lightclient Date: Thu, 23 May 2024 11:05:58 +0200 Subject: [PATCH] build: skip flaky tests in ci --- build/ci.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build/ci.go b/build/ci.go index 9a2532f51f..832f07767f 100644 --- a/build/ci.go +++ b/build/ci.go @@ -130,6 +130,14 @@ var ( // This is where the tests should be unpacked. executionSpecTestsDir = "tests/spec-tests" + + // Tests to skip in CI. + // TODO: improve below tests so they aren't so flaky. + skipTests = []string{ + "TestSkeletonSyncRetrievals", + "TestUpdatedKeyfileContents", + "TestForkResendTx", + } ) var GOBIN, _ = filepath.Abs(filepath.Join("build", "bin")) @@ -299,6 +307,9 @@ func doTest(cmdline []string) { // Enable CKZG backend in CI. gotest.Args = append(gotest.Args, "-tags=ckzg") + // Skips designated tests. + gotest.Args = append(gotest.Args, fmt.Sprintf("-skip=(%s)", strings.Join(skipTests, "|"))) + // Enable integration-tests gotest.Args = append(gotest.Args, "-tags=integrationtests")