Return-Path: X-Original-To: distix@pieni.net Delivered-To: distix@pieni.net Received: from yaffle.pepperfish.net (yaffle.pepperfish.net [88.99.213.221]) by pieni.net (Postfix) with ESMTPS id E71974352E for ; Wed, 4 Apr 2018 07:00:47 +0000 (UTC) Received: from platypus.pepperfish.net (unknown [10.112.101.20]) by yaffle.pepperfish.net (Postfix) with ESMTP id 988C141833 for ; Wed, 4 Apr 2018 08:00:47 +0100 (BST) Received: from ip6-localhost.nat ([::1] helo=platypus.pepperfish.net) by platypus.pepperfish.net with esmtp (Exim 4.80 #2 (Debian)) id 1f3cPX-0001bd-H9; Wed, 04 Apr 2018 08:00:47 +0100 Received: from koom.pieni.net ([88.99.190.206] helo=pieni.net) by platypus.pepperfish.net with esmtpsa (Exim 4.80 #2 (Debian)) id 1f3cPW-0001bN-7e for ; Wed, 04 Apr 2018 08:00:46 +0100 Received: from exolobe3 (62-78-212-250.bb.dnainternet.fi [62.78.212.250]) by pieni.net (Postfix) with ESMTPSA id C1C484095A for ; Wed, 4 Apr 2018 07:00:45 +0000 (UTC) Message-ID: <1522825244.6263.6.camel@liw.fi> From: Lars Wirzenius To: ick discussions Date: Wed, 04 Apr 2018 10:00:44 +0300 X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 X-Pepperfish-Transaction: ada7-c8a9-4947-ef82 X-Pepperfish-Transaction-By: platypus Subject: Notification system for ick X-BeenThere: ick-discuss@ick.liw.fi X-Mailman-Version: 2.1.5 Precedence: list List-Id: discussions about the ick CI system List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1673724494547831564==" Mime-version: 1.0 Sender: ick-discuss-bounces@ick.liw.fi Errors-To: ick-discuss-bounces@ick.liw.fi --===============1673724494547831564== Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-jEnjCPG8jMP9OyPMqsUz" --=-jEnjCPG8jMP9OyPMqsUz Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I'd welcome feedback on this (text reproduced below): http://ick.liw.fi/blog/2018/04/04/notifications_in_ick_the_mvp/ Would that be sufficiently useful for your initial needs? Is there something there you'd be willing to do without? - - - Ick will need a way to notify users about build failures. Later on, the same notification mechanism can be used for other things, but let's start with the minimal thing that is useful. Here's a sketch. * Notifications will be configured in the project resource in the =20 controller. * The controller will trigger a **notification service** to actually send the notification. Don't want to burden the controller with all the details of how notifications are sent, but the controller needs to trigger a notification. (It will do this by telling a worker to do it, so that we don't need to have the controller do blocking HTTP calls to other services.) * Notifications will be triggered only on failures. Later on, this needs to be configurable and include options like a "build now succeeds, when it previously failed", and possibly also "always notify". * Later on, ick needs to be able to flexibly notify via a number of channels: email, IRC, Matrix, SMS, RSS/Atom, etc. Probably also proprietary systems like Slack will need to be supported. However, we'll start with just email. * The notification emails will always be sent with the same sender information, and this will be configured by the sysadmin. Also, it will always be sent with the same mail server, also configured by the sysadmin. Probably using `/usr/sbin/sendmail` rather than SMTP. Aiming for minimal necessary configuration to start with. * The template for the emails will be hard-coded in the source code (for now). The mails will containt the following information: * name of project that was built * build number * build id * log id (for use with icktool) * last 1000 lines of build log * exit code of build Lat er on, this will need to extended, but the above should suffice for now . --=-jEnjCPG8jMP9OyPMqsUz Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETNTnrewG6wEE1EJ3bC+mFux6IDEFAlrEeBwACgkQbC+mFux6 IDF3uA//ZXimlTfEgjlN8LvD39SJtbMT8v5MQH9IJ6Pa3Q0kaauC0tiL4OEktc4y 3gUdtssfWtJEqN7FYs0cmYmVCS2LG+65EneKFYIS7RBm6I1FsFD3/W8A4PpomcKk p3J6kVwkwZKTL/DMyK4QsfWDx0r21ozWRrac+b58sB1G7si1vsDP9csLDphtmUyp G1pte/jQzccHhH8ZR4Ci5c7/C0JgLq5P4KxC9YhN2ON1+N4pjKYxZxd1QBWnIM/K DsW/u6HI8emS4SYxQbe+5dPqfMSe8BJo0cEA2M1gbh6Y2WS+Pofen/6qokDqN4rz 9Gc6P69imlsx7+S79TzTkWltOgP23ytewAbY2cwIeKAbsr6DnuGQDXmCoTKFj8pf 25m3PLBL3GZRD3pwSPbKiX6C/FsMmVYcdlOik46ddnYcibWafSdCDwPvqTjBTYjq xmWFmyK1MsOoJz6/5VB5O/Cf8dBfMV6RW166aWgzQESBw271C+D0EfPiSZ+4Ffwy dP/ky0F3fHYbg3/EBFRQlbgxj/KM5kWM/cui8cTc8ZwGjBQK6U6Riv57QaNVIjmf pOGOfW3STRb4oi37xu5yjt8jYWzOeD0eIqEdgTc0evNORae/6fDLwSgQG2UgRMM1 +m4toGV35bjFePM4UZIJYY8zGptjY/I+Anhq95UX80NI6IF4RJg= =qspQ -----END PGP SIGNATURE----- --=-jEnjCPG8jMP9OyPMqsUz-- --===============1673724494547831564== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ick-discuss mailing list ick-discuss@ick.liw.fi https://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/ick-discuss-ick.liw.fi --===============1673724494547831564==--