Skip to content

test: add spark4 test to presubmit - #118

Closed
mutianf wants to merge 1 commit into
GoogleCloudDataproc:mainfrom
mutianf:test
Closed

test: add spark4 test to presubmit#118
mutianf wants to merge 1 commit into
GoogleCloudDataproc:mainfrom
mutianf:test

Conversation

@mutianf

@mutianf mutianf commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request merges the presubmit-spark4 block into the presubmit block in .kokoro/build.sh. A critical issue was identified where resetting RETURN_CODE to 0 in the merged block discards the exit status of preceding tests, which could cause test failures to be ignored.

Comment thread .kokoro/build.sh
Comment on lines +304 to 305

# This job runs on the java17 image; Spark 4.0 needs the JPMS --add-opens flags.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

Merging the presubmit-spark4 block into presubmit introduces a critical bug: on line 307, RETURN_CODE is reset to 0 (RETURN_CODE=0). This discards the exit status of all the preceding Spark 3.x tests (lines 291-303), meaning any failures in those tests will be ignored and the presubmit job will incorrectly report success. Please remove the RETURN_CODE=0 statement on line 307 so that failures from all tests are properly accumulated.

@mutianf mutianf closed this Aug 3, 2026
@mutianf
mutianf deleted the test branch August 3, 2026 14:49
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