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(controller): Consider nested expanded task in reference #5594

Merged
merged 3 commits into from
Apr 5, 2021

Conversation

simster7
Copy link
Member

@simster7 simster7 commented Apr 5, 2021

Fixes #5574

Signed-off-by: Simon Behar <simbeh7@gmail.com>
Signed-off-by: Simon Behar <simbeh7@gmail.com>
@alexec alexec changed the title fix: Consider nested expanded task in reference fix(controller): Consider nested expanded task in reference Apr 5, 2021
@@ -2360,7 +2360,10 @@ func hasOutputResultRef(name string, parentTmpl *wfv1.Template) bool {
func getStepOrDAGTaskName(nodeName string) string {
// If our name contains an open parenthesis, this node is a child of a Retry node or an expanded node
// (e.g. withItems, withParams, etc.). Ignore anything after the parenthesis.
if parenthesisIndex := strings.Index(nodeName, "("); parenthesisIndex >= 0 {
if parenthesisIndex := strings.LastIndex(nodeName, "("); parenthesisIndex >= 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

ugh

@codecov
Copy link

codecov bot commented Apr 5, 2021

Codecov Report

Merging #5594 (9cdf832) into master (c941ef8) will increase coverage by 0.07%.
The diff coverage is 100.00%.

❗ Current head 9cdf832 differs from pull request most recent head a23066d. Consider uploading reports for the commit a23066d to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5594      +/-   ##
==========================================
+ Coverage   47.00%   47.08%   +0.07%     
==========================================
  Files         240      240              
  Lines       15002    15005       +3     
==========================================
+ Hits         7052     7065      +13     
+ Misses       7053     7042      -11     
- Partials      897      898       +1     
Impacted Files Coverage Δ
workflow/controller/operator.go 71.01% <100.00%> (+0.04%) ⬆️
cmd/argo/commands/get.go 56.66% <0.00%> (ø)
server/workflow/workflow_server.go 42.73% <0.00%> (+2.27%) ⬆️
workflow/metrics/server.go 16.66% <0.00%> (+4.16%) ⬆️

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 c941ef8...a23066d. Read the comment docs.

Signed-off-by: Simon Behar <simbeh7@gmail.com>
@simster7 simster7 merged commit 7276bc3 into argoproj:master Apr 5, 2021
@jcmuller
Copy link
Contributor

jcmuller commented Apr 9, 2021

@alexec @simster7 Do you guys have an ETA of when a new release will be cut including this fix?

Cheers

@simster7 simster7 mentioned this pull request Apr 19, 2021
50 tasks
simster7 added a commit that referenced this pull request Apr 19, 2021
Signed-off-by: Simon Behar <simbeh7@gmail.com>
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.

Script outputs.result not rendering in fanout nested dag
4 participants