-
-
Notifications
You must be signed in to change notification settings - Fork 231
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
ExpressionTool doesn't check output types #1811
Comments
GlassOfWhiskey
changed the title
Steps with null outputs should file when expected type is
Steps with Feb 23, 2023
Any
null
outputs should file when expected type is Any
The problem is caused by the fact that cwltool does not apaprently run output tyoe validation after ExpressionTool executions. Conversely, it behaves correctly with CommandLineTool objects. |
GlassOfWhiskey
changed the title
Steps with
Steps with Feb 25, 2023
null
outputs should file when expected type is Any
null
outputs should fail when expected type is Any
Also this cwlVersion: v1.2
class: ExpressionTool
requirements:
InlineJavascriptRequirement: {}
inputs: []
outputs:
wrong_type_output: int
expression: "$({'wrong_type_output': 'This is a terrible error!!!'})" This confirms that no output check is currently running for Proposed solution:
|
mr-c
changed the title
Steps with
ExpressionTool doesn't check output types
Mar 6, 2023
null
outputs should fail when expected type is Any
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CWL Specification explicitly states that
However, cwtool does not fail when a step produces a null output for a port of type
Any
. Instead, the behavior is correct for input ports. As a concrete example, the followingExpressionTool
should clearly fail, but it doesn't.Note also that this file is involved in 2 CWL Conformance tests cases,
step_input_default_value_overriden_2nd_step_null
andstep_input_default_value_overriden_2nd_step_null_noexp
. Therefore, it is quite crucial to establish the correct behavior here.The text was updated successfully, but these errors were encountered: