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): Get correct Step or DAG name. Fixes #2244 #2304

Merged
merged 4 commits into from Feb 24, 2020

Conversation

whynowy
Copy link
Member

@whynowy whynowy commented Feb 24, 2020

Fixes #2244

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
  • The title of the PR is (a) conventional, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
  • I have written unit and/or e2e tests for my change. PRs without these are unlike to be merged.
  • Optional. I've added My organization is added to the README.
  • I've signed the CLA and required builds are green.

if strings.Contains(nodeName, ".") {
name := nodeName[strings.LastIndex(nodeName, ".")+1:]
// Check retry scenario
Copy link
Member Author

Choose a reason for hiding this comment

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

Not only retry scenario has (, but also withItems and withParam. Simply removed the retry condition check, and do it for all - This is based on the fact that neither template name nor step/DAG name is allowed to contain (.

@codecov
Copy link

codecov bot commented Feb 24, 2020

Codecov Report

Merging #2304 into master will decrease coverage by <.01%.
The diff coverage is 20%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2304      +/-   ##
==========================================
- Coverage   11.44%   11.43%   -0.01%     
==========================================
  Files          71       71              
  Lines       27860    27868       +8     
==========================================
  Hits         3188     3188              
- Misses      24268    24275       +7     
- Partials      404      405       +1
Impacted Files Coverage Δ
workflow/controller/steps.go 60.46% <20%> (-1.94%) ⬇️

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 e7c4a9b...63f616c. Read the comment docs.

Copy link
Member

@simster7 simster7 left a comment

Choose a reason for hiding this comment

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

Conditional approval: can you add new tests for this behavior? Perhaps from the reference issue?

@whynowy
Copy link
Member Author

whynowy commented Feb 24, 2020

Conditional approval: can you add new tests for this behavior? Perhaps from the reference issue?

Thanks! will add a functional test for that example.

@whynowy whynowy merged commit 214c451 into argoproj:master Feb 24, 2020
@whynowy whynowy deleted the issue2244 branch February 24, 2020 23:44
alexec pushed a commit to alexec/argo-workflows that referenced this pull request Feb 25, 2020
…rgoproj#2304)

* fix(controller): Get correct Step or DAG name

* Add functional test

* Increase wait time
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.

parameter-aggregation.yaml in examples failing without errors
2 participants