Skip to content

Commit

Permalink
stable-rc: do not generate empty reports
Browse files Browse the repository at this point in the history
Generate report only if atleast one revision
is found from selected origins i.e. maestro
or broonie.

Signed-off-by: Jeny Sadadia <[email protected]>
  • Loading branch information
Jeny Sadadia committed Aug 21, 2024
1 parent 705b790 commit 6926840
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions kcidb/monitor/subscriptions/linux_stable_rc.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ def match_revision(revision):
if revision.builds_valid is None:
return ()

# If the revision is not from 'maestro' or 'broonie' origin
origins = []
for _, branch_checkouts in revision.repo_branch_checkouts.items():
for _, checkouts in branch_checkouts.items():
origins.extend([checkout.origin for checkout in checkouts])
if origins not in ('maestro', 'broonie'):
return()

# Send notification 3 hours after a revision is created/updated
return (Message(
subject='KernelCI report for stable-rc: '
Expand Down

0 comments on commit 6926840

Please sign in to comment.