Skip to content

Commit

Permalink
test: checkpoint "build" stage too during test_stages.py
Browse files Browse the repository at this point in the history
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: osbuild#1874
  • Loading branch information
mvo5 authored and achilleas-k committed Sep 5, 2024
1 parent a0828f7 commit a221d4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/run/test_stages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit a221d4e

Please sign in to comment.