Skip to content

[SPARK-51495] Add Integration Test GitHub Action job with 4.0.0-preview2 #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Mar 12, 2025

What changes were proposed in this pull request?

This PR aims to add Integration Test GitHub Action job.

Why are the changes needed?

To provide a test coverage on at least Apache Spark 4.0.0-preview2. Since this is limited, we are going to upgrade to 4.0.0 when the Apache Spark 4.0.0 is available.

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.

@dongjoon-hyun dongjoon-hyun force-pushed the test branch 5 times, most recently from 9e0f786 to f88457a Compare March 13, 2025 00:02
@dongjoon-hyun dongjoon-hyun changed the title Run test [SPARK-51495] Add Integration Test GitHub Action job Mar 13, 2025
@dongjoon-hyun dongjoon-hyun marked this pull request as ready for review March 13, 2025 00:18
@@ -81,6 +81,7 @@ struct DataFrameTests {
await spark.stop()
}

#if !os(Linux)
Copy link
Member Author

@dongjoon-hyun dongjoon-hyun Mar 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is ignored on Linux environment due to the Swift library difference. Linux test coverage will be recovered later.

Please note that these pass on Mac.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it only for this test?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, only show related 3 tests.

@@ -31,7 +31,7 @@ struct RuntimeConfTests {
_ = try await client.connect(UUID().uuidString)
let conf = RuntimeConf(client)

#expect(try await conf.get("spark.app.name") == "Spark Connect server")
#expect(try await conf.get("spark.app.name") != nil)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes the test more robust.

@@ -56,7 +56,6 @@ struct SparkSessionTests {
@Test
func conf() async throws {
let spark = try await SparkSession.builder.getOrCreate()
#expect(try await spark.conf.get("spark.app.name") == "Spark Connect server")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spark.app.name is covered already.

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-51495] Add Integration Test GitHub Action job [SPARK-51495] Add Integration Test GitHub Action job with 4.0.0-preview2 Mar 13, 2025
@dongjoon-hyun
Copy link
Member Author

Could you review this when you have some time, @viirya ?

@dongjoon-hyun
Copy link
Member Author

Thank you, @viirya . Merged to main.

@dongjoon-hyun dongjoon-hyun deleted the test branch March 13, 2025 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants