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 at least one revision
is found from selected origins i.e. maestro
or broonie.

Signed-off-by: Jeny Sadadia <[email protected]>
  • Loading branch information
Jeny Sadadia authored and JenySadadia committed Aug 21, 2024
1 parent 705b790 commit bcb450e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 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,10 @@ def match_revision(revision):
if revision.builds_valid is None:
return ()

# If the revision is not from 'maestro' or 'broonie' origin
if not {c.origin for c in revision.checkouts} & {'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 bcb450e

Please sign in to comment.