Skip to content

Commit 2c92949

Browse files
authored
pass --add-opens to Spark PVR test JVM on Java 21 (#39278)
1 parent 7d682e2 commit 2c92949

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"comment": "Modify this file in a trivial way to cause this test suite to run",
3-
"modification": 5
3+
"modification": 6
44
}

runners/spark/job-server/spark_job_server.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,13 @@ def sparkJobServerJvmArgs() {
280280
return []
281281
}
282282

283+
// TestPortableRunner starts SparkJobServerDriver in-process in the test JVM.
284+
['validatesPortableRunnerDocker', 'validatesPortableRunnerBatch', 'validatesPortableRunnerStreaming'].each { taskName ->
285+
tasks.named(taskName) {
286+
jvmArgs += sparkJobServerJvmArgs()
287+
}
288+
}
289+
283290
def setupTask = project.tasks.register("sparkJobServerSetup", Exec) {
284291
dependsOn shadowJar
285292
def pythonDir = project.project(":sdks:python").projectDir

0 commit comments

Comments
 (0)