From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: No Wayman Newsgroups: gmane.emacs.devel Subject: Re: Changes to make in elpa-packages file for nongnu elpa Date: Wed, 09 Aug 2023 17:55:09 -0400 Message-ID: <87sf8rsovl.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23841"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.11.12; emacs 30.0.50 Cc: Philip Kaludercic , emacs-devel@gnu.org To: Thierry Volpiatto Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 10 02:49:56 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qTtsB-0005zJ-Rq for ged-emacs-devel@m.gmane-mx.org; Thu, 10 Aug 2023 02:49:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qTtrS-0003Xe-1m; Wed, 09 Aug 2023 20:49:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qTtrQ-0003XC-6I for emacs-devel@gnu.org; Wed, 09 Aug 2023 20:49:08 -0400 Original-Received: from mail-qv1-xf35.google.com ([2607:f8b0:4864:20::f35]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qTtrO-0000Mc-7N for emacs-devel@gnu.org; Wed, 09 Aug 2023 20:49:07 -0400 Original-Received: by mail-qv1-xf35.google.com with SMTP id 6a1803df08f44-63cf28db24cso2315556d6.2 for ; Wed, 09 Aug 2023 17:49:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691628545; x=1692233345; h=mime-version:message-id:date:subject:cc:to:from:user-agent:from:to :cc:subject:date:message-id:reply-to; bh=5BTJYKxYqtGBusrB1MrtDdoHmw4Bw3fs1799ST2OKXo=; b=OKG7ZjkWyIJ0vbKJtZ7OIiipxpcAZfjdO7oISaOrIkhnQl1HH+t0RvhtN/cIknY7rp alkA1OfOdIq3Zw9m17eHH+5vydfOs7MsPZK6BS7oQcLtq7rpm/berV9IA6LTd9ni88+m uxNN1Bl0K1r8fhRhHfgqPc5CJUYM6ic2MdKa7+mdlt0tqtaoPQSMqnrVG42BMHL2T28C 4Q3XpA4zDVJyqJKfyiwXubsafnLIKYV8LOkPrQG/C9J21nBAUc+ZW0T/OvDfn2fRaIw2 s8Zf1dyLgLjxkP++vai4bs2RVAoy1sUNFH7OglG+0JdbRBe83eoa+9vsa6nrZSXURtfm h4Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691628545; x=1692233345; h=mime-version:message-id:date:subject:cc:to:from:user-agent :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5BTJYKxYqtGBusrB1MrtDdoHmw4Bw3fs1799ST2OKXo=; b=GACKBmZUif+g0w4fTGxOWy3CG3GVbTwgCGsFBgRv0mVD6NsLUHpLIAOD5FVcJaZfz2 N852K4/DscvoAWLNVeszF2szsYTo+NoCZ2TRA0HCNPBWaDhACjdbMK4O3YY7b/AV3myw a3GUA0KzacZcPUuD/XqMf/Dq8ZU980eztml3paGdufzJxq2n7v7I5S6iUo2EIX4coITe 2wjVJ3mPjrJ2Jw9c4K3Wjl83ph86+5K9mYgHNSh4Alya0meQHbUB8lDKjuvgxaV6lLKI H6+rqttatkAm/JQtqmpxvuhd4qiLxxwOOjgUVRW/qBo55vYaGElJcwBbjC8VgxxkAT+m 1e9A== X-Gm-Message-State: AOJu0YzI1lyk4+K4IK1SrXMnqearmFV/CoY8oE/TI5cArXzNSvqfTEA5 Xh9Eh+K6ILMlmKhxjjmLy+kWqo/vg/5R4Q== X-Google-Smtp-Source: AGHT+IGp6+VtFrBtqrjR6XO7orgffOT3/PRUzX2AKrI3sRxKq2jN2a74AHCZSStjNWmsQ+tJ/EnM4w== X-Received: by 2002:a0c:e481:0:b0:63c:dde2:5a20 with SMTP id n1-20020a0ce481000000b0063cdde25a20mr878804qvl.0.1691628544854; Wed, 09 Aug 2023 17:49:04 -0700 (PDT) Original-Received: from laptop ([2601:84:847f:c697:e217:2894:4724:14f4]) by smtp.gmail.com with ESMTPSA id c16-20020a0cf2d0000000b0063d0159e1f6sm75883qvm.109.2023.08.09.17.49.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 17:49:04 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::f35; envelope-from=iarchivedmywholelife@gmail.com; helo=mail-qv1-xf35.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:308496 Archived-At: Thierry Volpiatto writes: >>> It is used specially for reproducing bugs in a clean >>> environment, see it > >> (It might be interesting to provide something like this for >> package.el, to test packages in a generic way.) > > Yes, this would be interesting, it would be something like this: > > Emacs -Q > M-x packages nuisances> I've written various macros that do as much. See: - straight.el's straight-bug-report macro https://github.com/radian-software/straight.el/blob/ff63b154bef1ef8d92c141bd189001bff74f6982/straight.el#L7049 - Elpaca's elpaca-test macro https://github.com/progfolio/elpaca/blob/master/elpaca-test.el - yodel https://github.com/progfolio/yodel All three are variations on the idea that it's useful to have a declarative form that can be shared to install packages in a clean environment, perform some testing, and report the results. Test environments can be run interactively or in batch mode. e.g. (elpaca-test :init (elpaca helm (require 'helm) (do-something-with-helm)) (elpaca-wait)) Yodel was my attempt at providing something that could be package-manager agnostic and can be made to easily reformat the output of the report. Evaluating the following test: (yodel :packages* helm :formatter yodel-format-as-mailing-list-message :post* (require 'helm) (message "good bye")) Produces the following report: Yodel[1] Report 2023-08-09 20:25:25 =================================== --8<---------------cut here---------------start------------->8--- (yodel :packages* helm :formatter yodel-format-as-mailing-list-message :post* (require 'helm) (message "good bye")) --8<---------------cut here---------------end--------------->8--- STDOUT ====== > INFO Scraping files for loaddefs... > INFO Scraping files for loaddefs...done > GEN ../elpaca-autoloads.el > Cloning into '/tmp/yodel-KSS7te/elpaca/repos/elpaca'... > Your branch is up to date with 'origin/master'. > Checking /tmp/yodel-KSS7te/elpaca/repos/elpaca... > Compiling > /tmp/yodel-KSS7te/elpaca/repos/elpaca/elpaca-info.el... > Compiling /tmp/yodel-KSS7te/elpaca/repos/elpaca/elpaca-log.el... > Compiling > /tmp/yodel-KSS7te/elpaca/repos/elpaca/elpaca-manager.el... > Compiling > /tmp/yodel-KSS7te/elpaca/repos/elpaca/elpaca-menu-elpa.el... > Compiling > /tmp/yodel-KSS7te/elpaca/repos/elpaca/elpaca-menu-melpa.el... > Compiling > /tmp/yodel-KSS7te/elpaca/repos/elpaca/elpaca-menu-org.el... > Compiling > /tmp/yodel-KSS7te/elpaca/repos/elpaca/elpaca-process.el... > Compiling > /tmp/yodel-KSS7te/elpaca/repos/elpaca/elpaca-test.el... > Compiling /tmp/yodel-KSS7te/elpaca/repos/elpaca/elpaca-ui.el... > Compiling /tmp/yodel-KSS7te/elpaca/repos/elpaca/elpaca.el... > Checking /tmp/yodel-KSS7te/elpaca/repos/elpaca/doc... > Compiling > /tmp/yodel-KSS7te/elpaca/repos/elpaca/doc/early-init.el... > Compiling /tmp/yodel-KSS7te/elpaca/repos/elpaca/doc/init.el... > Checking /tmp/yodel-KSS7te/elpaca/repos/elpaca/extensions... > Compiling > /tmp/yodel-KSS7te/elpaca/repos/elpaca/extensions/elpaca-use-package.el... > Checking /tmp/yodel-KSS7te/elpaca/repos/elpaca/images... > Checking /tmp/yodel-KSS7te/elpaca/repos/elpaca/test... > Compiling > /tmp/yodel-KSS7te/elpaca/repos/elpaca/test/elpaca-test.el... > Done (Total of 11 files compiled, 3 skipped in 4 directories) > Downloading MELPA recipes... > Downloading MELPA recipes...100% > Downloading NonGNU-devel ELPA... > Downloading GNU-devel ELPA... > Downloading NonGNU ELPA... > Downloading GNU ELPA... > good bye Environment =========== - emacs version: GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-08-09 - system type: gnu/linux Packages ======== - async https://github.com/jwiegley/emacs-async/commit/bb0509060ddc9c94bc7db7bddb12995acb3b53e4 - elpaca https://github.com/progfolio/elpaca/commit/48da538b084870ef2126ca607af521eeee890fa7 - helm https://github.com/emacs-helm/helm/commit/a968b9bdd243f9d8d9d572656268421cb1ea8b39 - helm-core https://github.com/emacs-helm/helm/commit/a968b9bdd243f9d8d9d572656268421cb1ea8b39 - popup https://github.com/auto-complete/popup-el/commit/707bb336c6eb25743f1516b6a2165b40659a9d02 - wfnames https://github.com/thierryvolpiatto/wfnames/commit/e4d60978921b8a52693aebae988717261c89ed38 [1] https://www.github.com/progfolio/yodel I pitched the idea a couple years ago on a bug report. The following message gives more of the rationale for the package: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=50842#35 Eli and Lars didn't seem too impressed at the time, but it clearly inspired "erts-mode", which Lars implemented shortly after. That's a step in the right direction, but not enough. Having a declarative testing macro has saved me many hours in debugging and confirming elisp bugs across packages I maintain.