staging-report: ignore projects not in a final state.
This commit is contained in:
parent
9b667e759e
commit
01820c1e5e
@ -97,17 +97,13 @@ class StagingReport(object):
|
|||||||
def report(self, project, aggregate=True, force=False):
|
def report(self, project, aggregate=True, force=False):
|
||||||
info = self.api.project_status(project, aggregate)
|
info = self.api.project_status(project, aggregate)
|
||||||
|
|
||||||
# Some staging projects do not have info like
|
# Do not attempt to process projects without staging info, or projects
|
||||||
# openSUSE:Factory:Staging:Gcc49
|
# in a pending state that will change before settling. This avoids
|
||||||
if not info:
|
# intermediate notifications that may end up being spammy and for
|
||||||
return
|
# long-lived stagings where checks may be re-triggered multiple times
|
||||||
|
# and thus enter pending state (not seen on first run) which is not
|
||||||
if info['overall_state'] == 'empty':
|
# useful to report.
|
||||||
return
|
if not info or not self.api.project_status_final(info):
|
||||||
|
|
||||||
# The 'unacceptable' status means that the project will be
|
|
||||||
# replaced soon. Better do not disturb with noise.
|
|
||||||
if info['overall_state'] == 'unacceptable':
|
|
||||||
return
|
return
|
||||||
|
|
||||||
report_broken_packages = self._report_broken_packages(info)
|
report_broken_packages = self._report_broken_packages(info)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user