-
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: Consider missing optional input/output artifacts with same name #3029
Conversation
@@ -0,0 +1,33 @@ | |||
apiVersion: argoproj.io/v1alpha1 |
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.
move to ../testdata
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.
Moved!
artifacts: | ||
- name: file | ||
path: /tmp/file1.txt | ||
optional: true |
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'm not sure optional actually works - can you run without it?
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.
Running without optional: true
fails the validation as expected:
$ argo submit art.yaml
2020/05/13 14:56:52 Failed to submit workflow: templates.plan.steps[0].write templates.file inputs.artifacts.file was not supplied
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.
Conditional approval - can you check the execution time of the e2e tests and make sure they have increased significantly?
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
Review alongside #3019. |
Assuming you meant "make sure that they haven't increased significantly". If so, the test only adds around 8-10 seconds. I think this is good enough.
I took a look and it looks orthogonal. |
Back-ported to v2.8.1 |
Fixes #1750