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

Invalid --pack results if input and output have the same name in a referred CWL

Open
#2,343 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

In a single CWL, input and output names can be the same, however, it seems not the case in a referred CWL when using `--pack`.
I attached a mini repository to illustrate the issue: https://github.com/EmileSonneveld/cwltool-pack-bug
In the last commit you can see that I made the input and output variables match name, and `--pack` gives a different result.

We use calrissian to run various CWLs. Pack would help use to avoid errors further in the workflow.

Contributor guide

Open the contributing guide

Research direction

Start with the attached cwltool-pack-bug repository and reproduce the differing result from the --pack entry point when a referred CWL uses the same input and output name. Trace how packing handles those referenced names; done means the packed CWL preserves the valid same-name behavior seen in the single CWL case.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.