Skip to content

[Chore] Unit-Test optimize#18214

Open
SbloodyS wants to merge 11 commits intoapache:devfrom
SbloodyS:ut_performance_optimize
Open

[Chore] Unit-Test optimize#18214
SbloodyS wants to merge 11 commits intoapache:devfrom
SbloodyS:ut_performance_optimize

Conversation

@SbloodyS
Copy link
Copy Markdown
Member

@SbloodyS SbloodyS commented May 2, 2026

Was this PR generated or assisted by AI?

Yes.

Purpose of the pull request

  • Adding parallel execution of intergration tests.
  • The WorkflowStartTestCase is divided into multiple test cases for parallel execution base of the use case.

The test execution time was reduced from 30 minutes to 11 minutes.

  • The console adds test cases for printing execution.
[INFO] org.apache.dolphinscheduler.server.master.integration.cases.WorkflowInstanceFailoverTestCase.testGlobalFailover_runningWorkflow_fromAnotherMaster -- Time elapsed: 4.548 s
[INFO] org.apache.dolphinscheduler.server.master.integration.cases.WorkflowInstanceFailoverTestCase.testGlobalFailover_runningWorkflow_withDispatchTasks -- Time elapsed: 9.075 s
[INFO] org.apache.dolphinscheduler.server.master.integration.cases.WorkflowInstanceFailoverTestCase.testMasterFailover_readyPauseWorkflow_takeOverSubWorkflowOnChildNotHealthy -- Time elapsed: 4.165 s
[INFO] org.apache.dolphinscheduler.server.master.integration.cases.WorkflowInstanceFailoverTestCase.testGlobalFailover_readyStopWorkflow_withSubmittedTasks -- Time elapsed: 3.333 s
[INFO] org.apache.dolphinscheduler.server.master.integration.cases.WorkflowInstanceFailoverTestCase.testGlobalFailover_readyPauseWorkflow_withFailedTasks -- Time elapsed: 3.333 s
[INFO] org.apache.dolphinscheduler.server.master.integration.cases.WorkflowInstanceFailoverTestCase.testMasterFailover_runningWorkflow_takeOverSubWorkflowOnParentHealthy -- Time elapsed: 13.66 s
[INFO] org.apache.dolphinscheduler.server.master.integration.cases.WorkflowInstanceFailoverTestCase.testMasterFailover_readyStopWorkflow_takeOverSubWorkflowOnChildNotHealthy -- Time elapsed: 4.142 s
[INFO] Running org.apache.dolphinscheduler.server.master.integration.cases.WorkflowStartTaskGroupTestCase

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(or)

Pull Request Notice

Pull Request Notice

If your pull request contains incompatible change, you should also add it to docs/docs/en/guide/upgrade/incompatible.md

@SbloodyS SbloodyS added this to the 3.4.2 milestone May 2, 2026
@SbloodyS SbloodyS self-assigned this May 2, 2026
@SbloodyS SbloodyS marked this pull request as draft May 2, 2026 14:47
@SbloodyS SbloodyS marked this pull request as ready for review May 4, 2026 10:06
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 4, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant