-
Notifications
You must be signed in to change notification settings - Fork 9
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
Rerun last failed workflows in same tmp directory? #174
Comments
I think that will be quite hard to implement. Not too mention that various workflow engines have different resume requirements, and the project should remain workflow engine agnostic as that is its greatest strength. In this case I think you are better of running the As for the slow steps, you could try using only a subset of the data as test data set. That might speed things up and should be good enough for testing with pytest-workflow. Does this help you? |
Thanks (that was fast!) Ah yes, I understand. As for subsetting, yes, I've cut my data ("normal" data would take ~1 hour to run), and a 5 minute wait is fine when it's a first time run, or on github actions on a PR, especially when it is successful. I'll use the direct pipeline command locally for when quicker feedback is needed then. |
a Similar, but not-quite-the-same request would be to rerun the tests but not the workflow since, as the OP stated, that is often the time-consuming part... and when adjusting the yml file I find that iterating on that would be sped up significantly if one could run |
@yfarjoun, I don't understand that bit. When your workflow fails tests it is incorrect, so it needs changing. When it has changed, it needs to run again to see the changes in effect. |
thanks for responding so promptly! I want to be able to modify the yml in the |
Ah, I see. So this is more of a test development feature. Can you make a separate issue for that? I can't make any promises on when (and if) I will get to it, but at least it will be more visible in case somebody else wants to contribute. Plus, if we get a range of issues on improvements it is a nice internship project. (We had one pytest-workflow internship and we were very happy with how that turned out.) |
Hi, I am trying to apply pytest-workflow to my nextflow pipeline. NF itself comes with a
-resume
option, which makes it skip existing, previously successful workflow step. Since the pipeline itself has some slow steps, this option is great when testing, even with more minimal data. I have however not figured out how to use this option in pytest-workflow. I tried runningpytest --kwdof --color=yes --lf
, but it creates a new tmpdir every time I rerun.I'm not sure if I just haven't figured out how to do it, if it could be a nice feature, or that it shouldn't be implemented :)
The text was updated successfully, but these errors were encountered: