[buildbot] phase1: remove 'cleanup' worker option (always set)

LEDE Commits lede-commits at lists.infradead.org
Mon May 15 08:39:08 PDT 2023


ynezz pushed a commit to buildbot.git, branch master:
https://git.openwrt.org/5ab238fbcac046bcc93f5f7675438aaf17f8d324

commit 5ab238fbcac046bcc93f5f7675438aaf17f8d324
Author: Thibaut VARÈNE <hacks at slashdirt.org>
AuthorDate: Thu Oct 20 15:51:38 2022 +0200

    phase1: remove 'cleanup' worker option (always set)
    
    Signed-off-by: Thibaut VARÈNE <hacks at slashdirt.org>
---
 phase1/config.ini.example | 1 -
 phase1/master.cfg         | 6 ++----
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/phase1/config.ini.example b/phase1/config.ini.example
index a006b56..d65c823 100644
--- a/phase1/config.ini.example
+++ b/phase1/config.ini.example
@@ -57,4 +57,3 @@ password = example
 phase = 1
 name = example-worker-2
 password = example2
-cleanup = 1
diff --git a/phase1/master.cfg b/phase1/master.cfg
index f6e752f..09d3cd4 100644
--- a/phase1/master.cfg
+++ b/phase1/master.cfg
@@ -90,11 +90,9 @@ for section in ini.sections():
 	if section.startswith("worker "):
 		if ini.has_option(section, "name") and ini.has_option(section, "password") and \
 		   (not ini.has_option(section, "phase") or ini.getint(section, "phase") == 1):
-			sl_props = { 'dl_lock':None, 'ul_lock':None, 'do_cleanup':False }
+			sl_props = { 'dl_lock':None, 'ul_lock':None }
 			name = ini.get(section, "name")
 			password = ini.get(section, "password")
-			if ini.has_option(section, "cleanup"):
-				sl_props['do_cleanup'] = ini.getboolean(section, "cleanup")
 			if ini.has_option(section, "dl_lock"):
 				lockname = ini.get(section, "dl_lock")
 				sl_props['dl_lock'] = lockname
@@ -561,7 +559,7 @@ for target in targets:
 		repourl = repo_url,
 		branch = repo_branch,
 		mode = 'full',
-		method = Interpolate("%(prop:do_cleanup:#?|fresh|clean)s"),
+		method = 'fresh',
 		locks = NetLockDl,
 		haltOnFailure = True,
 	))




More information about the lede-commits mailing list