From a772d404ed12215b9153563c4c36a2eaaeec30a0 Mon Sep 17 00:00:00 2001 From: distix ticketing system Date: Wed, 20 Jun 2018 15:01:03 +0000 Subject: imported mails --- .../Maildir/new/1529506863.M856205P4737Q1.koom | 237 +++++++++++++++++++++ 1 file changed, 237 insertions(+) create mode 100644 tickets/df3c06a33121403aaf655e18065611a9/Maildir/new/1529506863.M856205P4737Q1.koom diff --git a/tickets/df3c06a33121403aaf655e18065611a9/Maildir/new/1529506863.M856205P4737Q1.koom b/tickets/df3c06a33121403aaf655e18065611a9/Maildir/new/1529506863.M856205P4737Q1.koom new file mode 100644 index 0000000..5c8ec8d --- /dev/null +++ b/tickets/df3c06a33121403aaf655e18065611a9/Maildir/new/1529506863.M856205P4737Q1.koom @@ -0,0 +1,237 @@ +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 5581642858 + for ; Wed, 20 Jun 2018 15:00:47 +0000 (UTC) +Received: from platypus.pepperfish.net (unknown [10.112.101.20]) + by yaffle.pepperfish.net (Postfix) with ESMTP id 300A1414F0 + for ; Wed, 20 Jun 2018 16: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 1fVebH-000800-50; Wed, 20 Jun 2018 16: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 1fVebF-0007zj-SN + for ; Wed, 20 Jun 2018 16:00:45 +0100 +Received: from exolobe1.liw.fi (unknown [194.111.46.68]) + by pieni.net (Postfix) with ESMTPSA id 65958427F2 + for ; Wed, 20 Jun 2018 15:00:45 +0000 (UTC) +Received: from exolobe1.liw.fi (localhost [127.0.0.1]) + by exolobe1.liw.fi (Postfix) with ESMTPS id 82EFA620219 + for ; Wed, 20 Jun 2018 18:00:44 +0300 (EEST) +Date: Wed, 20 Jun 2018 18:00:43 +0300 +From: Lars Wirzenius +To: ick-discuss@ick.liw.fi +Message-ID: <20180620150043.GA31229@exolobe1.liw.fi> +References: + <20180620134544.5wzm5rfff2oxqp5n@somnambulist.local> +MIME-Version: 1.0 +In-Reply-To: <20180620134544.5wzm5rfff2oxqp5n@somnambulist.local> +User-Agent: Mutt/1.10.0 (2018-05-17) +X-Pepperfish-Transaction: ed36-d654-2bce-7a22 +X-Pepperfish-Transaction-By: platypus +Subject: Re: Ick and checking out source from git +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="===============6061248057344379119==" +Mime-version: 1.0 +Sender: ick-discuss-bounces@ick.liw.fi +Errors-To: ick-discuss-bounces@ick.liw.fi + + +--===============6061248057344379119== +Content-Type: multipart/signed; micalg=pgp-sha512; + protocol="application/pgp-signature"; boundary="Kj7319i9nmIyA2yE" +Content-Disposition: inline + + +--Kj7319i9nmIyA2yE +Content-Type: text/plain; charset=us-ascii +Content-Disposition: inline +Content-Transfer-Encoding: quoted-printable + +On Wed, Jun 20, 2018 at 02:45:44PM +0100, Daniel Silverstone wrote: +> On Wed, Jun 20, 2018 at 15:30:49 +0300, Lars Wirzenius wrote: +> > I'd like to support this for any number of repositories. I suggest the +> > following: +> >=20 +> > parameters: +> > git: +> > - url: ssh://git@git.example.com/foo.git +> > ref: master +> > dir: foo +> > - url: ssh://git@git.example.com/foo-debian.git +> > ref: master +> > dir: foo/debian +> >=20 +> > The above would do the same things as the two git clones above. +> >=20 +> > What do you all think? Especially you, Daniel? Would that be an accepta= +ble +> > design (at least for now)? +>=20 +> So my main concern with this is that it remains a problem for the case of +> genericisation. I currently have a single pipeline step which uses a par= +ameter +> to configure the git repository to pull from. +>=20 +> What I'd like would be something akin to Ansible's use of jinja2 to do: +>=20 +> parameters: +> git: +> - url: "ssh://git@server/{{ source_name }}.git" +> ref: master +> dir: "{{ source_name }}" +> - url: "ssh://git@server/{{ source_name }}/debian.git" +> ref: master +> dir: "{{ source_name }}/debian" +>=20 +> Failing that kind of capability, your suggestion would at least mean I co= +uld move +> the clones out of the shell steps I suppose :-) + +Hm. Supporting something like jinja2 in the controller is something +that may become necessary later on, but it's a complication that I'd +like to avoid until it is necessary to have it. Even if that means +more verbose .ick file. I guess it'd be possible to only support it +icktool, but I'll have to think about this. + +Is your example really saving much typing? Since parameters are per +project, the following stanza would need to be repeated for each +project: + +> parameters: +> git: +> - url: "ssh://git@server/{{ source_name }}.git" +> ref: master +> dir: "{{ source_name }}" +> - url: "ssh://git@server/{{ source_name }}/debian.git" +> ref: master +> dir: "{{ source_name }}/debian" + +I recognize that the .ick files get rather verbose as they are +currently defined. For the immediate future, I prefer that over a more +complicated controller. Later on, as we (as the ick project) gain more +experience of what the pain points are, we can make the .ick language +more powerful. + +Maybe we can make the .ick language more powerful with better +defaults? Perhaps by having a "default parameters for all projects" +section? Also, sets of pipelines for different styles of projects? + + defaults: + git_defaults: + url_base: ssh://git@git.example.com/ + ref: master + dir: src + default_pipelines: + kinnison_style: + - get_source_from_git + - build_lua_project + - build_deb + + + projects: + + - project: foo + style: kinnison_style + parameters: + git: + - repo: foo.git + - repo: foo-debian.git + dir: src/debian + + - project: bar + style: kinnison_style + parameters: + git: + - url: ssh://git@other.git.example.com/bar.git + - repo: bar-debian.git + dir: src/debian + +This would build two projects, foo and bar. The git action would look +at the git_defaults parameter, and append the repo to url_base, unless +the full url was given. Thus the above would be equivalent of: + + projects: + + - project: foo + parameters: + git: + - url: ssh://git@git.example.com/foo.git + ref: master + dir: src + - url: ssh://git@git.example.com/foo-debian.git + ref: master + dir: src/debian + pipelines: + - get_source_from_git + - build_kinnison_project + - build_deb + + - project: bar + parameters: + git: + - url: ssh://git@other.git.example.com/bar.git + ref: master + dir: src + - url: ssh://git@git.example.com/bar-debian.git + ref: master + dir: src/debian + pipelines: + - get_source_from_git + - build_kinnison_project + - build_deb + =20 +No templating complexity, but rather less repetition. It's not as +generic a solution, of course. What do you think? + +--=20 +I want to build worthwhile things that might last. --joeyh + +--Kj7319i9nmIyA2yE +Content-Type: application/pgp-signature; name="signature.asc" + +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCgAdFiEETNTnrewG6wEE1EJ3bC+mFux6IDEFAlsqbBoACgkQbC+mFux6 +IDGZyw//VjjIncseEXFkqZt/FiuuTVMF77Uq+3btSpKVCD12poRfyzxvf+t4SmYN +gQodZt7ngM/tGuFvx4izN4GbImyXcCPn2S26MxGCjQIfiR1jQJxKV9Vl5s7ut/ra +i7kWHTc9LYhsF6TkqwV0NLU9zejKTPoyhdRwFwhR4c8s4ilrHkAyGVeU5pSbEI9a +j0/DOmp7Qt5+s2WrtvHgm3W4u/ubTCNaZ3qEWdryXH+dxGnl+aAAtpP3jTOgw5hL +yN9UPkDv5+z36dP3l72MFpPzD7gI5VmWMZkmbogIpVIbgxJUprLRiWJjYjeKt7A0 +K9q+nL3TS12PEJdFrWN1vqdMytZQgQlkHKxlnazLk4wrsGo7PdVXAtLJNwVEY3hV +chc9mkL5egkQ5FBS6hMgGMuJNt45/8eXqrcbkA0MwOmpxBEyhIY3RhIqjjD8Kc/Y +k+vQa+lQybw+C/0cT0lkp9wXY09ewNSpml0SZw19IZipO3YWi9ydKfJC4O+Q4O5Z +mpjx08wDN/ChyQjjWkDy+DtnGPWrmsZBDZUM7nwbbheYD7vtsva1WFaDvzp4kodG +3egARC/eUo4+riJqMNX6GZYuE+1v+UNDjWxZxxA7eNJrvaoU1vOSkL/UrQC0nZZO +jLCGgLW1/YeIpdaeEgJ1i3rYkVz16GTnGdT8o4YMP6roL6qh8tY= +=sqnF +-----END PGP SIGNATURE----- + +--Kj7319i9nmIyA2yE-- + + +--===============6061248057344379119== +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 + +--===============6061248057344379119==-- + -- cgit v1.2.1