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
Issues/4101 wrong filename in output #4139
Issues/4101 wrong filename in output #4139
Conversation
The logic that determined a potential filename conflict contained a flaw. This commit fixes that.
Thanks! I wonder how we can create a unit test for this... |
I'm still trying to reproduce it in a small example. It looks like I'm making some progress. So hold on ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like it ought to work. I've pulled it in for testing.
It would be nice to have a test, but we shouldn't not fix the bug if we don't get one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM too. Thanks for submitting the fix.
Added a test that verifies that the fix in DataBiosphere#4101 avoids incorrect filename conflict resolution.
…oose/toil into issues/4101-wrong-filename-in-output
I added a test that seem to properly work. It fails on current |
Thanks! I've pushed that fix up for testing. |
Changelog Entry
To be copied to the draft changelog by merger:
The logic that determines a potential filename conflict contains a flaw. If one of the outputs is a directory that contains (at least) two files with identical names except for a "trailing underscore part", then, depending on the order in which these files are visited, the filename with the "trailing underscore part" may be considered a duplicate of that without. For example, in my case there are files named
table.f4
andtable.f4_TSM0
. Iftable.f4
was already visited, thentable.f4_TSM0
is considered a duplicate of `table.f4. This PR corrects this incorrect behavior.Reviewer Checklist
issues/XXXX-fix-the-thing
in the Toil repo, or from an external repo.camelCase
that want to be insnake_case
.docs/running/{cliOptions,cwl,wdl}.rst
Merger Checklist