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


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

Re: Unittests writing to HOME (backintime)

Path csiph.com!fu-berlin.de!news.servidellagleba.it!bofh.it!news.nic.it!robomod
From Andrey Rakhmatullin <wrar@wrar.name>
Newsgroups linux.debian.maint.python
Subject Re: Unittests writing to HOME (backintime)
Date Wed, 29 Mar 2023 11:50:01 +0200
Message-ID <GeABj-fUeZ-7@gated-at.bofh.it> (permalink)
References <GeySS-fT6i-9@gated-at.bofh.it>
X-Original-To debian-python@lists.debian.org
X-Mailbox-Line From debian-python-request@lists.debian.org Wed Mar 29 09:41:19 2023
Old-Return-Path <wrar@wrar.name>
X-Amavis-Spam-Status No, score=-7.1 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, LDO_WHITELIST=-5] autolearn=ham autolearn_force=no
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Disposition inline
X-Mailing-List <debian-python@lists.debian.org> archive/latest/20907
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/ZCQHqph7T4OFG2IJ@durkon.wrar.name
Approved robomod@news.nic.it
Lines 25
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Wed, 29 Mar 2023 11:40:58 +0200
X-Original-Message-ID <ZCQHqph7T4OFG2IJ@durkon.wrar.name>
X-Original-References <2dd30b047f9de026dc4751f50786a555@posteo.de>
Xref csiph.com linux.debian.maint.python:14998

Show key headers only | View raw


On Wed, Mar 29, 2023 at 07:52:35AM +0000, c.buhtz@posteo.jp wrote:
> I assume this topic is not specific to one package but to the whole python
> packaging universe.
> 
> There is "backintime" which unittests do write to $HOME. I'm one of the new
> upstream maintainers and know that this isn't a good idea. It will take time
> to fix this.
> About that problem there is a debian bug report nearly 4 years old
> 
>     https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=940319
> 
> It tells that this is a problem because writing to HOME during build "is
> disabled on Debian auto-builders".
> 
> My question now is why newer version of this package are uploaded then? I
> couldn't find that the tests where deactivated.
As the software doesn't use a discoverabe build system the package needs
to have all build steps explicitly in d/rules, and it just doesn't have
the test step there.

> Maybe this "disabled on
> Debian auto-builders" is outdated and today it is possible to write to HOME
> during build?
No.
The usual solution is AFAIK to set a temporary $HOME inside d/rules though.

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


Thread

Unittests writing to HOME (backintime) c.buhtz@posteo.jp - 2023-03-29 10:00 +0200
  Re: Unittests writing to HOME (backintime) Andrey Rakhmatullin <wrar@wrar.name> - 2023-03-29 11:50 +0200
    Re: Unittests writing to HOME (backintime) c.buhtz@posteo.jp - 2023-03-29 12:10 +0200
      Re: Unittests writing to HOME (backintime) Andrey Rakhmatullin <wrar@wrar.name> - 2023-03-29 15:10 +0200
    Re: Unittests writing to HOME (backintime) buhtz@posteo.de - 2023-03-29 12:30 +0200
  Re: Unittests writing to HOME (backintime) Simon McVittie <smcv@debian.org> - 2023-03-29 13:10 +0200

csiph-web