-
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: Ensure HTTP reconciliation occurs for onExit nodes #7084
Conversation
Signed-off-by: Simon Behar <[email protected]>
Signed-off-by: Simon Behar <[email protected]>
node.Outputs = taskResult.Outputs.DeepCopy() | ||
node.Phase = taskResult.Phase | ||
node.Message = taskResult.Message | ||
woc.wf.Status.Nodes[nodeID] = node | ||
node.FinishedAt = metav1.Now() |
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.
Previously update happened before FinishedAt
was set. A separate likely source of bugs
Codecov Report
@@ Coverage Diff @@
## master #7084 +/- ##
==========================================
+ Coverage 48.57% 48.60% +0.02%
==========================================
Files 265 265
Lines 19315 19329 +14
==========================================
+ Hits 9383 9395 +12
- Misses 8878 8880 +2
Partials 1054 1054
Continue to review full report at Codecov.
|
Signed-off-by: Simon Behar <[email protected]>
workflow/controller/operator.go
Outdated
@@ -477,6 +473,21 @@ func (woc *wfOperationCtx) operate(ctx context.Context) { | |||
} | |||
} | |||
|
|||
func (woc *wfOperationCtx) httpReconciliation(ctx context.Context) { |
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.
Can you move this function to http_template.go?
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.
@sarabala1979 Done
Signed-off-by: Simon Behar <[email protected]>
* fix: Ensure HTTP reconciliation occurs for onExit nodes Signed-off-by: Simon Behar <[email protected]> * tests Signed-off-by: Simon Behar <[email protected]> * fixes Signed-off-by: Simon Behar <[email protected]> * minor Signed-off-by: Simon Behar <[email protected]>
Fixes #7080
Tips:
git commit --signoff
.make pre-commit -B
to fix codegen or lint problems.