diff mbox series

[buildbot] phase2: exclude temporary files from sourceupload step

Message ID 20210324182510.1557913-1-baptiste@bitsofnetworks.org
State Superseded
Headers show
Series [buildbot] phase2: exclude temporary files from sourceupload step | expand

Commit Message

Baptiste Jonglez March 24, 2021, 6:25 p.m. UTC
From: Baptiste Jonglez <git@bitsofnetworks.org>

When the dl/ directory is shared with several workers, there can be
temporary "*.hash" and "*.dl" files being created by other workers.
These files should be excluded from the sourceupload step, otherwise it
can cause a failure when rsync tries to read them.

See for example:

  https://buildbot.openwrt.org/master/packages/#/builders/14/builds/18/steps/39/logs/stdio

Signed-off-by: Baptiste Jonglez <git@bitsofnetworks.org>
---
 phase2/master.cfg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/phase2/master.cfg b/phase2/master.cfg
index 4d5e595..7b103e8 100644
--- a/phase2/master.cfg
+++ b/phase2/master.cfg
@@ -727,7 +727,7 @@  for arch in arches:
 			name = "sourcelist",
 			description = "Finding source archives to upload",
 			workdir = "build/sdk",
-			command = "find dl/ -maxdepth 1 -type f -not -size 0 -not -name '.*' -newer ../sdk.archive -printf '%f\\n' > sourcelist",
+			command = "find dl/ -maxdepth 1 -type f -not -size 0 -not -name '.*' -not -name '*.hash' -not -name '*.dl' -newer ../sdk.archive -printf '%f\\n' > sourcelist",
 			haltOnFailure = True
 		))