l.s.m.b.BinaryPackageBuildSet(SpecificBuildFarmJobSourceMixin) : class documentation

Part of lp.soyuz.model.binarypackagebuild View In Hierarchy

No class docstring
Method new See IBinaryPackageBuildSet.
Method getByID See IBinaryPackageBuildSet.
Method getByBuildFarmJob See ISpecificBuildFarmJobSource.
Method preloadBuildsData Undocumented
Method getByBuildFarmJobs See ISpecificBuildFarmJobSource.
Method getBySourceAndLocation Undocumented
Method handleOptionalParamsForBuildQueries Construct query clauses needed/shared by all getBuild..() methods.
Method getBuildsForBuilder See IBinaryPackageBuildSet.
Method getBuildsForArchive See IBinaryPackageBuildSet.
Method getBuildsForDistro See IBinaryPackageBuildSet.
Method getBuildsBySourcePackageRelease See IBinaryPackageBuildSet.
Method findBuiltOrPublishedBySourceAndArchive See IBinaryPackageBuildSet.
Method getStatusSummaryForBuilds See IBinaryPackageBuildSet.
Method getByQueueEntry See IBinaryPackageBuildSet.
Static Method addCandidateSelectionCriteria See ISpecificBuildFarmJobSource.
Static Method postprocessCandidate See ISpecificBuildFarmJobSource.
Method createForSource See ISourcePackagePublishingHistory.
Method _decorate_with_prejoins Decorate build records with related data prefetch functionality.
Method _prefetchBuildData Used to pre-populate the cache with build related data.
Method _getAllowedArchitectures Filter out any restricted architectures not specifically allowed
def new(self, source_package_release, archive, distro_arch_series, pocket, arch_indep=None, status=BuildStatus.NEEDSBUILD, builder=None, buildinfo=None):
See IBinaryPackageBuildSet.
def getByID(self, id):
See IBinaryPackageBuildSet.
def getByBuildFarmJob(self, build_farm_job):
See ISpecificBuildFarmJobSource.
def preloadBuildsData(self, builds):
Undocumented
def getByBuildFarmJobs(self, build_farm_jobs):
See ISpecificBuildFarmJobSource.
def getBySourceAndLocation(self, source_package_release, archive, distro_arch_series):
Undocumented
def handleOptionalParamsForBuildQueries(self, clauses, origin, status=None, name=None, pocket=None, arch_tag=None):
Construct query clauses needed/shared by all getBuild..() methods.

This method is not exposed via the public interface as it is only used to DRY-up trusted code.

Parametersclausescontainer to which to add any resulting query clauses.
origincontainer to which to add joined tables.
statusoptional build state for which to add a query clause if present.
nameoptional source package release name (or list of source package release names) for which to add a query clause if present.
pocketoptional pocket (or list of pockets) for which to add a query clause if present.
arch_tagoptional architecture tag for which to add a query clause if present.
def getBuildsForBuilder(self, builder_id, status=None, name=None, pocket=None, arch_tag=None, user=None):
See IBinaryPackageBuildSet.
def getBuildsForArchive(self, archive, status=None, name=None, pocket=None, arch_tag=None):
See IBinaryPackageBuildSet.
def getBuildsForDistro(self, context, status=None, name=None, pocket=None, arch_tag=None):
See IBinaryPackageBuildSet.
def _decorate_with_prejoins(self, result_set):
Decorate build records with related data prefetch functionality.
def getBuildsBySourcePackageRelease(self, sourcepackagerelease_ids, buildstate=None):
See IBinaryPackageBuildSet.
def findBuiltOrPublishedBySourceAndArchive(self, sourcepackagerelease, archive):
See IBinaryPackageBuildSet.
def getStatusSummaryForBuilds(self, builds):
See IBinaryPackageBuildSet.
def _prefetchBuildData(self, results):
Used to pre-populate the cache with build related data.

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.

def getByQueueEntry(self, queue_entry):
See IBinaryPackageBuildSet.
@staticmethod
def addCandidateSelectionCriteria(processor, virtualized):
See ISpecificBuildFarmJobSource.
@staticmethod
def postprocessCandidate(job, logger):
See ISpecificBuildFarmJobSource.
def _getAllowedArchitectures(self, archive, available_archs):
Filter out any restricted architectures not specifically allowed for an archive.
Parametersavailable_archsArchitectures to consider
ReturnsSequence of IDistroArch instances.
def createForSource(self, sourcepackagerelease, archive, distroseries, pocket, architectures_available=None, logger=None):
See ISourcePackagePublishingHistory.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.