From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: library dependencies and unit/integration testing Date: Tue, 02 Mar 2010 09:47:43 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87bpf6n2sg.fsf@lifelogs.com> References: <87pr3oosk6.fsf@lifelogs.com> <87zl2qoo1u.fsf@lifelogs.com> <201bac3a1003020725g5fb4371ehd9cb884e1dea2015@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1267544917 5109 80.91.229.12 (2 Mar 2010 15:48:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 2 Mar 2010 15:48:37 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 02 16:48:33 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NmUKi-00056K-Py for ged-emacs-devel@m.gmane.org; Tue, 02 Mar 2010 16:48:29 +0100 Original-Received: from localhost ([127.0.0.1]:59871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NmUKi-0008On-8a for ged-emacs-devel@m.gmane.org; Tue, 02 Mar 2010 10:48:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NmUKM-0008G2-DT for emacs-devel@gnu.org; Tue, 02 Mar 2010 10:48:06 -0500 Original-Received: from [140.186.70.92] (port=49828 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NmUKK-0008FJ-1E for emacs-devel@gnu.org; Tue, 02 Mar 2010 10:48:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NmUKJ-0007Yc-Cc for emacs-devel@gnu.org; Tue, 02 Mar 2010 10:48:03 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:56209) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NmUKJ-0007YQ-1m for emacs-devel@gnu.org; Tue, 02 Mar 2010 10:48:03 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NmUKG-0004nc-Sa for emacs-devel@gnu.org; Tue, 02 Mar 2010 16:48:00 +0100 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Mar 2010 16:48:00 +0100 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Mar 2010 16:48:00 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 39 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.91 (gnu/linux) Cancel-Lock: sha1:JPlGjSJm5r53Gc8PFsGaEOkGkQo= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:121546 Archived-At: On Tue, 2 Mar 2010 16:25:49 +0100 Jonas Bernoulli wrote: JB> 2010/3/2 Ted Zlatanov : Tom> ;;; Package-Requires: ((ruby-mode "1.0") (inf-ruby "2.0")) >> >> Jonas thinks this is best left outside the package. I disagree >> slightly: I think a compromise is best, where the package author can >> specify the dependencies but the repository maintainer can override >> them. Since Emacs doesn't provide any of these facilities by >> convention, perhaps it's time to set them up now. JB> This was a misunderstanding. I am all for package maintainers JB> specifying which versions of the dependencies are required. Oh, sorry for the misunderstanding. So the difficulty is in inconsistent versioning. I've learned from experience to be careful about fixing human problems with technical solutions :) JB> Should authors specify what versions of dependencies are required? JB> I would say: definitely yet (but they should not be forced to do it). Yes, definitely. CPAN is a great example of this on a large scale. Automated tests there ensure that the dependencies and code are correct. >> I was thinking of using the emacs interpreter in batch mode to run only >> a few tests in series, isolated from the testing agent in a whole new >> process. For the majority of libraries that's enough. JB> Still you would have to do it using a user with very restricted JB> privileges. Some may choose that, while others may use chroot or a dedicated physical or virtual machine. If it works for CPAN it should be workable for Emacs. This relates to an old thread about setting up BuildBot stations for Emacs build testing, which has been on my TODO list for ages. Ted