question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

exec of cwl with $include fails

See original GitHub issue

Bug Report

Looks like there is a failure to resolve the path of includes when pulling in linked files to CWL definition.

Project stucture:

dockstore-cgpmap
  - cwls
    - includes
        doc.yml
    - mixins
        hints.yml
        requirements.yml
    cgpmap-bamOut.cwl
    cgpmap-bamOut.cwl

cwl snippet

...
doc:
  $include: includes/doc.yml
...

Expected behaviour

Should build a local structure to mirror above pulling down the relates files before executing cwltool.

Actual behaviour

dockstore tool launch --entry quay.io/wtsicgp/dockstore-cgpmap/cgpmap-bamOut:3.0.0-rc7 --json fastq_gz_input.json 
Error writing to File
java.io.FileNotFoundException: /tmp/1518013364741-0/cwlsincludes/doc.yml (No such file or directory)

Looks like missing / in cwlsincludes. Note that no erroneously named folder was created either.

$ tree /tmp/1518013364741-0
/tmp/1518013364741-0
└── cwls
    └── cgpmap-bamOut.cwl

Steps to reproduce the behaviour

As above

Environment (Browser or OS and Dockstore version)

$ dockstore --version
Dockstore version 1.3.3

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
keiranmrainecommented, Feb 20, 2018

I can work around the symlink so it’s not a problem just wanted to highlight that isn’t possible.

0reactions
garyluucommented, Feb 26, 2018

Seems to launch fine alongside https://github.com/ga4gh/dockstore/issues/1149 cgpmap with 3.0.0-rc8

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Workflow Language (CWL) Command Line Tool ...
If the program includes a path separator character it must be an absolute path, otherwise it is an error. If the program does...
Read more >
yuch7/cwlexec: A new open source tool to run CWL ... - GitHub
The post-failure script can be configured at the step or flow level, just like the bsub options in the exec-config configuration file that...
Read more >
Running and Debugging a Workflow – Getting Started with CWL
A workflow can fail for many reasons: some possible reasons include bad input, bugs in the code, or running out memory. In our...
Read more >
Too many arguments on the command line - CWL Questions
Hi all, I am using CWL version 1.0 to describe both the steps and the workflow. If I use as input to a...
Read more >
Configuring Amazon CloudWatch Logs for Run Command
Choose this option if sending commands from the console, or add the cloud-watch-output-config ... For example, if there is no error data for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found