dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[Improvement-17057][Master] Check if the WorkflowGrapth is a dag at constructor

Open yingh0ng opened this issue 10 months ago • 9 comments

Purpose of the pull request

Check if the WorkflowGrapth is a dag close #17057

Brief change log

Conclusion: A graph is not a DAG if its task length is less than the total number of tasks after topological sorting

Verify this pull request

This change added tests and can be verified as follows:

  • WorkflowGraphCheckIfDAGTest

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

yingh0ng avatar Mar 14 '25 10:03 yingh0ng

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)

boring-cyborg[bot] avatar Mar 14 '25 10:03 boring-cyborg[bot]

Update: When a ring exists, it is not a DAG

yingh0ng avatar Mar 17 '25 10:03 yingh0ng

@SbloodyS Hello, please take a look.

yingh0ng avatar Mar 20 '25 06:03 yingh0ng

@SbloodyS The Mergeable check failed because this PR was not added to the milestone.

yingh0ng avatar Mar 21 '25 09:03 yingh0ng

@ruanwenjun PTAL

yingh0ng avatar Apr 08 '25 06:04 yingh0ng

@ruanwenjun @SbloodyS PTAL

yingh0ng avatar May 09 '25 10:05 yingh0ng

Can somebody review this again.

yingh0ng avatar Jun 05 '25 02:06 yingh0ng

Please retry analysis of this Pull-Request directly on SonarQube Cloud

sonarqubecloud[bot] avatar Jun 05 '25 15:06 sonarqubecloud[bot]

Closing for inactivity.

SbloodyS avatar Aug 06 '25 01:08 SbloodyS