-
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
Reference to task A's output param not resolved if task B does not depend on task A #2314
Comments
Note that this does not appear to be a regression as doing |
Coincidentally, I'm looking at the relevant code for another PR. Will take a look at this |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Don't close, I think this bug ought to be addressed if it isn't yet fixed. 🙏 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Don't close, I've been working on this. |
Hi, sorry I was a bit occupied after my last comment. I've confirmed that this issue is still reproducible with the latest commit. Initially I tried to fix this, but then I started to wonder if we should really fix this. What if a user really wants to print |
I'd guess that 99/100 times they wouldn't want to print that, and it'd be a mistake in their task dependency specification. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Checklist:
What happened:
A
"{{tasks.X.outputs.parameters....}}"
reference was left as a literal during workflow execution because the task including that reference did not listX
as a dependency.What you expected to happen:
This I think violates the 'Principle of Least Surprise'. I think this should be a
lint
error and a runtime execution error, as the task is attempting to reference an output parameter that may not yet exist.How to reproduce it (as minimally and precisely as possible):
Run this with the
#dependencies ...
line left commented out and inspect the logs of the workflow.You see:
Anything else we need to know?:
Environment:
argo
version is 2.4.3Message from the maintainers:
If you are impacted by this bug please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.
The text was updated successfully, but these errors were encountered: