Skip to content

Commit

Permalink
Keep only 3 boxes in the runners
Browse files Browse the repository at this point in the history
Current boxes are larger than they used to be and small runners
can't handle much more than 4 boxes.

Signed-off-by: Armando Neto <abiagion@redhat.com>
  • Loading branch information
netoarmando committed Jun 8, 2020
1 parent ccf4633 commit 7ad607e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tasks/vagrant.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,10 @@ def clean_last_time_used(box):

# Do not delete Windows boxes
linux_boxes = [x for x in all_boxes if 'windows' not in x.name]
if len(linux_boxes) > 4:
linux_boxes[0].delete_box()

# Keep only the latest 3 boxes
for box in linux_boxes[:-3]:
box.delete_box()

@staticmethod
def installed_boxes():
Expand Down

0 comments on commit 7ad607e

Please sign in to comment.