Repository navigation
Conversation
|
Can one of the admins verify this patch? |
1 similar comment
|
Can one of the admins verify this patch? |
|
Jenkins, test this please. |
|
@dleehr I invited you to our organization. Once you accept the invitation, you should be able to see the Jenkins build results. I'm going to trigger another build, since the last build left the slave in a weird state. |
|
Jenkins, test this please. |
1 similar comment
|
Jenkins, test this please. |
|
@dleehr, previous builds had crashed the slave but the most recent one didn't. I'll try a few more times. In either case, these Slurm tests fail. Let me know if you don't see the Oh, before I forget you don't need to open a new PR after rebasing. By default, PR branches can be force-pushed. Only, PRs that are labelled |
|
Jenkins, test this please. |
|
@dleehr, let me know if you can't access see the build results on our Jenkins server |
|
I can't tell why this fails without some additional output. The tests pass on my cluster (running slurm 14.11.9): I suspect it's related to the slurm version. The slurm package available for Trusty 14.04 is 2.6 http://packages.ubuntu.com/trusty/slurm-llnl, but Vivid 15.04 has version 14.03 http://packages.ubuntu.com/vivid/slurm-wlm. In 2013, slurm switched version numbering schemes for yearly releases. I'll bring my instance back up and see what happens there. |
|
The issue was that the slurm config on the jenkins slave did not set the CPU and memory per node. The batchSystemTests do submit jobs with memory and CPU requirements, and slurm was not able to handle these requests. I've fixed the config in BD2KGenomics/cgcloud#137 but we'll need to rebuild the jenkins slave image from that before this can be retried. |
|
I merged the cgcloud PR and updated the toil-jenkins-slave image. Now rerunning the tests. |
|
Jenkins, test this please. |
|
Following this with interest as well. We'd love to start using/testing Toil on a local SLURM system. |
|
src/toil/test/batchSystems/batchSystemTest.py::SlurmBatchSystemTest::testRunJobs seems to hang |
|
Yep, I see that. I need to check the subprocess for an exit code and fail if it failed. Then we should see why it's not working. |
|
Adding -s to the pytest command line disables output capturing diff --git a/Makefile b/Makefile
index 8bc81e8..e0b0c2f 100644
--- a/Makefile
+++ b/Makefile
@@ -69,7 +67,7 @@ clean_sdist:
test: check_venv
- $(python) setup.py test --pytest-args "-vv $(tests)"
+ $(python) setup.py test --pytest-args "-vv -s $(tests)" |
|
Good tip, thanks |
|
Sorry for the OT @hannes-ucsc? But I'm getting Access Denied when registering an account on: And trying to access: Are those CI build logs public? |
|
That helped. It seems the jobs aren't starting. The slurm partition goes into |
No. Too risky. Only members of our GH org should have access. Is there a particular reason you would like to see them? |
|
Mostly we are waiting for this implementation to build successfully (see https://github.com/guillermo-carrasco/toil/blob/slurm/src/toil/batchSystems/slurm.py and #682) and were wondering if there's some way for us to help with the debugging process. |
|
@hannes-ucsc, I'm perhaps too used to CI/CD systems like TravisCI and CircleCI which have all logs available for every other open source project developer to see by default ;) |
|
@hannes-ucsc This will need another rebuild of the toil-jenkins-slave image, using BD2KGenomics/cgcloud#141. I built a toil-jenkins-slave with that branch and the tests passed. |
|
@dleehr, I merged that PR and recreated the AMI. Jenkins, test this please. |
|
Jenkins, test this please. |
|
Thanks for merging/recreating. I don't know why this fails, when I build the image and run the tests myself, it passes. Perhaps someone with more slurm experience can take a look? /cc: @ohofmann @brainstorm @guillermo-carrasco. I can cut out the appropriate parts of the log |
|
@dleehr thanks for the log. However I can't find any useful information in there, could you please attach here, if possible, the actual SLURM log? Thanks! |
|
@guillermo-carrasco: I don't have access to the host or the slurm log. All I have is the console output from the test. @hannes-ucsc - Any ideas? |
|
Just to make the point, we've been testing your branch in our cluster and it seems to work as well. |
|
@dleehr I guess that a quick debug hack would be to run |
|
Thanks @brainstorm. I've now built a jenkins cluster with cgcloud (1 master and one toil slave). I'm seeing the same issues here, so I should be able to troubleshoot |
Glad to hear that you an reproduce this on your own cluster. Generally speaking, cgcloud prefers to use a special application user as opposed to running applications as root or a user that has password-less sudo. Jenkins builds are run as the |
Yep, and that's mostly working. The problem is with permissions on the Despite setting the permission and ownership to I'll either relocate the file or otherwise ensure the permissions. |
Consider using Another alternative would be to modify the Slurm init scripts to do the necessary chmod/chown. Do the Slurm daemons need to be run as root? |
Thanks for your patience. I'm confident this will pass once the toil-jenkins-slave image is rebuilt again - I confirmed it on a cgcloud jenkins cluster. |
Not exactly LSB, but ok. I may open a separate ticket to move it back to /var/run and fix the permissions explicitly. |
|
I created a new slave image with @dleehr's PRed changes. Jenkins, test this please. |
|
All tests pass! But build fails with Toil tests have to clean up after themselves. |
|
And, looking at the history, I think the commits should be squashed. |
|
Ok I'll clean up the extra files. As for the commit squashing, GitHub can do that on merge now, does that work? |
Doesn't that require you to rebase your branch on top of master? And if that is the case, how hard is it to squash while rebasing? Maybe I'm confused about this option. Another thing about squashing before the merge is that I get a CI build of the exact commit that get's merged. But again, educate me, I'm probably not up-to-date here. |
Actually no. I just tested it in a demo repo - It's a new feature on GitHub. Seems to work as long as there are no conflicts. I'll be pushing changes to clean up the dirty working copy very soon |
| # -N is job name, which should be based on the jobID | ||
|
|
||
| sbatch_line = ['sbatch', '-Q', '-J', 'toil_job_{}'.format(jobID)] | ||
| sbatch_line = ['sbatch', '-Q', '-J', 'toil_job_{}'.format(jobID), '-o', '/dev/null', '-e', '/dev/null'] |
There was a problem hiding this comment.
This is what the GridEngine batch system does and turned out to be a bad idea. If anything goes wrong before worker.py gets a chance to setup its own redirection, any errors that occur will be swallowed, making diagnosing problems much harder.
We have something in the works that will allow us to set a workflow-specific location for files like this. For the time being, could you undo this change and instead add the appropriate clean-up code to the tests?
I tried this too (on a different project) and it works. I don't like how it leaves the source branch dangling in the history. That and the fact that our CI does not build the exact merge commit will probably mean that we won't be using this feature for now. If you don't have the time to squash the commits, I will go ahead and do that in a separate PR (you'll remain the commit author). You have contributed a great deal and I don't want to test your patience with my pedantry. |
|
Ok I can squash when I update with the cleanup change. Happy to help. |
Implements support for slurm scheduler SlurmBatchSystem class is modeled after GridengineBatchSystem Maps AbstractBatchSystem methods to sbatch, squeue, scancel, sacct, sinfo subprocess calls Includes SlurmBatchSystemTest for testing system Wrap submitted sbatch command in --wrap
|
Looks like the only failure is |
|
Yes, test failure tracked in #783. Fix has been merged. Going to rebase this branch. |
|
Continued in #799 |
Implements support for slurm scheduler