Skip to content

Commit c4f254b

Browse files
committed
[SPARK-52030] Make all test suites serialized
### What changes were proposed in this pull request? This PR aims to make all test suites serialized. ### Why are the changes needed? To stabilize CI runs by introducing a deterministic test order. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass the CIs. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #115 from dongjoon-hyun/SPARK-52030. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent e1e8a32 commit c4f254b

11 files changed

+11
-0
lines changed

Tests/SparkConnectTests/CaseInsensitiveDictionaryTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import Testing
2323
@testable import SparkConnect
2424

2525
/// A test suite for `CaseInsensitiveDictionary`
26+
@Suite(.serialized)
2627
struct CaseInsensitiveDictionaryTests {
2728
@Test
2829
func empty() async throws {

Tests/SparkConnectTests/CatalogTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import Testing
2323
@testable import SparkConnect
2424

2525
/// A test suite for `Catalog`
26+
@Suite(.serialized)
2627
struct CatalogTests {
2728
#if !os(Linux)
2829
@Test

Tests/SparkConnectTests/DataFrameInternalTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import Testing
2222
@testable import SparkConnect
2323

2424
/// A test suite for `DataFrame` internal APIs
25+
@Suite(.serialized)
2526
struct DataFrameInternalTests {
2627

2728
#if !os(Linux)

Tests/SparkConnectTests/DataFrameReaderTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import Testing
2323
import SparkConnect
2424

2525
/// A test suite for `DataFrameReader`
26+
@Suite(.serialized)
2627
struct DataFrameReaderTests {
2728

2829
@Test

Tests/SparkConnectTests/DataFrameTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import Testing
2323
import SparkConnect
2424

2525
/// A test suite for `DataFrame`
26+
@Suite(.serialized)
2627
struct DataFrameTests {
2728
let DEALER_TABLE =
2829
"""

Tests/SparkConnectTests/DataFrameWriterTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import Testing
2323
import SparkConnect
2424

2525
/// A test suite for `DataFrameWriter`
26+
@Suite(.serialized)
2627
struct DataFrameWriterTests {
2728

2829
@Test

Tests/SparkConnectTests/DataFrameWriterV2Tests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import SparkConnect
2222
import Testing
2323

2424
/// A test suite for `DataFrameWriterV2`
25+
@Suite(.serialized)
2526
struct DataFrameWriterV2Tests {
2627

2728
@Test

Tests/SparkConnectTests/RowTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import SparkConnect
2222
import Testing
2323

2424
/// A test suite for `Row`
25+
@Suite(.serialized)
2526
struct RowTests {
2627
@Test
2728
func empty() {

Tests/SparkConnectTests/SQLTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import Testing
2323
@testable import SparkConnect
2424

2525
/// A test suite for various SQL statements.
26+
@Suite(.serialized)
2627
struct SQLTests {
2728
let fm = FileManager.default
2829
let path = Bundle.module.path(forResource: "queries", ofType: "")!

Tests/SparkConnectTests/SparkFileUtilsTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import Testing
2323
@testable import SparkConnect
2424

2525
/// A test suite for `SparkFileUtils`
26+
@Suite(.serialized)
2627
struct SparkFileUtilsTests {
2728
let fm = FileManager.default
2829

0 commit comments

Comments
 (0)