-
Notifications
You must be signed in to change notification settings - Fork 240
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
Pass cmd args to toil-wdl-runner, resolves #2721 #2809
Conversation
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.
@azzaea This doesn't quite appear to work, according to our first batch of unit tests.
Specifically, src/toil/test/wdl/toilwdlTest.py::ToilWdlIntegrationTest::testPipe
fails:
https://travis-ci.org/DataBiosphere/toil/jobs/594003669#L1048
It looks like when you run the argument parser, it doesn't know about the --out_dir
argument that is supposed to be supported, so it bails.
You should be able to run the test yourself with:
virtualenv venv
. venv/bin/activate
pip install .
make test_offline tests_local=src/toil/test/wdl/toilwdlTest.py::ToilWdlIntegrationTest::testPipe
Can you please fix it? This looks like a very useful bugfix and we would like to merge it.
Oh! I see- I guess I was working with an overly simple example, so these did not show up. Thank you for your patience and clarification. Will give it another shot this weekend |
I think the last commit may do the trick, but not sure (I couldn't run the tests on my cluster, but tried with a more complicated wdl script and toil is now able to run it successfully. Also, tried to explicitly pass the Is there an alternative way to run tests on my environment? (In the cluster, I can't follow the virtual environment approach described (worker nodes error about internet connection with pip install), and thus I resort to a classical |
In order to run the tests the way I described, I think you need an Internet connection to set up the virtual environment. If there's a way to set up a virtual environment without an Internet connection, I guess you could use that. Or you could try running your tests on a different machine that has Internet access; they don't need a particularly powerful system. The Toil makefile insists that you do everything in a virtual environment. You can also bypass it by doing:
Our Travis tests are weirdly failing to run here. I will see if I can fix them. |
OK, I got the tests to run. It looks like one of them at least is still failing, due to looking for a jobStore argument that it can't find. I think the WDL generated code is maybe supposed to invent its own jobStore under the out_dir, and that logic isn't happening anymore?
|
@adamnovak That's accurate. I can take a look tomorrow and see what else would need to be reworked. |
@adamnovak : "This will be superseded by a WDL refactor to use miniWDL. Will close this then." |
The new WDL interpreter no longer has the problems that this fixes, so I am going to close out the PR. |
No description provided.