Your message dated Fri, 12 Jul 2024 06:19:37 +0000
with message-id <e1ss9d3-0069i9...@fasolo.debian.org>
and subject line Bug#1069326: fixed in dh-elpa 2.1.2
has caused the Debian Bug report #1069326,
regarding dh-elpa: Don't rename files under test directories during autopkgtest 
by default
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1069326: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1069326
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: dh-elpa
Version: 2.0.17
Severity: normal
X-Debbugs-Cc: none, Xiyue Deng <manp...@gmail.com>

During autopkgtest, dh_elpa_test will rename the non-test source files
so as to ensure we are running the test using the Emacs add-on modules
from the installed package instead of from the source directories.  The
way that dh_elpa_test currently works is to only keep files that have a
test case defined in it.  However, this doesn't take utilities and
artifacts, which are usually defined under test directories, under
consideration, and without those the tests are broken as well.

Therefore I'd like to propose retaining all files under test directories
from being renamed in autopkgtest.  I have been testing a fix in [1]
which seems to work in common cases.  I have also attached the patches
at the end of the email as well.  Please review and comment.  TIA!

[1] 
https://salsa.debian.org/manphiz/dh-elpa/-/compare/master...retain-test-files-in-autopkgtest?from_project_id=18920

-- System Information:
Debian Release: 12.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-20-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dh-elpa depends on:
ii  debhelper               13.11.4
ii  emacs                   1:29.3+1-2~bpo12+0manphiz1
ii  emacs-gtk [emacs]       1:29.3+1-2~bpo12+0manphiz1
ii  libarray-utils-perl     0.5-3
ii  libconfig-tiny-perl     2.28-2
ii  libdebian-source-perl   0.122
ii  libdpkg-perl            1.21.22
ii  libfile-find-rule-perl  0.34-3
ii  libtext-glob-perl       0.11-3
ii  perl                    5.36.0-7+deb12u1

dh-elpa recommends no packages.

dh-elpa suggests no packages.

-- no debconf information
>From 48514b41927f8601c6e1af7ebcf49c4af9a16b54 Mon Sep 17 00:00:00 2001
From: Xiyue Deng <manp...@gmail.com>
Date: Fri, 19 Apr 2024 14:14:31 -0700
Subject: [PATCH 1/2] Exclude test directories from renaming in autopkgtest by
 default

* Files under test directories may also include utilities that are
used in tests but don't have any test in them.  It makes sense to keep
them by default during autopkgtest to make it work out-of-the-box.
---
 dh_elpa_test | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dh_elpa_test b/dh_elpa_test
