[buildbot] phase1: rsync based on checksum, not mtime
LEDE Commits
lede-commits at lists.infradead.org
Fri Nov 4 06:19:43 PDT 2016
jow pushed a commit to buildbot.git, branch master:
https://git.lede-project.org/1dba284ea8cf60f53e0ea861b054b72e2e4341df
commit 1dba284ea8cf60f53e0ea861b054b72e2e4341df
Author: Jo-Philipp Wich <jo at mein.io>
AuthorDate: Fri Nov 4 14:16:32 2016 +0100
phase1: rsync based on checksum, not mtime
Instruct rsync to compare the file checksums, and not their modification times.
This should decrease the source upload volume significantly.
Signed-off-by: Jo-Philipp Wich <jo at mein.io>
---
phase1/master.cfg | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/phase1/master.cfg b/phase1/master.cfg
index 908087e..89243ff 100644
--- a/phase1/master.cfg
+++ b/phase1/master.cfg
@@ -529,7 +529,7 @@ EOT''' %(ts[0], ts[0], ts[1]) ))
factory.addStep(ShellCommand(
name = "targetupload",
description = "Uploading target files",
- command=["rsync", "--delete", "--delay-updates", "--partial-dir=.~tmp~%s~%s" %(ts[0], ts[1]), "-avz", WithProperties("bin/targets/%s/%s%%(libc)s/" %(ts[0], ts[1])), "%s/targets/%s/%s/" %(rsync_bin_url, ts[0], ts[1])],
+ command=["rsync", "--delete", "--checksum", "--delay-updates", "--partial-dir=.~tmp~%s~%s" %(ts[0], ts[1]), "-avz", WithProperties("bin/targets/%s/%s%%(libc)s/" %(ts[0], ts[1])), "%s/targets/%s/%s/" %(rsync_bin_url, ts[0], ts[1])],
env={'RSYNC_PASSWORD': rsync_bin_key},
haltOnFailure = True,
logEnviron = False
@@ -539,7 +539,7 @@ EOT''' %(ts[0], ts[0], ts[1]) ))
factory.addStep(ShellCommand(
name = "sourceupload",
description = "Uploading source archives",
- command=["rsync", "--delay-updates", "--partial-dir=.~tmp~%s~%s" %(ts[0], ts[1]), "-avz", "dl/", "%s/" %(rsync_src_url)],
+ command=["rsync", "--checksum", "--delay-updates", "--partial-dir=.~tmp~%s~%s" %(ts[0], ts[1]), "-avz", "dl/", "%s/" %(rsync_src_url)],
env={'RSYNC_PASSWORD': rsync_src_key},
haltOnFailure = True,
logEnviron = False
More information about the lede-commits
mailing list