Skip to content

[20.01] Backport 9175: Update galaxy.tool_util.cwl for latest changes in CWL branch.#9210

Merged
nsoranzo merged 14 commits intogalaxyproject:release_20.01from
mvdbeek:backport_9175
Jan 14, 2020
Merged

[20.01] Backport 9175: Update galaxy.tool_util.cwl for latest changes in CWL branch.#9210
nsoranzo merged 14 commits intogalaxyproject:release_20.01from
mvdbeek:backport_9175

Conversation

@mvdbeek
Copy link
Copy Markdown
Member

@mvdbeek mvdbeek commented Jan 13, 2020

No description provided.

jmchilton and others added 9 commits January 13, 2020 17:35
which makes some tools fail by printing to stderr:
```
galaxy.tool_util.output_checker DEBUG 2020-01-07 02:59:07,720 job failed, detected state generic_error, standard error is - [/galaxy_venv/local/lib/python2.7/site-packages/cwltool/__init__.py:17: CWLToolDeprecationWarning:
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020.
Please upgrade your Python as the Python 2.7 version of cwltool won't be
maintained after that date.

  """,  category=CWLToolDeprecationWarning)
]
```
xref. galaxyproject#8558

For other YAML files, `ordered_load()` will raise an exception when it
finds a mapping with duplicate keys.
ensure_cwltool_available()
tool = to_cwl_tool_object(
# if uuid is None:
# raise Exception("tool_proxy must be called with non-None uuid")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is that something that should be removed or uncommented later?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is a last minute change to get the usage from Planemo to pass - I'm happy to remove it I think. Probably should somehow make this required when loading tools from a toolbox and not requires from library behavior but I can just create an issue for that.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

"""Load a ToolProxy from a previously persisted representation."""
ensure_cwltool_available()
tool = to_cwl_tool_object(persisted_tool=persisted_tool, strict_cwl_validation=strict_cwl_validation)
if PERSISTED_REPRESENTATION == "cwl_tool_object":
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Isn't this always True?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It is an semi-open question in the CWL branch what the persisted representation should be. I think the current setting is right and once the plumbing is all merged and these things work - it will probably be this way - but I'm hesitant to commit to a path until the whole thing is ready to go and working.

Comment thread lib/galaxy/tool_util/cwl/parser.py Outdated
Comment thread lib/galaxy/tool_util/cwl/schema.py Outdated
Comment thread lib/galaxy/tool_util/cwl/parser.py Outdated
jmchilton and others added 5 commits January 13, 2020 15:49
@nsoranzo nsoranzo merged commit 9fb80f0 into galaxyproject:release_20.01 Jan 14, 2020
@nsoranzo nsoranzo deleted the backport_9175 branch January 14, 2020 03:03
@jmchilton
Copy link
Copy Markdown
Member

jmchilton commented Jan 14, 2020

Thanks for all the work on this. It may seem like a big mess - but it is a huge help to the CWL effort to have this synchronized every so often. I'll try to publish new 20.1 dev packages now

@jmchilton
Copy link
Copy Markdown
Member

galaxy-tool-util-20.1.0.dev0 and galaxy-util-20.1.0.dev0 have been published. I'm not sure I see a reason to publish a galaxy-containers-20.1.0.dev0 since it is unchanged. I've created a minimum dependency of galaxy-util-20.1.0.dev0 on the package galaxy-tool-util-20.1.0.dev0.

@nsoranzo nsoranzo added this to the 20.01 milestone Jan 14, 2020
@galaxyproject galaxyproject deleted a comment from galaxybot Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants