Code not being pulled down to remote runners
Hello,
I think I'm a bit confused -- I'm trying to use multiple runners on separate hosts. The tests are failing because the code files don't exist. How is code supposed to get to the runners?
I added some debugging output and see the remote runners are doing this:
rsync -az --delete -e ssh /tmp/testbot/ubuntu/ project
But, that's a local operation. It would seem the runners need to contact the server remotely to pull the code. I inspected the code and found this in runner.rb:
def fetch_code(job)
system "rsync -az --delete -e ssh #{job.root}/ #{job.project}"
end
...but that doesn't seem to have a remote reference either. Any help you can provide would be greatly appreciated!
Thanks,
-Bryan
Hi,
It seems to me that you are trying to run the server on the computer requesting the test run? (config.server_host = "localhost"), see requester.rb:
https://github.com/joakimk/testbot/blob/master/lib/requester/requester.rb#L108
It's a workaround for running testbot locally without using ssh but it assumes that the runner is also local.
You can probably work around this by adding a line to /etc/hosts, or using your NIC IP for server_host (aka --connect).