[Fix-16617][Seatunnel] Use master option for engine deploy mode#18315
[Fix-16617][Seatunnel] Use master option for engine deploy mode#18315JinRudy wants to merge 1 commit into
Conversation
|
Thanks for opening this pull request! Please check out our contributing guidelines. (https://github.com/apache/dolphinscheduler/blob/dev/docs/docs/en/contribute/join/pull-request.md) |
| public List<String> buildOptions() throws Exception { | ||
| List<String> args = super.buildOptions(); | ||
| if (!Objects.isNull(seatunnelParameters.getDeployMode())) { | ||
| args.add(Constants.DEPLOY_MODE_OPTIONS); |
There was a problem hiding this comment.
You should remove Constants.DEPLOY_MODE_OPTIONS since it's useless.
There was a problem hiding this comment.
Addressed in 935c4b6 by removing Constants.DEPLOY_MODE_OPTIONS and inlining the Spark task --deploy-mode argument to preserve the existing Spark command behavior.
There was a problem hiding this comment.
You remove the usage of Constants.DEPLOY_MODE_OPTIONS. But it didn't modify its test and remove this constant.
There was a problem hiding this comment.
Updated in the latest push: Constants.DEPLOY_MODE_OPTIONS is removed, and the engine path is covered by SeatunnelEngineTaskTest.
SbloodyS
left a comment
There was a problem hiding this comment.
Please using english in commit messages.
| public List<String> buildOptions() throws Exception { | ||
| List<String> args = super.buildOptions(); | ||
| args.add(DEPLOY_MODE_OPTIONS); | ||
| args.add("--deploy-mode"); |
There was a problem hiding this comment.
Please remove the related tests.
There was a problem hiding this comment.
Updated, thanks. I removed the test change and rewrote the branch with a single English commit.
There was a problem hiding this comment.
Updated. I reverted the Spark/constant cleanup and kept this scoped to the SeaTunnel engine path; the PR now changes only SeatunnelEngineTask.
There was a problem hiding this comment.
You also need to fix the related tests.
There was a problem hiding this comment.
Added the engine buildOptions tests and reran the Seatunnel module checks locally.
4152d48 to
adbc2d8
Compare
634a73f to
cf1d21d
Compare
|
Hi @SbloodyS, thanks for the follow-up. I added
I also rebased the branch onto the latest Local verification: Please take another look when you have a chance. |
cf1d21d to
c02ffb1
Compare
c02ffb1 to
937175a
Compare
|
The main issue is that you did not understand the context or the problem itself, and instead blindly used AI to submit code. That is not an appropriate approach. The purpose of unit tests is to verify real behavior, not just to run empty test cases. A meaningful unit test should assert the expected outcome, cover the relevant logic, and fail when the implementation is incorrect. Just as I said in #18315 (review) |
|


Was this PR generated or assisted by AI?
YES. OpenAI Codex assisted with the change and verification.
Purpose of the pull request
Close #16617.
SeaTunnel 2.3.7 still uses
--deploy-modefor the Spark and Flink starters. The deprecation warning reported in the issue comes from theseatunnel.shclient path, where-e/--deploy-modeis deprecated in favor of-m/--master.This PR updates the SeaTunnel engine command generated for
seatunnel.sh, removes the now-unused sharedDEPLOY_MODE_OPTIONSconstant, and keeps Spark behavior unchanged.Brief change log
--masterfor the SeaTunnel engine task deploy mode argument.DEPLOY_MODE_OPTIONSconstant.SeatunnelEngineTaskTestcoverage for the enginebuildOptionspath.Verify this pull request
git diff --checkJAVA_HOME=/opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home PATH=/opt/homebrew/opt/openjdk@17/bin:$PATH ./mvnw -pl dolphinscheduler-task-plugin/dolphinscheduler-task-seatunnel -am -Dtest=SeatunnelEngineTaskTest,SeatunnelTaskTest,SeatunnelParametersTest -Dsurefire.failIfNoTests=false -Dsurefire.failIfNoSpecifiedTests=false -Dspotless.skip=true -Danalyze.skip=true -Djacoco.skip=true -DskipDepCheck=true testJAVA_HOME=/opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home PATH=/opt/homebrew/opt/openjdk@17/bin:$PATH ./mvnw -pl dolphinscheduler-task-plugin/dolphinscheduler-task-seatunnel -DskipTests -Djacoco.skip=true -DskipDepCheck=true spotless:checkPull Request Notice
This pull request does not contain incompatible changes.