Package: jenkins.debian.org
Severity: wishlist
Tags: patch

Hi,

Attached is the following:

  commit e285a29cbbd2e8a1fed0149f1625b417ba888572
  Author: Chris Lamb <[email protected]>
  Date:   Sun Nov 5 09:33:24 2017 +0000
  
      Move some IRC announcements to #debian-reproducible-changes.
      
      This changes the behaviour such that we always announce on our "noisy"
      #debian-reproducible-changes but keeps the main #debian-reproducible
      channel free for a) when we really want to notify the channel such as when
      we want to preserve artifacts or explicitly ask to be notified and b)
      regular chat.
      
      Otherwise, regular/vanilla reschedling can have the effect of masking 
other
      conversations.
      
      Signed-off-by: Chris Lamb <[email protected]>
  
   bin/reproducible_remote_scheduler.py | 6 +++++-
   1 file changed, 5 insertions(+), 1 deletion(-)


Also available here:

  https://github.com/lamby/jenkins.debian.net/tree/move-some-irc-announcements


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
>From e285a29cbbd2e8a1fed0149f1625b417ba888572 Mon Sep 17 00:00:00 2001
From: Chris Lamb <[email protected]>
Date: Sun, 5 Nov 2017 09:33:24 +0000
Subject: [PATCH] Move some IRC announcements to #debian-reproducible-changes.

This changes the behaviour such that we always announce on our "noisy"
#debian-reproducible-changes but keeps the main #debian-reproducible
channel free for a) when we really want to notify the channel such as when
we want to preserve artifacts or explicitly ask to be notified and b)
regular chat.

Otherwise, regular/vanilla reschedling can have the effect of masking other
conversations.

Signed-off-by: Chris Lamb <[email protected]>
---
 bin/reproducible_remote_scheduler.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/bin/reproducible_remote_scheduler.py b/bin/reproducible_remote_scheduler.py
index efc04b05..b871d1a9 100755
--- a/bin/reproducible_remote_scheduler.py
+++ b/bin/reproducible_remote_scheduler.py
@@ -357,7 +357,11 @@ def rest(scheduling_args, requester, local, suite, arch):
     log.info(bcolors.GOOD + info_msg + bcolors.ENDC)
     if not (local and requester == "jenkins maintenance job") and len(ids) != 0:
         if not dry_run:
-            irc_msg(info_msg)
+            # Always announce on -changes
+            irc_msg(info_msg, 'debian-reproducible-changes')
+            # Announce some messages on main channel
+            if notify_on_start or artifacts:
+                irc_msg(info_msg)
 
     from reproducible_html_live_status import generate_schedule
     generate_schedule(arch)  # update the HTML page
-- 
2.15.0

Reply via email to