-
Notifications
You must be signed in to change notification settings - Fork 39
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
Valid YAQL in With Items Input Fails #247
Comments
Sorry, the issue was first identified in our workflows after an upgrade from 3.4.1 to 3.6. I do not know if it was there in 3.5 as we jumped straight to 3.6 on the system where these failing workflows were running. |
After some discussion and investigation with @jamesdreid I was able to identify the YAQL is currently pinned as |
@nzlosh Any next steps? Do we need to pin |
I've looked into this further, this is the commit for yaql v2.0.0
If we pin to 1.1.3, builds will fail against py3.10 (which will be required to support ubuntu 22.04 and drop ubuntu 18.04). I think we're at the point where we'll need to fix the orquesta code. Which will be related to how it's detecting/handling collections. |
Looks like this PR may have been related to the attempted fix for a similar issue that may need some updates. #191 |
Plus it appears that Orquesta may be importing "collections" as well and may need to be updated in a manner similar to the YAQL lib. |
Agreed. Let's fix orquesta, not the pin. |
It seems #191 is a partial fix. Testing a few expressions shows the following: YAQL list ✔️
YAQL dict keys ❌
YAQL dict keys using X in format ❌
YAQL cast dict keys to list ✔️
Jinja list ❌
Jinja list using X in format ✔️
Jinja dict keys ❌
Jinja dict keys using X in format ❌
Jina cast dict keys to list using X in format ❌
It's not immediately obvious to me where the root cause of this issue is. |
Creating a workflow that includes a "with-items" task that uses a valid YAQL statement to supply a list to the input of the task fails. It appears that the workflow will not longer properly evaluated the YAQL prior to running the task.
The following task config does not work:
Using the exact same YAQL statement in the publish statement of a prior task will generate a proper array and works as expected when referenced from the context in the "items" section.
The text was updated successfully, but these errors were encountered: