-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
cwl v1.3.0-dev1 native loop support #1779
base: main
Are you sure you want to change the base?
Conversation
8e78125
to
52710a1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huzzah!
You'll also need to add a dump of the v1.3.0-dev1
schema to https://github.com/common-workflow-language/cwltool/tree/cwl-v1.3/cwltool/schemas
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1779 +/- ##
===========================================
- Coverage 83.84% 54.85% -29.00%
===========================================
Files 46 46
Lines 8245 8266 +21
Branches 2190 2105 -85
===========================================
- Hits 6913 4534 -2379
- Misses 855 3195 +2340
- Partials 477 537 +60 ☔ View full report in Codecov by Sentry. |
cwltool/update.py
Outdated
"The `cwltool:Loop` clause is not compatible with the `when` directive." | ||
) | ||
if "loopWhen" not in r: | ||
raise SourceLine( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test case for this, please
cwltool/update.py
Outdated
) | ||
cls = cast(str, r["class"]) | ||
if cls in rewrite: | ||
r["class"] = rewrite[cls] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line has no test coverage.
schema-salad catches that before the updater runs
This commit converts the logic introduced to handle the
cwltool:Loop
requirement extension to handle the newloop
construct introduced in the CWL v1.3 spec.A proper method in the
upgrade.py
module handles the automatic conversion from the old requirement to the new format.The existing
test_loop.py
file is still useful to verify the correctness of the conversion process.See also common-workflow-language/cwl-v1.3#5