Skip to content

Commit 63e2ffc

Browse files
[TEST-ONLY] Partial revert #302 (#303)
Unfortunately, caching tests are still flaky in some CI infrastructure. Partially revert by keeping the `.flaky` tags but leaving the test fixes.
1 parent 5fae212 commit 63e2ffc

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Tests/SWBBuildSystemTests/ClangCompilationCachingTests.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ import SWBTestSupport
1919
import SWBUtil
2020

2121
@Suite(.skipHostOS(.windows, "Windows platform has no CAS support yet"),
22-
.requireCompilationCaching, .requireDependencyScannerPlusCaching)
22+
.requireCompilationCaching, .requireDependencyScannerPlusCaching,
23+
.flaky("A handful of Swift Build CAS tests fail when running the entire test suite"), .bug("rdar://146781403"))
2324
fileprivate struct ClangCompilationCachingTests: CoreBasedTests {
2425
let canUseCASPlugin: Bool
2526
let canUseCASPruning: Bool

Tests/SWBBuildSystemTests/ClangModuleVerifierTests.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ fileprivate struct ClangModuleVerifierTests: CoreBasedTests {
191191
}
192192
}
193193

194-
@Test(.requireSDKs(.macOS), .requireClangFeatures(.wSystemHeadersInModule), .requireDependencyScannerPlusCaching, .requireCompilationCaching)
194+
@Test(.requireSDKs(.macOS), .requireClangFeatures(.wSystemHeadersInModule), .requireDependencyScannerPlusCaching, .requireCompilationCaching,
195+
.flaky("A handful of Swift Build CAS tests fail when running the entire test suite"), .bug("rdar://146781403"))
195196
func cachedBuild() async throws {
196197
try await withTemporaryDirectory { (tmpDirPath: Path) in
197198
let archs = ["arm64", "x86_64"]

Tests/SWBBuildSystemTests/SwiftCompilationCachingTests.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ import SWBUtil
1818

1919
import SWBTaskExecution
2020

21-
@Suite(.requireSwiftFeatures(.compilationCaching), .requireCompilationCaching)
21+
@Suite(.requireSwiftFeatures(.compilationCaching), .requireCompilationCaching,
22+
.flaky("A handful of Swift Build CAS tests fail when running the entire test suite"), .bug("rdar://146781403"))
2223
fileprivate struct SwiftCompilationCachingTests: CoreBasedTests {
2324
@Test(.requireSDKs(.iOS))
2425
func swiftCachingSimple() async throws {

0 commit comments

Comments
 (0)