index 14e31dd..b9f1152 100755
--- a/dh_elpa_test
+++ b/dh_elpa_test
@@ -271,7 +271,9 @@ if ($autopkgtest) {
     my $rule = File::Find::Rule->new;
     $rule
       ->or(File::Find::Rule
-           ->name('.pc', 'debian', '.git')
+           ->name('.pc', 'debian', '.git', # exclude non-source directories
+                  'test', 'tests', # exclude test directories
+           )
            ->directory->prune->discard,
            File::Find::Rule->new);
     $rule
-- 
2.39.2

>From eb4f407d6c1541fda298dcfe8bcaee1fdebd5677 Mon Sep 17 00:00:00 2001
From: Xiyue Deng <manp...@gmail.com>
Date: Fri, 19 Apr 2024 14:24:40 -0700
Subject: [PATCH 2/2] Add more comments to describe the purpose of renaming
 source files

---
 dh_elpa_test | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dh_elpa_test b/dh_elpa_test
index b9f1152..c0e99e0 100755
--- a/dh_elpa_test
+++ b/dh_elpa_test
@@ -268,6 +268,10 @@ if ($autopkgtest) {
         exit 0;
     }
 
+    # Compile a list of files to be renamed during autopkgtest.  This usually
+    # renames source *.el file outside the test directories so that during
+    # autopkgtest we are testing the installed package instead of relying on
+    # source files from the source directory.
     my $rule = File::Find::Rule->new;
     $rule
       ->or(File::Find::Rule
-- 
2.39.2


--- End Message ---
--- Begin Message ---
Source: dh-elpa
Source-Version: 2.1.2
Done: Sean Whitton <spwhit...@spwhitton.name>

We believe that the bug you reported is fixed in the latest version of
dh-elpa, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1069...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sean Whitton <spwhit...@spwhitton.name> (supplier of updated dh-elpa package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 12 Jul 2024 14:03:04 +0800
Source: dh-elpa
Architecture: source
Version: 2.1.2
Distribution: experimental
Urgency: medium
Maintainer: Debian Emacsen team <debian-emacsen@lists.debian.org>
Changed-By: Sean Whitton <spwhit...@spwhitton.name>
Closes: 973393 1069210 1069326
Changes:
 dh-elpa (2.1.2) experimental; urgency=medium
 .
   [ Xiyue Deng ]
   * Set ert-batch-backtrace-right-margin to nil to allow full backtrace
     when ERT tests fail (Closes: #973393).
   * Add support for passing ERT selectors using ert_selectors.
   * Handle git version with date in dhelpa-sanitise-version.
   * dh_elpa_test: Don't rename files under test/, tests/
     (Closes: #1069326).
   * Use `pretty' stack frame style in buttercup for full back trace.
   * Add support for installing nested directories (Closes: #1069210)
     - Don't recursively add to elpa path, to match package.el
     - Byte-compile recursively during install
     - Recursively create the symlinks from elpa-src->elpa.
 .
   [ Aymeric Agon-Rambosson ]
   * Get Package-Requires with lm-header-multiline (some upstream
     maintainers specify one dependency per line).
   * Add transient to the list of packages packaged separately as well as
     provided with Emacs.
Checksums-Sha1:
 ed17599ddc9b7967203d9037b7feabf3b777da27 1914 dh-elpa_2.1.2.dsc
 1a2256110107ef06534efb41c5b16c9c051805e5 27488 dh-elpa_2.1.2.tar.xz
Checksums-Sha256:
 692a68a27e5db06d14937c0f846edafaae5a06b76d381accf80fa9aaf3659929 1914 
dh-elpa_2.1.2.dsc
 660790a81fb0fa1a876a982656664f67b7b522b1c932da3fbda18861471c842d 27488 
dh-elpa_2.1.2.tar.xz
Files:
 9fcdd20b6700141e80bdc2d7501fa54d 1914 devel optional dh-elpa_2.1.2.dsc
 d12792cc6b464f7cee4ffb3a92f39b5d 27488 devel optional dh-elpa_2.1.2.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEm5FwB64DDjbk/CSLaVt65L8GYkAFAmaQx/8ACgkQaVt65L8G
YkDPTg/9HuTIYTetAZRhzP/KqpC30FulmLAFk9gr9jhEbuLrYPPq1uh2xX2Anbfo
zWPNN31ghvvwHL3hHCsLbMW2PcM5wJMeLHNLVLrtpkIHvRMxzWo2rp8XLWjwMT6/
xC2Xyx13wmMw75latSY/rsMqyWpnlrQLatehtS+4fk96cjGwuCKq2UfafdY4+Vtl
vZ27QcbK/bU1fd3vVYyFn4/PbwJ5T0exjQRdZPeyjJ4dWJmPbOGP0FAuV1b2RnyB
bKHwJSXyXLICAshRfk7OoiLdDatXwsWLTWX7fWIwCOHXhqK9D45pBGGMaveC+JZe
y9DI3ygpqrHe57/ITbx1Oxg5Y320cVC24DLmLSziy378zUMzU45cCIRJoMPgegK6
KZrLvLheHGoqsufYLwbyL5DHyYT2oSuoYRCD0wtCh9gV1KfvOhO/Mzupx377mKZq
AYizu9rcmQ2OS3kgv2G0ZGcgKJDgRgk3gVzFIJ3e72IbG1WXrz6/WaKQzj+ddpsN
GXoy/q5mIReUdWwLCSMHD8JLIHqQ6bxhguyAXXwOm3hP6nq/ERMaJtRp8N3AElaV
vbyfhyEUkQNcOItF3c6wYBrySQO+rnAo8EyA2sIXifThejanyvLOJW61Sc5ir1dM
D7IPKUXRcPJiEZ/FzXYcbDki/PeyjVNcYRPe6f3V4hE8U6Q7Cas=
=9MfD
-----END PGP SIGNATURE-----

Attachment: pgpiwvyIlYfpu.pgp
Description: PGP signature


--- End Message ---

Reply via email to