Skip to content

[LIVY-1085][TEST] Skip remaining R test paths when -DskipRTests is specified - #561

Open
gyogal wants to merge 1 commit into
apache:masterfrom
gyogal:LIVY-1085
Open

gyogal wants to merge 1 commit into
apache:masterfrom
gyogal:LIVY-1085

Conversation

@gyogal

@gyogal gyogal commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Two R-dependent tests (SharedSessionSpec, InteractiveSessionSpec) ran a
real sparkr interpreter even with -DskipRTests=true, unlike every other
R test in the suite. Guard both with the same sys.props pattern already
used by SparkRInterpreterSpec/SparkRSessionSpec/BatchIT/InteractiveIT,
and make InteractiveSessionSpec's downstream execution_count expectation
conditional on the flag, since it depends on the skipped R statement
having incremented the session's shared statement counter.

How was this patch tested?

Verified via mvn test runs of both specs with -DskipRTests=true (R test cancels,
rest pass) and the default -DskipRTests=false on a machine with R installed.

Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Code (claude-sonnet-5)

…ecified

Two R-dependent tests (SharedSessionSpec, InteractiveSessionSpec) ran a
real sparkr interpreter even with -DskipRTests=true, unlike every other
R test in the suite. Guard both with the same sys.props pattern already
used by SparkRInterpreterSpec/SparkRSessionSpec/BatchIT/InteractiveIT,
and make InteractiveSessionSpec's downstream execution_count expectation
conditional on the flag, since it depends on the skipped R statement
having incremented the session's shared statement counter.

Verified via mvn test runs of both specs with -DskipRTests=true (R test
cancels, rest pass) and the default -DskipRTests=false on a machine with
R installed.

Generated-by: Claude Code (claude-sonnet-5)
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.

1 participant