build: skip flaky tests in ci

This commit is contained in:
lightclient 2024-05-23 11:05:58 +02:00
parent 7fd7c1f7dd
commit 150aa20c3a
No known key found for this signature in database
GPG key ID: 75C916AFEE20183E

View file

@ -130,6 +130,14 @@ var (
// This is where the tests should be unpacked. // This is where the tests should be unpacked.
executionSpecTestsDir = "tests/spec-tests" 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")) var GOBIN, _ = filepath.Abs(filepath.Join("build", "bin"))
@ -299,6 +307,9 @@ func doTest(cmdline []string) {
// Enable CKZG backend in CI. // Enable CKZG backend in CI.
gotest.Args = append(gotest.Args, "-tags=ckzg") 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 // Enable integration-tests
gotest.Args = append(gotest.Args, "-tags=integrationtests") gotest.Args = append(gotest.Args, "-tags=integrationtests")