Part of lp.buildmaster
| Class | BuilderFactory | A dumb builder factory that just talks to the DB. |
| Class | PrefetchedBuilderFactory | A smart builder factory that does efficient bulk queries. |
| Function | judge_failure | Judge how to recover from a scan failure. |
| Function | recover_failure | Recover from a scan failure by slapping the builder or job. |
| Class | SlaveScanner | A manager for a single builder. |
| Class | NewBuildersScanner | If new builders appear, create a scanner for them. |
| Class | BuilddManager | Main Buildd Manager service class. |
Assesses the failure counts of a builder and its current job, and determines the best course of action for recovery.
| Parameters | builder_count: Count of consecutive failures of the builder. | |
| job_count: Count of consecutive failures of the job. | ||
| exc: Exception that caused the failure, if any. | ||
| retry: Whether to retry a few times without taking action. | ||
| Returns | A tuple of (builder action, job action). True means reset, False means fail, None means take no action. | |