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
3 changes: 2 additions & 1 deletion zorg/buildbot/builders/ClangBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ def _getClangCMakeBuildFactory(
f = LLVMBuildFactory(
depends_on_projects=depends_on_projects,
llvm_srcdir='llvm',
enable_runtimes=enable_runtimes)
enable_runtimes=enable_runtimes,
clean=clean)

# Checkout the latest code for LNT
# and the test-suite separately. Le's do this first,
Expand Down
8 changes: 8 additions & 0 deletions zorg/buildbot/process/buildrequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ def collapseRequests(master, builder, req1, req2):
str(req2['buildsetid'])
)

# If the build is going to be a clean build anyway, we can collapse a clean
# build and a non-clean build.
if getattr(builder.config.factory, "clean", False):
if 'clean_obj' in selfBuildsetPoperties:
del selfBuildsetPoperties["clean_obj"]
if 'clean_obj' in otherBuildsetPoperties:
del otherBuildsetPoperties["clean_obj"]

# Check buildsets properties and do not collapse
# if properties do not match. This includes the check
# for different schedulers.
Expand Down
2 changes: 2 additions & 0 deletions zorg/buildbot/process/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ def __init__(self, steps=None, depends_on_projects=None, hint=None, **kwargs):
BuildFactory.__init__(self, steps)

self.hint = hint

self.clean = kwargs.pop('clean', False)

# Handle the dependencies.
if depends_on_projects is None:
Expand Down