[buildbot] phase1,phase2: add file space usage reporting

LEDE Commits lede-commits at lists.infradead.org
Thu Mar 25 08:57:58 GMT 2021


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

commit c7df883d1cd908b7da681b9d3283a6293f989172
Author: Petr Štetiar <ynezz at true.cz>
AuthorDate: Thu Mar 25 09:54:49 2021 +0100

    phase1,phase2: add file space usage reporting
    
    Add `du` step so it's clear how much space was used by the build.
    
    Signed-off-by: Petr Štetiar <ynezz at true.cz>
---
 phase1/master.cfg | 11 +++++++++++
 phase2/master.cfg | 11 +++++++++++
 2 files changed, 22 insertions(+)

diff --git a/phase1/master.cfg b/phase1/master.cfg
index a1f7dea..a85382a 100644
--- a/phase1/master.cfg
+++ b/phase1/master.cfg
@@ -1380,6 +1380,17 @@ for target in targets:
 		alwaysRun = True
 	))
 
+	factory.addStep(ShellCommand(
+		name = "du",
+		description = "Reporting estimated file space usage",
+		command=["du", "-sh", "."],
+		env={'LC_ALL': 'C'},
+		haltOnFailure = False,
+		flunkOnFailure = False,
+		warnOnFailure = False,
+		alwaysRun = True
+	))
+
 	factory.addStep(ShellCommand(
 		name = "ccachestat",
 		description = "Reporting ccache stats",
diff --git a/phase2/master.cfg b/phase2/master.cfg
index b5050e5..b9342cf 100644
--- a/phase2/master.cfg
+++ b/phase2/master.cfg
@@ -763,6 +763,17 @@ for arch in arches:
 		alwaysRun = True
 	))
 
+	factory.addStep(ShellCommand(
+		name = "du",
+		description = "Reporting estimated file space usage",
+		command=["du", "-sh", "."],
+		env={'LC_ALL': 'C'},
+		haltOnFailure = False,
+		flunkOnFailure = False,
+		warnOnFailure = False,
+		alwaysRun = True
+	))
+
 	c['builders'].append(BuilderConfig(name=arch[0], workernames=workerNames, factory=factory))
 
 	c['schedulers'].append(schedulers.Triggerable(name="trigger_%s" % arch[0], builderNames=[ arch[0] ]))



More information about the lede-commits mailing list