Skip to content
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.

Code not being pulled down to remote runners #21

Open
brynary opened this issue Jan 19, 2011 · 1 comment
Open

Code not being pulled down to remote runners #21

brynary opened this issue Jan 19, 2011 · 1 comment

Comments

@brynary
Copy link

brynary commented Jan 19, 2011

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

@joakimk
Copy link
Owner

joakimk commented Jan 19, 2011

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).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants