You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by do...@apache.org on 2025/05/08 00:29:24 UTC
(spark-connect-swift) branch main updated: [SPARK-52030] Make all test suites serialized
This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/spark-connect-swift.git
The following commit(s) were added to refs/heads/main by this push:
new c4f254b [SPARK-52030] Make all test suites serialized
c4f254b is described below
commit c4f254b6cf4101260a129c73c52b244313bf19a0
Author: Dongjoon Hyun <do...@apache.org>
AuthorDate: Wed May 7 17:29:16 2025 -0700
[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 <do...@apache.org>
Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
Tests/SparkConnectTests/CaseInsensitiveDictionaryTests.swift | 1 +
Tests/SparkConnectTests/CatalogTests.swift | 1 +
Tests/SparkConnectTests/DataFrameInternalTests.swift | 1 +
Tests/SparkConnectTests/DataFrameReaderTests.swift | 1 +
Tests/SparkConnectTests/DataFrameTests.swift | 1 +
Tests/SparkConnectTests/DataFrameWriterTests.swift | 1 +
Tests/SparkConnectTests/DataFrameWriterV2Tests.swift | 1 +
Tests/SparkConnectTests/RowTests.swift | 1 +
Tests/SparkConnectTests/SQLTests.swift | 1 +
Tests/SparkConnectTests/SparkFileUtilsTests.swift | 1 +
Tests/SparkConnectTests/SparkSessionTests.swift | 1 +
11 files changed, 11 insertions(+)
diff --git a/Tests/SparkConnectTests/CaseInsensitiveDictionaryTests.swift b/Tests/SparkConnectTests/CaseInsensitiveDictionaryTests.swift
index 481dcc3..a2e51f3 100644
--- a/Tests/SparkConnectTests/CaseInsensitiveDictionaryTests.swift
+++ b/Tests/SparkConnectTests/CaseInsensitiveDictionaryTests.swift
@@ -23,6 +23,7 @@ import Testing
@testable import SparkConnect
/// A test suite for `CaseInsensitiveDictionary`
+@Suite(.serialized)
struct CaseInsensitiveDictionaryTests {
@Test
func empty() async throws {
diff --git a/Tests/SparkConnectTests/CatalogTests.swift b/Tests/SparkConnectTests/CatalogTests.swift
index 5739399..053daf9 100644
--- a/Tests/SparkConnectTests/CatalogTests.swift
+++ b/Tests/SparkConnectTests/CatalogTests.swift
@@ -23,6 +23,7 @@ import Testing
@testable import SparkConnect
/// A test suite for `Catalog`
+@Suite(.serialized)
struct CatalogTests {
#if !os(Linux)
@Test
diff --git a/Tests/SparkConnectTests/DataFrameInternalTests.swift b/Tests/SparkConnectTests/DataFrameInternalTests.swift
index d557400..96e8fc2 100644
--- a/Tests/SparkConnectTests/DataFrameInternalTests.swift
+++ b/Tests/SparkConnectTests/DataFrameInternalTests.swift
@@ -22,6 +22,7 @@ import Testing
@testable import SparkConnect
/// A test suite for `DataFrame` internal APIs
+@Suite(.serialized)
struct DataFrameInternalTests {
#if !os(Linux)
diff --git a/Tests/SparkConnectTests/DataFrameReaderTests.swift b/Tests/SparkConnectTests/DataFrameReaderTests.swift
index b4c7599..3c63116 100644
--- a/Tests/SparkConnectTests/DataFrameReaderTests.swift
+++ b/Tests/SparkConnectTests/DataFrameReaderTests.swift
@@ -23,6 +23,7 @@ import Testing
import SparkConnect
/// A test suite for `DataFrameReader`
+@Suite(.serialized)
struct DataFrameReaderTests {
@Test
diff --git a/Tests/SparkConnectTests/DataFrameTests.swift b/Tests/SparkConnectTests/DataFrameTests.swift
index 1d5a785..693f371 100644
--- a/Tests/SparkConnectTests/DataFrameTests.swift
+++ b/Tests/SparkConnectTests/DataFrameTests.swift
@@ -23,6 +23,7 @@ import Testing
import SparkConnect
/// A test suite for `DataFrame`
+@Suite(.serialized)
struct DataFrameTests {
let DEALER_TABLE =
"""
diff --git a/Tests/SparkConnectTests/DataFrameWriterTests.swift b/Tests/SparkConnectTests/DataFrameWriterTests.swift
index 464e288..3ad1234 100644
--- a/Tests/SparkConnectTests/DataFrameWriterTests.swift
+++ b/Tests/SparkConnectTests/DataFrameWriterTests.swift
@@ -23,6 +23,7 @@ import Testing
import SparkConnect
/// A test suite for `DataFrameWriter`
+@Suite(.serialized)
struct DataFrameWriterTests {
@Test
diff --git a/Tests/SparkConnectTests/DataFrameWriterV2Tests.swift b/Tests/SparkConnectTests/DataFrameWriterV2Tests.swift
index e6e7aa1..ab3252f 100644
--- a/Tests/SparkConnectTests/DataFrameWriterV2Tests.swift
+++ b/Tests/SparkConnectTests/DataFrameWriterV2Tests.swift
@@ -22,6 +22,7 @@ import SparkConnect
import Testing
/// A test suite for `DataFrameWriterV2`
+@Suite(.serialized)
struct DataFrameWriterV2Tests {
@Test
diff --git a/Tests/SparkConnectTests/RowTests.swift b/Tests/SparkConnectTests/RowTests.swift
index 3262686..8472b94 100644
--- a/Tests/SparkConnectTests/RowTests.swift
+++ b/Tests/SparkConnectTests/RowTests.swift
@@ -22,6 +22,7 @@ import SparkConnect
import Testing
/// A test suite for `Row`
+@Suite(.serialized)
struct RowTests {
@Test
func empty() {
diff --git a/Tests/SparkConnectTests/SQLTests.swift b/Tests/SparkConnectTests/SQLTests.swift
index b81e94a..a9c6b71 100644
--- a/Tests/SparkConnectTests/SQLTests.swift
+++ b/Tests/SparkConnectTests/SQLTests.swift
@@ -23,6 +23,7 @@ import Testing
@testable import SparkConnect
/// A test suite for various SQL statements.
+@Suite(.serialized)
struct SQLTests {
let fm = FileManager.default
let path = Bundle.module.path(forResource: "queries", ofType: "")!
diff --git a/Tests/SparkConnectTests/SparkFileUtilsTests.swift b/Tests/SparkConnectTests/SparkFileUtilsTests.swift
index 642b6ee..a003c64 100644
--- a/Tests/SparkConnectTests/SparkFileUtilsTests.swift
+++ b/Tests/SparkConnectTests/SparkFileUtilsTests.swift
@@ -23,6 +23,7 @@ import Testing
@testable import SparkConnect
/// A test suite for `SparkFileUtils`
+@Suite(.serialized)
struct SparkFileUtilsTests {
let fm = FileManager.default
diff --git a/Tests/SparkConnectTests/SparkSessionTests.swift b/Tests/SparkConnectTests/SparkSessionTests.swift
index e57e3df..9097e99 100644
--- a/Tests/SparkConnectTests/SparkSessionTests.swift
+++ b/Tests/SparkConnectTests/SparkSessionTests.swift
@@ -23,6 +23,7 @@ import Testing
@testable import SparkConnect
/// A test suite for `SparkSession`
+@Suite(.serialized)
struct SparkSessionTests {
@Test
func sparkContext() async throws {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org