common-workflow-language / common-workflow-language/cwltool

runtime checking that Workflow & ExpressionTool return correct format

Open
#1,326 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
376
Forks
255
Avg merge
2d 7h
Merged PRs (30d)
12

Description

## Expected Behavior
When a workflow or expression tool declares a file formats for its output parameters, they should be checked to ensure they are consistent before going to the next step.

## Actual Behavior
It doesn't check it, leading to downstream format checking errors instead, which are further away from the actual error and harder to debug.

## Workflow Code
```
cwlVersion: v1.0
class: ExpressionTool
inputs:
inp: File # no format set
outputs:
# static checker now thinks it has a format, but it wasn't actually set in the Javascript,
# so it will fail later on when the format does get checked.
out:
type: File
format: example_format
expression: |
${ return {out: inputs.inp}; }
```

## Your Environment

cwltool 3.0.20200720165847

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.