Package bitten :: Module queue

Module queue

Implements the scheduling of builds for a project.

This module provides the functionality for scheduling builds for a specific Trac environment. It is used by both the build master and the web interface to get the list of required builds (revisions not built yet).

Furthermore, the BuildQueue class is used by the build master to determine the next pending build, and to match build slaves against configured target platforms.

Classes
  BuildQueue
Enapsulates the build queue of an environment.
Functions
 
collect_changes(repos, config, db=None)
Collect all changes for a build configuration that either have already been built, or still need to be built.
Variables
  __package__ = 'bitten'
Function Details

collect_changes(repos, config, db=None)

 

Collect all changes for a build configuration that either have already been built, or still need to be built.

This function is a generator that yields (platform, rev, build) tuples, where platform is a TargetPlatform object, rev is the identifier of the changeset, and build is a Build object or None.

Parameters:
  • repos - the version control repository
  • config - the build configuration
  • db - a database connection (optional)