Skip to content

[Fix-18269][Master] Move LogicFakeTask to test scope#18270

Merged
SbloodyS merged 1 commit into
apache:devfrom
ruanwenjun:codex/logic-fake-task-test-scope
May 15, 2026
Merged

[Fix-18269][Master] Move LogicFakeTask to test scope#18270
SbloodyS merged 1 commit into
apache:devfrom
ruanwenjun:codex/logic-fake-task-test-scope

Conversation

@ruanwenjun
Copy link
Copy Markdown
Member

Was this PR generated or assisted by AI?

YES. The code change, verification, and PR description were assisted by OpenAI Codex.

Purpose of the pull request

Close #18269.

LogicFakeTask is intended only for master integration tests, but it was compiled from production source sets and registered as a production task type. This pull request moves the fake task implementation and related plugin code to test scope so it is no longer packaged into production binaries.

Brief change log

  • Move LogicFakeTask, LogicFakeTaskPluginFactory, LogicFakeTaskChannel, LogicFakeTaskChannelFactory, and LogicFakeTaskParameters into dolphinscheduler-master test sources.
  • Register the fake task channel from test scope with @AutoService(TaskChannelFactory.class).
  • Add a regression test to verify production TaskPluginManager cannot load LogicFakeTask.

Verify this pull request

This change added tests and can be verified as follows:

  • ./mvnw -pl dolphinscheduler-task-plugin/dolphinscheduler-task-api -Dtest=TaskPluginManagerTest -Djacoco.skip=true test
  • ./mvnw -pl dolphinscheduler-master -Dtest=WorkflowStartBasicTestCase#testStartWorkflow_with_oneSuccessTask -Djacoco.skip=true clean test

Pull Request Notice

Pull Request Notice

This pull request does not contain incompatible changes.

@ruanwenjun ruanwenjun force-pushed the codex/logic-fake-task-test-scope branch from 71b20e6 to 3567e46 Compare May 15, 2026 06:16
@SbloodyS SbloodyS added this to the 3.4.2 milestone May 15, 2026
@SbloodyS SbloodyS added the bug Something isn't working label May 15, 2026
Copy link
Copy Markdown
Member

@SbloodyS SbloodyS left a comment

Choose a reason for hiding this comment

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

LGTM

@sonarqubecloud
Copy link
Copy Markdown

@SbloodyS SbloodyS merged commit 9d3c008 into apache:dev May 15, 2026
142 of 148 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend bug Something isn't working test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] [Master] LogicFakeTask is packaged into binary and exposed

2 participants