Skip to content

Commit

Permalink
Added legacy mode support for automatic SVN schedulers.
Browse files Browse the repository at this point in the history
llvm-svn: 374594
  • Loading branch information
gkistanova committed Oct 11, 2019
1 parent b5e9386 commit b095aa0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions buildbot/osuosl/master/config/schedulers.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ def getSingleBranchSchedulers(builders, schedulers, **kwargs):
for builder in builders:
# Only for the builders created with LLVMBuildFactory or similar.
if getattr(builder['factory'], 'depends_on_projects', None):
# And only if this builder does not yet have an assigned scheduler.
if builder['name'] not in builders_with_schedulers:
# And only if this builder is in the legacy mode and
# does not yet have an assigned scheduler.
if getattr(builder['factory'], 'is_legacy_mode', True) and \
builder['name'] not in builders_with_schedulers:
# This builder is a candidate for an automatic scheduler.
builders_with_automatic_schedulers.append(builder)

Expand Down

0 comments on commit b095aa0

Please sign in to comment.