-
Notifications
You must be signed in to change notification settings - Fork 361
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
Regression: Regex replacement in sub command broken in WDL 1.0 #3990
Comments
Thanks for the report! Note that in the meantime you can use the "strip suffix" on basename to remove the |
Thanks a lot for pointing that out! That does not fix the issue we have in our tasks, but it will make our code look cleaner in cases where it applies. |
@rhpvorderman as a workaround it appears that making your pattern We are looking into why this changed. |
Thanks @aednichols! Oh then it is not really a bug right. Then it is a feature ;-). Regardless, changing regex implementations make WDL unportable, which is undesirable. I will make a pull request to the spec. |
I think the bug is actually in Cromwell's WDL draft-2 support. Submitting a draft-2 workflow with PCRE pattern A work-around is to double-escape with |
As an aside, here are the code locations where regex evaluation happens
As you can see the Scala code is identical, so something is going on in draft-2 that "consumes" a |
I think this could be a case of "WDL 1.0 isn't evaluating escape codes in strings properly", per: |
Does this mean that, because |
@rhpvorderman to give you an update - I agree that there's something wrong here, but I can't identify which component requires updating - the WDL spec, the WDL grammar in spec repo, or Cromwell. I will consult my teammate @cjllanwarne when he comes back from vacation in about 1.5 weeks. |
@aednichols thanks for the update. We are currently in the process of updating the WDL spec at openwdl/wdl#243. This will hopefully make clear what sort of regular expression should be used. After that it will be a lot easier to decide whether the regular expression evaluation is broken or not. |
Ah, definitely missed that thread 🤦♂️ Thanks. |
Fun fact: the |
@rhpvorderman thanks for reporting, the fix is in Cromwell 35 (out now!) |
Run with cromwell version 34.
I expect
name
to bebladiebla.fq
but unfortunately it isbladiebla.fq.gz
The regex used work in earlier versions of cromwell (31).We noticed this when changing to WDL 1.0
The text was updated successfully, but these errors were encountered: