You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And the workflow task on the web GUI ends up with two keyword argument parameters: conf-file and named_parameters.
Steps to Reproduce (for bugs)
Run a dbx deploy with a workflow that has python_wheel_task tasks with named_parameters, at least one of which has a value that starts with file:// or file:fuse://. Then check the keyword argument parameters of the task in the web GUI.
If the call in line 47 is changed to self.traverse(item, _object, key), you still get a duplicate tuple, but at least the semantics of index_in_parent in that generator are correct and you just end up setting the same property twice, which is fine. I'm not sure if that ends up breaking other traversal cases though, or if there's a better fix to avoid visiting that element twice in the first place.
Expected Behavior
A deployment with
dbx deploy [...] --write-specs-to-file=spec.json
with anamed_parameters
definition like so:Should result in a specs file with the following
named_parameters
object:And only
conf-file
should be created as a keyword argument parameter in the workflow task on the web GUI.Current Behavior
Instead, I get this:
And the workflow task on the web GUI ends up with two keyword argument parameters:
conf-file
andnamed_parameters
.Steps to Reproduce (for bugs)
Run a
dbx deploy
with a workflow that haspython_wheel_task
tasks withnamed_parameters
, at least one of which has a value that starts withfile://
orfile:fuse://
. Then check the keyword argument parameters of the task in the web GUI.Context
I've traced the problem to this function:
dbx/dbx/api/adjuster/adjuster.py
Lines 165 to 169 in 34bd186
And this part in
PropertyAdjuster.traverse()
:dbx/dbx/api/adjuster/adjuster.py
Lines 43 to 48 in 34bd186
After yielding the correct tuple for
conf-file
:It then attempts to traverse
item
withindex_in_parent
, which isnamed_parameters
, and sinceitem
is a string,traverse
jumps here and terminates:dbx/dbx/api/adjuster/adjuster.py
Line 66 in 34bd186
And yields essentially a duplicate tuple except with the wrong
index_in_parent
:Your Environment
The text was updated successfully, but these errors were encountered: