Skip to content
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

Merged
merged 4 commits into from
Oct 27, 2021

Conversation

simster7
Copy link
Member

@simster7 simster7 commented Oct 27, 2021

Fixes #7080

Tips:

  • Maybe add you organization to USERS.md.
  • Your PR needs to pass the required checks before it can be approved. If the check is not required (e.g. E2E tests) it does not need to pass
  • Sign-off your commits to pass the DCO check: git commit --signoff.
  • Run make pre-commit -B to fix codegen or lint problems.
  • Say how how you tested your changes. If you changed the UI, attach screenshots.
  • If changes were requested, and you've made them, then dismiss the review to get it looked at again.
  • You can ask for help!

Signed-off-by: Simon Behar <simbeh7@gmail.com>
Signed-off-by: Simon Behar <simbeh7@gmail.com>
node.Outputs = taskResult.Outputs.DeepCopy()
node.Phase = taskResult.Phase
node.Message = taskResult.Message
woc.wf.Status.Nodes[nodeID] = node
node.FinishedAt = metav1.Now()
Copy link
Member Author

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
Copy link

codecov bot commented Oct 27, 2021

Codecov Report

Merging #7084 (26065fc) into master (832ae29) will increase coverage by 0.02%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            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              
Impacted Files Coverage Δ
workflow/controller/agent.go 67.46% <ø> (ø)
workflow/controller/taskset.go 62.76% <57.14%> (ø)
workflow/controller/http_template.go 73.07% <65.00%> (-26.93%) ⬇️
workflow/controller/operator.go 71.54% <100.00%> (+0.39%) ⬆️
cmd/argoexec/commands/emissary.go 50.35% <0.00%> (-1.44%) ⬇️
cmd/argo/commands/get.go 58.89% <0.00%> (-0.88%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 832ae29...26065fc. Read the comment docs.

Signed-off-by: Simon Behar <simbeh7@gmail.com>
@sarabala1979 sarabala1979 self-assigned this Oct 27, 2021
@@ -477,6 +473,21 @@ func (woc *wfOperationCtx) operate(ctx context.Context) {
}
}

func (woc *wfOperationCtx) httpReconciliation(ctx context.Context) {
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

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

Signed-off-by: Simon Behar <simbeh7@gmail.com>
@sarabala1979 sarabala1979 enabled auto-merge (squash) October 27, 2021 16:55
@sarabala1979 sarabala1979 merged commit 64fce4a into argoproj:master Oct 27, 2021
@iulianionita-ai iulianionita-ai mentioned this pull request Nov 5, 2021
25 tasks
alexec pushed a commit that referenced this pull request Nov 17, 2021
* fix: Ensure HTTP reconciliation occurs for onExit nodes

Signed-off-by: Simon Behar <simbeh7@gmail.com>

* tests

Signed-off-by: Simon Behar <simbeh7@gmail.com>

* fixes

Signed-off-by: Simon Behar <simbeh7@gmail.com>

* minor

Signed-off-by: Simon Behar <simbeh7@gmail.com>
@sarabala1979 sarabala1979 mentioned this pull request Dec 15, 2021
73 tasks
@sarabala1979 sarabala1979 mentioned this pull request Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Workflow hangs when HTTP template is used as exit handler
2 participants