Skip to content

Conversation

@caishunfeng
Copy link
Contributor

Purpose of the pull request

add switch args check to avoid illegal condition.

Brief change log

  • SwitchLogicTask

Verify this pull request

  • Added UT SwitchTaskUtilsTest

@caishunfeng caishunfeng self-assigned this Nov 26, 2023
@caishunfeng caishunfeng added bug Something isn't working 3.1.x for 3.1.x version backend and removed backend labels Nov 26, 2023
@codecov-commenter
Copy link

codecov-commenter commented Nov 26, 2023

Codecov Report

Attention: 18 lines in your changes are missing coverage. Please review.

Comparison is base (12f8138) 37.99% compared to head (2c8088f) 38.02%.

❗ Current head 2c8088f differs from pull request most recent head f8a412f. Consider uploading reports for the commit f8a412f to get more accurate results

Files Patch % Lines
...master/runner/task/switchtask/SwitchLogicTask.java 0.00% 10 Missing ⚠️
...scheduler/server/master/utils/SwitchTaskUtils.java 69.23% 3 Missing and 5 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                dev   #15228      +/-   ##
============================================
+ Coverage     37.99%   38.02%   +0.03%     
- Complexity     4640     4645       +5     
============================================
  Files          1279     1279              
  Lines         44490    44500      +10     
  Branches       4794     4797       +3     
============================================
+ Hits          16902    16923      +21     
+ Misses        25733    25717      -16     
- Partials       1855     1860       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 1 Security Hotspot
Code Smell A 5 Code Smells

63.0% 63.0% Coverage
0.0% 0.0% Duplication

Copy link
Member

@zhongjiajie zhongjiajie left a comment

Choose a reason for hiding this comment

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

👍

@caishunfeng caishunfeng merged commit b5eddc0 into apache:dev Nov 27, 2023
@caishunfeng caishunfeng deleted the fix/switch_condition branch November 27, 2023 06:03
@zhongjiajie zhongjiajie added this to the 3.1.9 milestone Dec 5, 2023
caishunfeng added a commit to caishunfeng/dolphinscheduler that referenced this pull request Dec 19, 2023
zhuangchong pushed a commit that referenced this pull request Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.1.x for 3.1.x version backend bug Something isn't working ready-to-merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants