Esempio n. 1
0
def Update(config, _active_master, c):
    # Polls config.Master.trunk_url for changes
    chromium_url = "http://src.chromium.org/viewvc/chrome?view=rev&revision=%s"
    webkit_url = "http://src.chromium.org/viewvc/blink?view=rev&revision=%s"
    cr_poller = svnpoller.SVNPoller(svnurl=config.Master.trunk_url,
                                    svnbin=chromium_utils.SVN_BIN,
                                    split_file=ChromeTreeFileSplitter,
                                    pollinterval=30,
                                    revlinktmpl=chromium_url,
                                    cachepath='chromium.svnrev',
                                    project='chromium')
    c['change_source'].append(cr_poller)

    webkit_poller = svnpoller.SVNPoller(svnurl=config.Master.webkit_root_url,
                                        svnbin=chromium_utils.SVN_BIN,
                                        split_file=WebkitFileSplitter,
                                        pollinterval=30,
                                        revlinktmpl=webkit_url,
                                        cachepath='webkit.svnrev',
                                        project='webkit')
    c['change_source'].append(webkit_poller)

    c['schedulers'].append(
        AnyBranchScheduler(name='global_scheduler',
                           branches=['trunk', 'src'],
                           treeStableTimer=60,
                           builderNames=[]))
Esempio n. 2
0
def Update(config, active_master, c):
    # Polls config.Master.trunk_url for changes
    chromium_url = "http://src.chromium.org/viewvc/chrome?view=rev&revision=%s"
    webkit_url = "http://trac.webkit.org/changeset/%s"
    cr_poller = svnpoller.SVNPoller(svnurl=config.Master.trunk_url,
                                    split_file=ChromeTreeFileSplitter,
                                    pollinterval=30,
                                    revlinktmpl=chromium_url)
    c['change_source'].append(cr_poller)

    webkit_poller = svnpoller.SVNPoller(svnurl=config.Master.webkit_root_url,
                                        split_file=WebkitFileSplitter,
                                        pollinterval=30,
                                        revlinktmpl=webkit_url)
    c['change_source'].append(webkit_poller)
Esempio n. 3
0
    def setup_svn_poller(self,
                         repository,
                         branch,
                         project,
                         username=None,
                         password=None):
        for repo in self.repositories:
            if repository.startswith(repo):
                splitter = self.repositories[repo]
                break
        else:
            repo = self.get_repository_root(repository, username, password)

            scheme, netloc, path, params, query, fragment = urlparse.urlparse(
                repo)
            name = "%s-%s-%s" % (scheme, netloc.replace(
                ".", "-"), path.rstrip("/").lstrip("/").replace("/", "-"))
            pollerdir = self.make_poller_dir(name)

            splitter = self.repositories[repo] = SVNChangeSplitter(repo)

            self.config['change_source'].append(
                svnpoller.SVNPoller(
                    name=name,
                    svnurl=repo,
                    cachepath=os.path.join(pollerdir, "pollerstate"),
                    project=None,
                    split_file=splitter,
                    svnuser=username,
                    svnpasswd=password,
                ))

        splitter.add(repository, branch, project)
Esempio n. 4
0
def Update(config, c):
  poller = svnpoller.SVNPoller(
      svnurl=config.Master.trunk_url,
      split_file=ChromiumFileSplitter,
      pollinterval=30,
      revlinktmpl='http://src.chromium.org/viewvc/chrome?view=rev&revision=%s')
  c['change_source'].append(poller)
Esempio n. 5
0
def Update(config, active_master, c):
    # Polls config.Master.trunk_url for changes
    viewvc_url = "http://code.google.com/p/omaha/source/detail?r=%s"
    poller = svnpoller.SVNPoller(svnurl='http://omaha.googlecode.com/svn/',
                                 split_file=ChromeTreeFileSplitter,
                                 pollinterval=10,
                                 revlinktmpl=viewvc_url)
    c['change_source'].append(poller)
Esempio n. 6
0
def Update(config, active_master, c):
    # Polls config.Master.trunk_url for changes
    viewvc_url = "http://src.chromium.org/viewvc/chrome?view=rev&revision=%s"
    poller = svnpoller.SVNPoller(svnurl=config.Master.trunk_url,
                                 split_file=ChromeTreeFileSplitter,
                                 pollinterval=10,
                                 revlinktmpl=viewvc_url)
    c['change_source'].append(poller)
Esempio n. 7
0
def Update(config, c):
    poller = svnpoller.SVNPoller(
        svnurl=config.Master.webrtc_url,
        split_file=WebRTCFileSplitter,
        pollinterval=30,
        histmax=10,
        revlinktmpl='http://code.google.com/p/webrtc/source/detail?r=%s')
    c['change_source'].append(poller)
Esempio n. 8
0
def Update(config, c):
  poller = svnpoller.SVNPoller(
      svnurl=config.Master.libjingle_url,
      split_file=TrunkOnlyFileSplitter,
      pollinterval=30,
      histmax=10,
      revlinktmpl='http://code.google.com/p/libjingle/source/detail?r=%s')
  c['change_source'].append(poller)
Esempio n. 9
0
def Update(config, active_master, c):
    skia_url = config.Master.skia_url
    skia_revlinktmpl = 'http://code.google.com/p/skia/source/browse?r=%s'

    skia_poller = svnpoller.SVNPoller(svnurl=skia_url,
                                      split_file=SkiaFileSplitter,
                                      pollinterval=30,
                                      revlinktmpl=skia_revlinktmpl)
    c['change_source'].append(skia_poller)
Esempio n. 10
0
def Update(config, active_master, c):
  syzygy_url = config.Master.syzygy_url
  syzygy_revlinktmpl = config.Master.googlecode_revlinktmpl % ('sawbuck', '%s')

  syzygy_poller = svnpoller.SVNPoller(svnurl=syzygy_url,
                                      svnbin=chromium_utils.SVN_BIN,
                                      split_file=SyzygyFileSplitter,
                                      pollinterval=30,
                                      revlinktmpl=syzygy_revlinktmpl)
  c['change_source'].append(syzygy_poller)
Esempio n. 11
0
def Update(config, active_master, c):
  # Polls config.Master.trunk_url for changes
  viewvc_url = "http://src.chromium.org/viewvc/chrome?view=rev&revision=%s"
  svnbin = os.path.join(
      chromium_utils.BUILD_DIR, 'scripts', 'tools', 'svn-with-timeout')
  poller = svnpoller.SVNPoller(svnurl=config.Master.trunk_url,
                               svnbin=svnbin,
                               split_file=ChromeTreeFileSplitter,
                               pollinterval=10,
                               revlinktmpl=viewvc_url)
  c['change_source'].append(poller)
Esempio n. 12
0
    def get_svn_poller():
        def dart_tree_file_splitter(path):
            pieces = path.split('/')
            if pieces[0] == 'trunk':
                return ('trunk', '/'.join(pieces[1:]))
            elif pieces[0] == 'branches':
                return ('/'.join(pieces[0:2]), '/'.join(pieces[2:]))
            elif pieces[0] == 'experimental':
                return ('/'.join(pieces[0:2]), '/'.join(pieces[2:]))
            else:
                return None

        # Polls config.Master.dart_url for changes
        return svnpoller.SVNPoller(svnurl=config.Master.dart_url,
                                   split_file=dart_tree_file_splitter,
                                   pollinterval=10,
                                   revlinktmpl=dart_revision_url)
Esempio n. 13
0
 def attachSVNPoller(self, *args, **kwargs):
     s = svnpoller.SVNPoller(*args, **kwargs)
     self.attachChangeSource(s)
     return s