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

DO NOT MERGE: Migrate CWL parsing from cwltool to cwl-utils #58

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

GlassOfWhiskey
Copy link
Member

This commit replaces the cwltool parser with the faster auto-generated parser included in cwl-utils.

@GlassOfWhiskey GlassOfWhiskey force-pushed the feature/cwl-utils branch 4 times, most recently from e38eb72 to 461df47 Compare January 31, 2023 17:47
@codecov-commenter
Copy link

codecov-commenter commented Jan 31, 2023

Codecov Report

Attention: 38 lines in your changes are missing coverage. Please review.

Comparison is base (33da6e6) 65.93% compared to head (1ca11fd) 64.96%.
Report is 1 commits behind head on master.

Files Patch % Lines
streamflow/cwl/translator.py 86.49% 20 Missing and 17 partials ⚠️
streamflow/cwl/utils.py 50.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #58      +/-   ##
==========================================
- Coverage   65.93%   64.96%   -0.98%     
==========================================
  Files          82       82              
  Lines       10234    10303      +69     
  Branches     2419     2442      +23     
==========================================
- Hits         6748     6693      -55     
- Misses       3052     3167     +115     
- Partials      434      443       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@GlassOfWhiskey GlassOfWhiskey force-pushed the feature/cwl-utils branch 2 times, most recently from a656498 to 025ba47 Compare February 1, 2023 20:00
@GlassOfWhiskey GlassOfWhiskey changed the title Migrate CWL parsing from cwltool to cwl-utils DO NOT MERGE: Migrate CWL parsing from cwltool to cwl-utils Feb 1, 2023
@GlassOfWhiskey GlassOfWhiskey force-pushed the feature/cwl-utils branch 9 times, most recently from dd2d48d to 2502ef0 Compare February 12, 2023 15:28
@GlassOfWhiskey GlassOfWhiskey force-pushed the feature/cwl-utils branch 6 times, most recently from 0899281 to 2eadb6d Compare March 4, 2023 15:49
@GlassOfWhiskey GlassOfWhiskey force-pushed the feature/cwl-utils branch 3 times, most recently from 32083a0 to 8acb8ad Compare June 18, 2023 19:26
@GlassOfWhiskey GlassOfWhiskey force-pushed the feature/cwl-utils branch 2 times, most recently from db57c6b to e7c7f32 Compare November 3, 2023 08:46
current_context["requirements"][requirement["class"]] = requirement
for hint in cwl_element.hints or []:
if not isinstance(hint, MutableMapping):
current_context["hints"][hint.class_] = hint

Check failure

Code scanning / CodeQL

Modification of parameter with default Error

This expression mutates a
default value
.
if not isinstance(hint, MutableMapping):
current_context["hints"][hint.class_] = hint
for requirement in cwl_element.requirements or []:
current_context["requirements"][requirement.class_] = requirement

Check failure

Code scanning / CodeQL

Modification of parameter with default Error

This expression mutates a
default value
.
)
else:
for requirement in self.cwl_inputs[req_string]:
current_context["requirements"][

Check failure

Code scanning / CodeQL

Modification of parameter with default Error

This expression mutates a
default value
.
),
context: MutableMapping[str, Any],
name_prefix: str,
cwl_name_prefix: str,
):
context["elements"][cwl_element.id] = cwl_element

Check failure

Code scanning / CodeQL

Modification of parameter with default Error

This expression mutates a
default value
.
cwl_utils.parser.utils.static_checker(cwl_element)
except ValidationException as ve:
raise WorkflowDefinitionException from ve
context["elements"][cwl_element.id] = cwl_element

Check failure

Code scanning / CodeQL

Modification of parameter with default Error

This expression mutates a
default value
.
context: MutableMapping[str, Any],
name_prefix: str,
cwl_name_prefix: str,
):
# Process content
context["elements"][cwl_element.id] = cwl_element

Check failure

Code scanning / CodeQL

Modification of parameter with default Error

This expression mutates a
default value
.
context["requirements"][requirement["class"]] = requirement
for hint in cwl_element.hints or []:
if not isinstance(hint, MutableMapping):
context["hints"][hint.class_] = hint

Check failure

Code scanning / CodeQL

Modification of parameter with default Error

This expression mutates a
default value
.
if not isinstance(hint, MutableMapping):
context["hints"][hint.class_] = hint
for requirement in cwl_element.requirements or []:
context["requirements"][requirement.class_] = requirement

Check failure

Code scanning / CodeQL

Modification of parameter with default Error

This expression mutates a
default value
.
@GlassOfWhiskey GlassOfWhiskey force-pushed the feature/cwl-utils branch 3 times, most recently from 0a1b138 to 087edd1 Compare November 15, 2023 23:39
@GlassOfWhiskey GlassOfWhiskey force-pushed the feature/cwl-utils branch 4 times, most recently from d95f92b to dc7094f Compare December 3, 2023 23:38
This commit replaces the cwltool parser with the faster
auto-generated parser included in cwl-utils.
@GlassOfWhiskey GlassOfWhiskey force-pushed the feature/cwl-utils branch 10 times, most recently from 0a8efe0 to 1d892f8 Compare December 9, 2023 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants