Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions master/custom/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ class GitHub(_GitHub):
warnOnFailure = True


class GitGC(ShellCommand):
name = 'git-gc'
warnOnFailure = True
haltOnFailure = False
flunkOnFailure = False
alwaysRun = True

description = ["cleaning git checkout"]
descriptionDone = ["git garbage collected"]
command = ["git", "gc"]


class Test(BaseTest):
# Regular expression used to catch warnings, errors and bugs
warningPattern = (
Expand Down Expand Up @@ -144,14 +156,6 @@ class Clean(ShellCommand):
alwaysRun = True


class CleanupTest(ShellCommand):
name = "cleantest"
description = ["cleaning previous tests"]
descriptionDone = ["clean previous tests"]
flunkOnFailure = False
warnOnFailure = True


class Install(ShellCommand):
name = "install"
description = ["installing"]
Expand Down
5 changes: 4 additions & 1 deletion master/master.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ from custom.pr_testing import ( # noqa: E402
should_pr_be_tested,
)
from custom.settings import Settings # noqa: E402
from custom.steps import Git, GitHub # noqa: E402
from custom.steps import GitGC, GitHub # noqa: E402
from custom.workers import get_workers # noqa: E402
from custom.schedulers import GitHubPrScheduler # noqa: E402
from custom.release_dashboard import get_release_status_app # noqa: E402
Expand Down Expand Up @@ -226,6 +226,9 @@ for branch in BRANCHES:
if branch not in f.branches:
continue

# Stopgap space saver until blobless clones are fixed (buildbot 4.4+)
f.addStep(GitGC())

tags = [branch.builder_tag, *builder_def.tags, *f.tags]

if 'nogil' in tags and branch.gil_only:
Expand Down