test: checkpoint "build" stage too during test_stages.py

Quick check to see if checkpointing "build" helps with the
runtime. Note that the cache size is already 20GB, I doubled
it for good measure but we probably can go back to 20, just
want to make sure this is not the bottleneck.

Closes: https://github.com/osbuild/osbuild/issues/1874
This commit is contained in:
Michael Vogt 2024-09-05 08:48:28 +02:00 committed by Achilleas Koutsou
parent a0828f77dc
commit a221d4e68b

View file

@ -223,12 +223,12 @@ class TestStages(test.TestBase):
out_a = stack.enter_context(tempfile.TemporaryDirectory(dir="/var/tmp"))
_ = osb.compile_file(os.path.join(test_dir, "a.json"),
checkpoints=["tree"],
checkpoints=["build", "tree"],
exports=["tree"], output_dir=out_a)
out_b = stack.enter_context(tempfile.TemporaryDirectory(dir="/var/tmp"))
res = osb.compile_file(os.path.join(test_dir, "b.json"),
checkpoints=["tree"],
checkpoints=["build", "tree"],
exports=["tree"], output_dir=out_b)
tree1 = os.path.join(out_a, "tree")