Ticket #478 (closed defect: wontfix)

Opened 4 years ago

Last modified 3 years ago

Add JHBuild support to Buildbot

Reported by: ipv6guru Owned by:
Priority: major Milestone: 0.8.+
Version: 0.7.10 Keywords:
Cc:

Description

This is a preliminar patch to integrate buildbot with jhbuild scripts and modulesets. It adds:

  • A command in slave for jhbuild update operations
  • A step in master to retrieve jhbuild sources
  • A step in master to run jhbuild commands (buildone).
  • A factory to get builders for a module of jhbuild.
  • A serial scheduler, to let the jhbuild moduleset

be compiled serialized.

The jhbuild projects model maps this way:

  • Each module gets a factory
  • The factory can be used to get builders in many

slaves. Then we'll get a builder for each factor and slave.

  • An scheduler for each builder. In my case the

first module uses a Periodic scheduler, and the others are Serial depending on the previous module.

An example of the setup in the master.cfg:

# Run jhbuild and get module names in targets list moduleset = " http://cvs.gnome.org/viewcvs/*checkout*/jhbuild/modulesets/gnome-2.16.modu les" command = '~/bin/jhbuild ' command += '--moduleset='+moduleset+' ' command += 'list' (status, output) = commands.getstatusoutput(command) targets = [] if (status == 0): targets = string.split(output, ' ')

#Creates factories, builders and schedulers for each target builders = [] buildernames = [] cschedulers? = [] previousScheduler = None for t in targets: f = factory.JHBuildFactory(t, moduleset) builder = {'name': t+'-'+machine, 'slavename': machine, 'builddir': t+'-'+machine, 'factory': f, } builders.append(builder) buildernames.append(buildername?) if previousScheduler is None: scheduler = Periodic(name=buildername?, branch=None, periodicBuildTimer=14400, builderNames=[buildername?]) else: scheduler = Serial(name=buildername?, branch=None, upstream = previousScheduler, builderNames=[buildername?]) cschedulers?.append(scheduler) previousScheduler = scheduler

cbuilders? = builders

Attachments

buildbot-jhbuild-support.patch Download (7.7 KB) - added by ipv6guru 4 years ago.

Change History

Changed 4 years ago by ipv6guru

comment:1 Changed 4 years ago by ipv6guru

Moved from sourceforge

comment:2 Changed 4 years ago by dustin

  • Milestone changed from undecided to 0.7.+

yuck, a darcs patch. Is there interest in this?

comment:3 Changed 3 years ago by dustin

  • Keywords sourceforge 1530272 removed
  • Status changed from new to closed
  • Resolution set to wontfix

closing for lack of interest

Note: See TracTickets for help on using tickets.