itest: track and skip flaky tests for windows

To make the CI indicative, we now starting tracking the flaky tests
found when running on Windows. As a starting point, rather than ignore
the windows CI entirely, we now identify there are cases where lnd can
be buggy when running in windows.

We should fix the tests in the future, otherwise the windows build
should be deleted.
This commit is contained in:
yyforyongyu committed 2024-12-20 19:38:12 +08:00
1 parent e79ad6e5aa
commit efe81f2d3c
3 files changed
+128

No files matched your search

+15
View File
@@ -695,4 +695,19 @@ func init() {
allTestCases = append(allTestCases, walletImportAccountTestCases...)
allTestCases = append(allTestCases, basicFundingTestCases...)
allTestCases = append(allTestCases, sendToRouteTestCases...)
// Prepare the test cases for windows to exclude some of the flaky
// ones.
//
// NOTE: We need to run this before the isWindowsOS check to make sure
// the excluded tests are found in allTestCases. Otherwise, if a
// non-existing test is included in excludedTestsWindows, we won't be
// able to find it until it's pushed to the CI, which creates a much
// longer feedback loop.
windowsTestCases := filterWindowsFlakyTests()
// If this is Windows, we'll skip running some of the flaky tests.
if isWindowsOS() {
allTestCases = windowsTestCases
}
}