Skip to content
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

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

Merged
merged 14 commits into from
Jan 14, 2020

Conversation

mvdbeek
Copy link
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.
""" Provide a proxy object to cwltool data structures to just
grab relevant data.
"""
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
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
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
Member

Choose a reason for hiding this comment

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

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
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
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.

lib/galaxy/tool_util/cwl/parser.py Outdated Show resolved Hide resolved
lib/galaxy/tool_util/cwl/schema.py Outdated Show resolved Hide resolved
lib/galaxy/tool_util/cwl/parser.py Outdated Show resolved Hide resolved
@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
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
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