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


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

Re: Unittests writing to HOME (backintime)

Path csiph.com!1.us.feeder.erje.net!3.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!news.in-chemnitz.de!news2.arglkargh.de!news.karotte.org!fu-berlin.de!bofh.it!news.nic.it!robomod
From Simon McVittie <smcv@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: Unittests writing to HOME (backintime)
Date Wed, 29 Mar 2023 13:10:01 +0200
Message-ID <GeBQJ-fVcI-5@gated-at.bofh.it> (permalink)
References <GeySS-fT6i-9@gated-at.bofh.it>
X-Mailbox-Line From debian-python-request@lists.debian.org Wed Mar 29 11:07:04 2023
Old-Return-Path <smcv@debian.org>
X-Amavis-Spam-Status No, score=-109.41 tagged_above=-10000 required=5.3 tests=[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, RCVD_IN_DNSWL_MED=-2.3, 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/20911
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/ZCQbxH9HyDd9lPqx@tautology.pseudorandom.co.uk
Approved robomod@news.nic.it
Lines 19
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Wed, 29 Mar 2023 12:06:44 +0100
X-Original-Message-ID <ZCQbxH9HyDd9lPqx@tautology.pseudorandom.co.uk>
X-Original-References <2dd30b047f9de026dc4751f50786a555@posteo.de>
Xref csiph.com linux.debian.maint.python:15002

Show key headers only | View raw


On Wed, 29 Mar 2023 at 07:52:35 +0000, c.buhtz@posteo.jp wrote:
> My question now is why newer version of this package are uploaded then? I
> couldn't find that the tests where deactivated. Maybe this "disabled on
> Debian auto-builders" is outdated and today it is possible to write to HOME
> during build?

In compat level 13, debhelper will set $HOME to a temporary directory
during the build (see #942111).

The user's "official" home directory in the system user database
(getent passwd $(id -u) | cut -d: -f6) is still set to a directory that
does't exist (/nonexistent) on the official buildds.

>From an upstream point of view it's still bad for unit tests to do
anything destructive in $HOME, because upstream developers who run the
unit tests won't want their data destroyed, but it's harmless to do
non-destructive things like writing to ~/.cache.

    smcv

Back to linux.debian.maint.python | Previous | Next — Previous 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