Changeset 233047 in webkit


Ignore:
Timestamp:
Jun 21, 2018, 11:42:28 AM (7 years ago)
Author:
aakash_jain@apple.com
Message:

Add support for using localhost worker in OpenSource EWS Buildbot
https://bugs.webkit.org/show_bug.cgi?id=186871

Reviewed by Lucas Forschler.

  • BuildSlaveSupport/ews-build/loadConfig.py:

(loadBuilderConfig): Added a worker named 'local-worker' if use_localhost_worker option is used.

  • BuildSlaveSupport/ews-build/master.cfg: Check BUILDBOT_TESTING environment variable and use_localhost_worker if so.
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/BuildSlaveSupport/ews-build/loadConfig.py

    r233045 r233047  
    3636
    3737
    38 def loadBuilderConfig(c):
     38def loadBuilderConfig(c, use_localhost_worker=False):
    3939    config = json.load(open('config.json'))
    4040    passwords = json.load(open('passwords.json'))
     
    4242
    4343    c['workers'] = [Worker(worker['name'], passwords.get(worker['name'], 'password')) for worker in config['workers']]
     44    if use_localhost_worker:
     45        c['workers'].append(Worker('local-worker', 'password', max_builds=2))
     46
    4447    c['builders'] = []
    4548    for builder in config['builders']:
     
    5053        if 'configuration' in builder:
    5154            del builder['configuration']
     55
     56        if use_localhost_worker:
     57            builder['workernames'].append("local-worker")
     58
    5259        c['builders'].append(builder)
    5360
  • trunk/Tools/BuildSlaveSupport/ews-build/master.cfg

    r232135 r233047  
     1import os
     2
    13import loadConfig
    24
     5
     6is_test_mode_enabled = os.getenv('BUILDBOT_TESTING') is not None
    37
    48c = BuildmasterConfig = {}
     
    2125c['buildbotNetUsageData'] = None
    2226
    23 loadConfig.loadBuilderConfig(c)
     27loadConfig.loadBuilderConfig(c, use_localhost_worker=is_test_mode_enabled)
  • trunk/Tools/ChangeLog

    r233045 r233047  
     12018-06-21  Aakash Jain  <aakash_jain@apple.com>
     2
     3        Add support for using localhost worker in OpenSource EWS Buildbot
     4        https://bugs.webkit.org/show_bug.cgi?id=186871
     5
     6        Reviewed by Lucas Forschler.
     7
     8        * BuildSlaveSupport/ews-build/loadConfig.py:
     9        (loadBuilderConfig): Added a worker named 'local-worker' if use_localhost_worker option is used.
     10        * BuildSlaveSupport/ews-build/master.cfg: Check BUILDBOT_TESTING environment variable and use_localhost_worker if so.
     11
    1122018-06-21  Aakash Jain  <aakash_jain@apple.com>
    213
Note: See TracChangeset for help on using the changeset viewer.