-
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): Fix template resolution for step groups. Fixes #1868 #1920
fix(controller): Fix template resolution for step groups. Fixes #1868 #1920
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1920 +/- ##
========================================
Coverage ? 8.88%
========================================
Files ? 61
Lines ? 34565
Branches ? 0
========================================
Hits ? 3071
Misses ? 31106
Partials ? 388 Continue to review full report at Codecov.
|
I also fixed an error of parallelism check caused by template scope which can be reproduced with the following manifests.
|
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.
Do we need new tests for this?
@alexec Added. |
…lution-in-step-group
@alexec can this get merged before the release candidate? If so we should be able to help test the rc. |
…lution-in-step-group
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.
@dtaniwaki I'll approve this, I think you need to do git merge master
?
…lution-in-step-group
@@ -204,7 +204,7 @@ func (d *dagContext) hasMoreRetries(node *wfv1.NodeStatus) bool { | |||
func (woc *wfOperationCtx) executeDAG(nodeName string, tmplCtx *templateresolution.Context, templateScope string, tmpl *wfv1.Template, orgTmpl wfv1.TemplateHolder, boundaryID string) (*wfv1.NodeStatus, error) { | |||
node := woc.getNodeByName(nodeName) | |||
if node == nil { | |||
node = woc.initializeExecutableNode(nodeName, wfv1.NodeTypeSteps, templateScope, tmpl, orgTmpl, boundaryID, wfv1.NodeRunning) | |||
node = woc.initializeExecutableNode(nodeName, wfv1.NodeTypeDAG, templateScope, tmpl, orgTmpl, boundaryID, wfv1.NodeRunning) |
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.
I think this might fix #2056
Fixes #1868 #1876
Checklist:
"fix(controller): Updates such and such. Fixes #1234"
. Why? for the release notes.I have fixed the wrong use of template context for step groups and also set a template scope in every node just in case it might be useful in the future.