]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/concurrenttest: Use ionice to delete build directories
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 19 Sep 2019 12:21:26 +0000 (13:21 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 19 Sep 2019 15:50:47 +0000 (16:50 +0100)
Autobuilder type infrastructure can benefit from deletion of certain files as
background IO due to the way Linux filesystem priority works.

We have problems where build directories as part of oe-selftest being
delete starves the running tasks of IO to the point builds take much
longer to compelte.

Having this option of running the deletion at "idle" helps a lot with
that. Use the new option added to bb.utils.prunedir().

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/core/utils/concurrencytest.py

index fa6fa34b0e18f328c12d3e4ec62ae68996ca8650..6293cf94ec5068f8a1558e17d06708e5a64e4ace 100644 (file)
@@ -216,7 +216,7 @@ def removebuilddir(d):
     while delay and os.path.exists(d + "/bitbake.lock"):
         time.sleep(1)
         delay = delay - 1
-    bb.utils.prunedir(d)
+    bb.utils.prunedir(d, ionice=True)
 
 def fork_for_tests(concurrency_num, suite):
     result = []