summaryrefslogtreecommitdiff
path: root/tickets/00fd2377f5e34751823263c8d9a6d746/Maildir/new/1522825265.M983470P17554Q1.koom
blob: 69549b4fd87fc7d66a1b91818603a3ebfee17985 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
Return-Path: <ick-discuss-bounces@ick.liw.fi>
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 <distix@pieni.net>; 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 <distix@pieni.net>; 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 <ick-discuss@ick.liw.fi>; 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 <ick-discuss@ick.liw.fi>; Wed,  4 Apr 2018 07:00:45 +0000 (UTC)
Message-ID: <1522825244.6263.6.camel@liw.fi>
From: Lars Wirzenius <liw@liw.fi>
To: ick discussions <ick-discuss@ick.liw.fi>
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 <ick-discuss-ick.liw.fi>
List-Unsubscribe: <https://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/ick-discuss-ick.liw.fi>,
 <mailto:ick-discuss-request@ick.liw.fi?subject=unsubscribe>
List-Archive: <http://listmaster.pepperfish.net/pipermail/ick-discuss-ick.liw.fi>
List-Post: <mailto:ick-discuss@ick.liw.fi>
List-Help: <mailto:ick-discuss-request@ick.liw.fi?subject=help>
List-Subscribe: <https://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/ick-discuss-ick.liw.fi>,
 <mailto:ick-discuss-request@ick.liw.fi?subject=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==--