-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(controller): Updates GetTaskAncestry to skip visited nod. Fixes #1907 #1908
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1908 +/- ##
=========================================
+ Coverage 11.34% 13.14% +1.8%
=========================================
Files 75 72 -3
Lines 31291 25087 -6204
=========================================
- Hits 3549 3297 -252
+ Misses 27266 21375 -5891
+ Partials 476 415 -61
Continue to review full report at Codecov.
|
workflow/common/ancestry.go
Outdated
if currTask != taskName { | ||
if _, ok := visited[currTask]; !ok { | ||
visited[currTask] = getTimeFinished(ctx, currTask) | ||
if !visitedFlag[currTask]{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jessesuen @sarabala1979 is there a good reason to revisit these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this being reviewed ? please let me know if I missed something
finally resolved CLA issue. Is there any update on this plz? |
Couple of things need doing:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The outputs of this change should be identical to the output before this PR.
@StoneRelax do you see a significant performance improvement here? Seems like the code skipped is not expensive, so curious about how much improvement this brings.
Regardless, I agree that this function should be covered by tests. I have also merged to master for you
@simster7 thanks for reviewing. |
Thanks @StoneRelax! |
Checklist:
"fix(controller): Updates such and such. Fixes #1234"
. Why? for the release notes.Fixes #1907