Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #15072

Re: [backintime] Switch the maintainer to "Debian Python Team (DPT)"

Path csiph.com!1.us.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!news.servidellagleba.it!bofh.it!news.nic.it!robomod
From Simon McVittie <smcv@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: [backintime] Switch the maintainer to "Debian Python Team (DPT)"
Date Fri, 28 Jul 2023 14:50:01 +0200
Message-ID <GWv4R-3mUe-3@gated-at.bofh.it> (permalink)
References <GFKCZ-fm0l-1@gated-at.bofh.it> <GFLpo-fmvy-7@gated-at.bofh.it> <GUBo5-29xU-7@gated-at.bofh.it> <GUC0O-29Pn-7@gated-at.bofh.it> <GWfjr-3d1M-1@gated-at.bofh.it> <GWsql-3lfx-1@gated-at.bofh.it>
X-Mailbox-Line From debian-python-request@lists.debian.org Fri Jul 28 12:44:51 2023
Old-Return-Path <smcv@debian.org>
X-Amavis-Spam-Status No, score=-108.4 tagged_above=-10000 required=5.3 tests=[ATTENDEES_DBSPAM_BODY7=1, BAYES_00=-2, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02, RCVD_IN_DNSWL_MED=-2.3, T_SCC_BODY_TEXT_LINE=-0.01, UNPARSEABLE_RELAY=0.001, USER_IN_DKIM_WELCOMELIST=-0.01, USER_IN_DKIM_WHITELIST=-100] autolearn=ham autolearn_force=no
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
X-Debian-User smcv
X-Mailing-List <debian-python@lists.debian.org> archive/latest/20990
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/ZMO4KFAZXVFKu7HH@tautology.pseudorandom.co.uk
Approved robomod@news.nic.it
Lines 37
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Fri, 28 Jul 2023 13:44:24 +0100
X-Original-Message-ID <ZMO4KFAZXVFKu7HH@tautology.pseudorandom.co.uk>
X-Original-References <7424c1c32b8696b592683e78db1d7c5f@posteo.de> <612b89d3-f71a-13eb-2684-7a82dc963bcd@debian.org> <4R7vYN5n0nz6v3B@submission01.posteo.de> <1f126d04-a47f-9504-711e-5e5739fd4524@t-online.de> <4RBhNZ6ZMSz9rxG@submission02.posteo.de> <6f9c3354-d52b-559b-2752-efb8c09b1716@t-online.de>
Xref csiph.com linux.debian.maint.python:15072

Show key headers only | View raw


On Fri, 28 Jul 2023 at 11:53:29 +0200, Carsten Schoenert wrote:
> To quote from the BTS:
> ---%<---
> > In 1.2 upstream added a test suite. We should run it during build
> > (cd common && $(MAKE) test) but it needs to be able to write to the home
> > directory, which is disabled on Debian auto-builders. Need to find
> > a solution to that.
> --->%---
> 
> To me it's clear what the problem is. The test requires a $HOME folder, but
> the build environment doesn't provide something like this.

If backintime uses $HOME, and doesn't rely on $HOME being the same as
$(getent passwd $(id -u)|cut -d: -f6), then it might actually be possible
to run its test suite with a dependency on a suitably new debhelper.

In debhelper compatibility level 13, dh_auto_test sets $HOME to a temporary
directory (#942111) which might well be enough to run the test suite
non-destructively. If that's sufficient, I'm sure the maintainer of the
backintime package would appreciate a tested patch sent to #940319.
The way to test this would be to build backintime in sbuild, with a uid
whose "official" home directory in /etc/passwd doesn't exist in the chroot.

The other angle this could be approached from is as an upstream developer:
as an upstream, would you really want running the backintime test suite
to make potentially destructive changes to your real home directory? As
an upstream developer of other packages, I wouldn't want that: if I have
made an implementation mistake, I want to be able to find out about that
by running the test suite, knowing that the test suite won't damage my
real home directory.

Making the test suite write to a mock home directory instead of to the
real home directory, and changing or unsetting environment variables that
point to the real home directory (again, see #942111) during automated
testing, would make the test suite safer and more predictable.

    smcv

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[backintime] Switch the maintainer to "Debian Python Team (DPT)" c.buhtz@posteo.jp - 2023-06-12 10:00 +0200
  Re: [backintime] Switch the maintainer to "Debian Python Team (DPT)" Jonathan Carter <jcc@debian.org> - 2023-06-12 10:50 +0200
    Re: [backintime] Switch the maintainer to "Debian Python Team  (DPT)" <c.buhtz@posteo.jp> - 2023-07-23 09:10 +0200
      Re: [backintime] Switch the maintainer to "Debian Python Team (DPT)" Carsten Schoenert <c.schoenert@t-online.de> - 2023-07-23 09:50 +0200
        Re: [backintime] Switch the maintainer to "Debian Python Team  (DPT)" <c.buhtz@posteo.jp> - 2023-07-27 22:00 +0200
          Re: [backintime] Switch the maintainer to "Debian Python Team (DPT)" c.buhtz@posteo.jp - 2023-07-28 09:20 +0200
          Re: [backintime] Switch the maintainer to "Debian Python Team (DPT)" Carsten Schoenert <c.schoenert@t-online.de> - 2023-07-28 12:00 +0200
            Re: [backintime] Switch the maintainer to "Debian Python Team (DPT)" c.buhtz@posteo.jp - 2023-07-28 13:10 +0200
              Re: [backintime] Switch the maintainer to "Debian Python Team (DPT)" Simon McVittie <smcv@debian.org> - 2023-07-28 14:40 +0200
              Re: [backintime] Switch the maintainer to "Debian Python Team (DPT)" Andrey Rakhmatullin <wrar@wrar.name> - 2023-07-28 15:40 +0200
            Re: [backintime] Switch the maintainer to "Debian Python Team (DPT)" Simon McVittie <smcv@debian.org> - 2023-07-28 14:50 +0200
              Re: [backintime] Switch the maintainer to "Debian Python Team (DPT)" c.buhtz@posteo.jp - 2023-07-28 15:00 +0200
            Re: [backintime] Switch the maintainer to "Debian Python Team (DPT)" Nicholas D Steeves <sten@debian.org> - 2023-07-28 21:40 +0200

csiph-web