Part of lp.soyuz.model.build View In Hierarchy
Implements interfaces: lp.soyuz.interfaces.build.IBuildSet
| Method | getBuildBySRAndArchtag | See IBuildSet |
| Method | getByBuildID | See IBuildSet. |
| Method | getPendingBuildsForArchSet | See IBuildSet. |
| Method | handleOptionalParamsForBuildQueries | Construct query clauses needed/shared by all getBuild..() methods. |
| Method | getBuildsForBuilder | See IBuildSet. |
| Method | getBuildsForArchive | See IBuildSet. |
| Method | getBuildsByArchIds | See IBuildSet. |
| Method | retryDepWaiting | See IBuildSet. |
| Method | getBuildsBySourcePackageRelease | See IBuildSet. |
| Method | getStatusSummaryForBuilds | See IBuildSet. |
| Method | getByQueueEntry | See IBuildSet. |
| Method | getQueueEntriesForBuildIDs | See IBuildSet. |
| Method | calculateCandidates | See IBuildSet. |
| Method | _decorate_with_prejoins | Decorate build records with related data prefetch functionality. |
| Method | _prefetchBuildData | Used to pre-populate the cache with build related data. |
This method is not exposed via the public interface as it is only used to DRY-up trusted code.
| Parameters | queries | container to which to add any resulting query clauses. |
| tables | container to which to add joined tables. | |
| status | optional build state for which to add a query clause if present. | |
| name | optional source package release name for which to add a query clause if present. | |
| optional pocket for which to add a query clause if present. | ||
| arch_tag | optional architecture tag for which to add a query clause if present. |
IBuildSet.IBuildSet.IBuildSet.When dealing with a group of Build records we can't use the prejoin facility to also fetch BuildQueue, SourcePackageRelease and LibraryFileAlias records in a single query because the result set is too large and the queries time out too often.
So this method receives a list of Build instances and fetches the corresponding SourcePackageRelease and LibraryFileAlias rows (prejoined with the appropriate SourcePackageName and LibraryFileContent respectively) as well as builders related to the Builds at hand.