Repository navigation
Keep the empty listing of a CWL Directory literal - #5693
Merged
mr-c merged 1 commit intoNov 19, 2026
Merged
Conversation
CWLJob.run dropped every empty listing so that cwltool would list each
directory again, but a literal ("_:" location) is nowhere to be listed:
the worker then failed reading its listing (KeyError).
Contributor
Author
|
I am not super sure on this. I ran into this after I fixed a bug of my own in Sophios output directory literal. I am not sure why toil has to do a pre-run cleanup that deletes directories. |
Contributor
|
|
mr-c
approved these changes
Nov 19, 2026
mr-c
left a comment
Contributor
There was a problem hiding this comment.
Really useful, thank you! I'm adding your test to the next version of CWL: common-workflow-language/cwl-v1.3#108
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #5692.
remove_empty_listingsnow leaves a Directory literal (a_:location, or none) as it is: its listing cannot be generated again, so dropping it lost the directory, and the worker failed reading it. A test runs a tool that writes into an empty Directory literal it is given.Changelog Entry
To be copied to the draft changelog by merger:
KeyError: 'listing'.Reviewer Checklist
issues/XXXX-fix-the-thingin the Toil repo, or from an external repo.camelCasethat want to be insnake_case.docs/running/{cliOptions,cwl,wdl}.rstMerger Checklist