From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MFCCk-00039j-NI for garchives@archives.gentoo.org; Fri, 12 Jun 2009 19:14:23 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9A116E06D6; Fri, 12 Jun 2009 19:14:21 +0000 (UTC) Received: from mail-fx0-f209.google.com (mail-fx0-f209.google.com [209.85.220.209]) by pigeon.gentoo.org (Postfix) with ESMTP id 118DDE06D6; Fri, 12 Jun 2009 19:14:20 +0000 (UTC) Received: by fxm5 with SMTP id 5so355126fxm.34 for ; Fri, 12 Jun 2009 12:14:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:jabber-id:icq-uin:x-pgp-key:user-agent; bh=5L8kRVfi2hXl5n17SeIEn3exPKTlZBd6Wmhf5eiSnIQ=; b=UJqikkDYbguM5YQ8H+bhuz9lin33cP6cYXUPmN0i+Q85zwn3IvWmTuprutjVVDxKTD w+VywY4Wi2b6PirddGrZzkb2+HFQ7lPz/goQIk9EH7UdqVgXIoiodQ6scXDOKQeaFy2M u/D7r2t5gEy5L+n7NsTnN9L0+JOqRKutu4Z0U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:jabber-id:icq-uin :x-pgp-key:user-agent; b=iWCVXPi8HvPiBFynV24GsMGe4KvbNMWiPOY5nuVlKlYyiNnisuuC464s6D2JdUmKyV l1L+OAHjZ7mkyfU1tOAe7h+TZVwdiMYPZbaWLS1iU8k4/BTmmX4Wgk6s/Oq85J3yJhU1 Y5XMyLiaixLMIl8Kwfd4zALspxul5gSUvKE18= Received: by 10.103.175.9 with SMTP id c9mr2061630mup.3.1244834059505; Fri, 12 Jun 2009 12:14:19 -0700 (PDT) Received: from @ (adsl-dyn14.91-127-70.t-com.sk [91.127.70.14]) by mx.google.com with ESMTPS id s10sm195081mue.8.2009.06.12.12.14.17 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 12 Jun 2009 12:14:18 -0700 (PDT) Date: Fri, 12 Jun 2009 21:13:21 +0200 From: Stanislav Ochotnicky To: gentoo-soc@lists.gentoo.org Cc: gentoo-qa@lists.gentoo.org Subject: [gentoo-qa] Re: [gentoo-soc] [GSoC-status] Tree-wide collision checking and files database Message-ID: <20090612191321.GE8898@w0rm> References: <20090612133235.GA8898@w0rm> <90b936c0906120805m18cc4f55j3b33d0d17d855970@mail.gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-qa@lists.gentoo.org Reply-to: gentoo-qa@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Lb0e7rgc7IsuDeGj" Content-Disposition: inline In-Reply-To: <90b936c0906120805m18cc4f55j3b33d0d17d855970@mail.gmail.com> jabber-id: sochotnicky@gmail.com icq-uin: 74274152 X-PGP-Key: https://dl.getdropbox.com/u/165616/sochotnicky-key.asc User-Agent: Mutt/1.5.16 (2007-06-09) X-Archives-Salt: 1fcc984d-1cf6-4c00-8f16-31aae45e6f1a X-Archives-Hash: 6659e8b145a42ad3e62269fc533c5845 --Lb0e7rgc7IsuDeGj Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 10:05 Fri 12 Jun , Jeremy Olexa wrote: > On Fri, Jun 12, 2009 at 8:32 AM, Stanislav > Ochotnicky wrote: > > Hi everyone, > > > > some of you already know that work on GSoC project "Tree-wide collision > > checking and provided files database" has been started a few weeks ago. > > For the rest, I will make a short introduction and goals of this > > project (collagen). > > > > Collagen aims to improve quality of ebuilds in portage tree. It does > > this by compiling as many ebuilds as possible. It specifically takes > > into account various atoms in DEPEND variable. For example if package > > ebuild states that it needs =3Ddev-libs/glib-2*, that package should be > > compilable with every version of glib-2* in portage (taking into account > > keywords). Therefore collagen will install one version of glib-2*, then > > ebuild in question, collect information, uninstall ebuild and first > > glib version. If repeats this process for every glib-2* in the tree. >=20 > Testing against every version of the deps as required seems like it is > diverging from the original "Tree-wide collision checking and provided > files database" - Would you say that the goal of this project is > becoming more QA orientated? Something like: "Matchbox: A tinderboxen > master server to provide QA for ebuilds" Yes that's true, this project is moving towards QA (it was proposed by QA developer after all). SoC list was only CCed, To: was to gentoo-qa. I should have warn in my original email so that responses wouldn't get lost between two lists. Added QA to cc. I believe crossposting is OK in this case. I apologize if that's not the case. This is from one of my discussions with weaver (my mentor): say package X depends on libfoo, and there is libfoo-1.2.3 and libfoo-1.3.4 in portage, as well as libfoo-1.0.1 in the attic (http://sources.gentoo.org/viewcvs.py/gentoo-x86/ - view dead files) but the dev was a bit sloppy and didn't check with libfoo-1.2.3 and that version has a file collision with X, while libfoo-1.3.4 doesn't and X fails to compile with libfoo-1.0.1, even though some people might still have that on their systems so you have some build failures/collisions here that are QA problems which should be caught and can only be caught by iterating through all versions of the dependencies. > If you were strictly collision checking, then you don't care about > every version of glib-2* you only care about the package in question > and what installed files it provides. However for the provided files, > you do care about every version of glib-2*, not for the other package, > but to list the installed files of glib-2* Yes that's true. Strictly speaking collisions could be caught easily by compiling every package (usually with as many USE flags enabled as possible). However It would be nice to catch ebuilds that don't specify cor= rect versions in DEPEND. Now that I think about it, it may be a good idea to allow matchbox to specify if tinderbox should try to compile against every version of dependencies or just one. By default we would only check against latest version, but specific packages could be set in a way to check every version of dependencies. > After writing that down, I can see why you want to compile, check, > uninstall, re-compile, repeat...but I worry about how efficient it is > and what ways to improve that. That's my concern too. That's why I wanted to use central binary host. Every compiled package could then be reused across all tinderboxes (with same architecture of course). I was counting on them being on high-speed network connection (ideally LAN).=20 There is one more good thing about always starting with nothing but bare system in the beginning. If something is missing in DEPEND we will cat= ch it easily. > > > > Original idea was to have two sides: > > =A0* master server (matchbox) > > =A0* slaves compiling packages (tinderboxes) > > > > Master server decides what needs to be compiled (automatically or > > semi-automatically). Tinderbox asks for job, master provides package > > name (and optionally version). Tinderbox then goes and tries to compile > > package with different sets of dependencies reporting results to > > Matchbox. > > > > It seems that whole process could be sped up by hosting binary > > packages on one central server (Binary host). Obviously various versions > > of the same package would be created and therefore unique names could be > > created by using some metadata to create hash part of filename. On a > > first thought I would use USE flags and DEPEND as metadata to hash. >=20 > This is a cool aspect of the project, I hope you can work with solar > and zmedico to improve binpkgs. USE flags seem to be the trouble spot > of binpkgs. That's my other concern. I know that there was GSoC project to improve binary support in portage. Merging two project into one would not achieve much IMO. However I know for certain that to a certain degree I could make further work easier and I will do my best to do so. So make things as simple as possible, but not simpler :-) > > > > So far two other projects came to light as possible source of > > inspiration and/or collaboration: > > =A0* catalyst (mainly tinderbox generating part) > > =A0* AutotuA (automatic generic job framework) > > > > Especially AutotuA seems like good candidate for merging. > > > > It doesn't seem possible to compile every project with every version of > > every dependency, therefore I'd like to ask for your opinion especially > > about this part. One idea I had was to restrict testing to highest build > > number for given version. For example we have: > > glib-2.18.4-r1 and glib-2.18.4-r2, therefore we will only test against > > glib-2.18.4-r2 and will assume that r1 would be OK too (or users would > > upgrade since it's a bugfix release) >=20 > IMO, you have two choices. Latest stable or latest ~arch. Stable users > will not upgrade from glib-2.18.4-r1 to -r2 until -r2 is stable so > that argument is out. I should have checked ebuilds before posting I guess :-) That was meant as an example. For the sake of argument consider they are both arch (not ~arch).=20 > > > > Another approach to optimizing use of resources would be to have a > > priority list of packages that need most testing. I imagine this could > > be created by analyzing logs from gentoo mirrors, and figuring out which > > packages are downloaded most frequently. >=20 > Mirror log analysis is a fundamentally hard thing to do given the vast > network of mirrors that we have. Of course. It's not meant to be precise, just approximation to what packages are favourites. Even then I realize there will always be regional tendencies. Oh well...masses :-) > > > > We would probably need at least one tinderbox per glibc version if I am > > not mistaken since this cannot be freely up/downgraded. >=20 > Its free to upgrade ;) Can't downgrade. Given how large the glibc > tracker bugs get, I don't think this project should use the latest > glibc available. Unless you are trying to hunt down bugs, but I think > you will get buried with compile failures. If the goal of this project > is to data mine the installed package's information, that is not > dependant on a glibc version. Please think about this some more before > going down that road, I want this project to be successful ;) Right. That was a suggestion for QA to think about. I would like to think about this as my opportunity to give something back to Gentoo after all these years as a user (taking, not giving much back). So it all boils down to what would Gentoo (QA team) need to improve Gentoo further. If it is enough to test latest stable glibc then that's how it's gonna be done. Maybe again make it possible to change behaviour in the future.=20 --=20 Stanislav Ochotnicky Working for Gentoo Linux http://www.gentoo.org Implementing Tree-wide collision checking and provided files database http://soc.gentooexperimental.org/projects/show/collision-database Blog: http://inputvalidation.blogspot.com/search/label/gsoc jabber: sochotnicky@gmail.com icq: 74274152 PGP: https://dl.getdropbox.com/u/165616/sochotnicky-key.asc --Lb0e7rgc7IsuDeGj Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) iEYEARECAAYFAkoyqNEACgkQB9Uc/HGhZ3xanwCgj4Pt2jn43Jo0qjdLtYkdzUny cCUAnjRsrkkom7YK0194Omt7KA189Pz2 =JdjE -----END PGP SIGNATURE----- --Lb0e7rgc7IsuDeGj--