From a221d4e68be2065649dff917176579ad7091e65a Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 5 Sep 2024 08:48:28 +0200 Subject: [PATCH] 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 --- test/run/test_stages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/run/test_stages.py b/test/run/test_stages.py index 17c2db5b8..dd6617f8c 100644 --- a/test/run/test_stages.py +++ b/test/run/test_stages.py @@ -223,12 +223,12 @@ def run_stage_diff_test(self, test_dir: str): 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")