chiark / gitweb /
build: rsync instead of sftp dirs to the buildserver
authorMarcus Hoffmann <bubuiic@aol.com>
Fri, 24 Nov 2017 21:41:06 +0000 (22:41 +0100)
committerMarcus Hoffmann <bubuiic@aol.com>
Sat, 25 Nov 2017 13:07:06 +0000 (14:07 +0100)
commit597fc04c9e21ef9fe5d710bd066626ec8258353c
treecf93d2388ea2c966b0ded77c65aeedd0d9dc03e6
parent4b51cc273aa20bd0162a6883244f87241c4a8cf8
build: rsync instead of sftp dirs to the buildserver

Sending many small files with paramiko's sftp implementation is quite
slow. There seems to be no way around this, other projects (ansible)
recommend to use rsync in this case.

Our sourcecode directories sometimes have a LOT of files, it can take
up to an hour to copy all required things inside the buildserver.

Instead we just use rsync with the ssh options we get from vagrant.
For rsync specific options we use:

* sync permissions as before
* sync symlinks (was done partially before)
* don't sync hardlinks and ownership as these don't make for things
  coming from a VCS

Closes fdroid/fdroidserver#227.
fdroidserver/build.py