Debian Bug report logs - #836520
reprotest: contains a copy of the autopkgtest code

version graph

Package: reprotest; Maintainer for reprotest is Reproducible builds folks <reproducible-builds@lists.alioth.debian.org>; Source for reprotest is src:reprotest (PTS, buildd, popcon).

Reported by: Antonio Terceiro <terceiro@debian.org>

Date: Sat, 3 Sep 2016 16:51:01 UTC

Severity: normal

Found in version reprotest/0.2

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Reproducible builds folks <reproducible-builds@lists.alioth.debian.org>:
Bug#836520; Package reprotest. (Sat, 03 Sep 2016 16:51:05 GMT) (full text, mbox, link).


Acknowledgement sent to Antonio Terceiro <terceiro@debian.org>:
New Bug report received and forwarded. Copy sent to Reproducible builds folks <reproducible-builds@lists.alioth.debian.org>. (Sat, 03 Sep 2016 16:51:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Antonio Terceiro <terceiro@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: reprotest: contains a copy of the autopkgtest code
Date: Sat, 3 Sep 2016 13:47:26 -0300
[Message part 1 (text/plain, inline)]
Package: reprotest
Version: 0.2
Severity: normal

The virtualization backend binaries provided by autopkgtest are supposed
to be consumable by external tools¹. Maybe we are not in a point where
actually doing that is easy/convenient, but having a full copy of the
autopkgtest code base in reprotest does not seem to be right.

I even understand how this helped bootstrap the project and made it
easier at the beginning, but I'm sure you will agree with me that reuse
by copy-and-paste and embedded code copies are not good ideas.

¹ see e.g. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=833407

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'unstable'), (500, 'testing'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages reprotest depends on:
ii  apt-utils       1.3~rc4
ii  diffoscope      59
ii  libdpkg-perl    1.18.10
ii  procps          2:3.3.12-2
ii  python3-debian  0.1.29
pn  python3:any     <none>

Versions of packages reprotest recommends:
ii  autodep8     0.8
ii  disorderfs   0.4.3-1
ii  locales-all  2.24-1
ii  qemu-system  1:2.6+dfsg-3
ii  qemu-utils   1:2.6+dfsg-3
ii  schroot      1.6.10-2+b1

reprotest suggests no packages.

-- no debconf information
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Reproducible builds folks <reproducible-builds@lists.alioth.debian.org>:
Bug#836520; Package reprotest. (Tue, 29 Nov 2016 17:21:03 GMT) (full text, mbox, link).


Acknowledgement sent to Ximin Luo <infinity0@debian.org>:
Extra info received and forwarded to list. Copy sent to Reproducible builds folks <reproducible-builds@lists.alioth.debian.org>. (Tue, 29 Nov 2016 17:21:03 GMT) (full text, mbox, link).


Message #10 received at 836520@bugs.debian.org (full text, mbox, reply):

From: Ximin Luo <infinity0@debian.org>
To: 836520@bugs.debian.org, Martin Pitt <mpitt@debian.org>
Subject: Re: reprotest: contains a copy of the autopkgtest code
Date: Tue, 29 Nov 2016 17:18:00 +0000
[Message part 1 (text/plain, inline)]
Hi Martin,

I'm looking into de-duplicating reprotest's embedded copies of autopkgtest code.

In #833407 you said "Using the Python API (adt_testbed.py) is a lot easier and more robust than talking to the backend servers directly", but adt_testbed.py is currently not available as a public Python module. How do you expect users to use it?

Might I suggest you make "/usr/share/autopkgtest/lib" available as a python package? autopkgtest is a fine name for it. I understand you might have some reservations about exposing some "internal" files like this, but the Pythonic way is to prefix those with an underscore (as the stdlib does) and/or document this fact clearly.

By contrast, putting a whole python package into a private path and then hacking sys.path to be able to find this, is not really the appropriate "Pythonic" way to do this. I can certainly sympathise, if you have philosophical problems with Python's approach to module-hiding, but I think this approach is not the best way to fight that fight. Rather, one would try to make a PEP that constructs something clean, that everyone can use.

I've also attached the additional changes that Ceridwen made to the code, since she imported it just before 4.0 was released. I have yet to study it in detail, but feel free to comment in the meantime - if you see any major incompatibilities that would be hard to fix in reprotest, it would be good for me to know quickly and early.

X

On Sat, 3 Sep 2016 13:47:26 -0300 Antonio Terceiro <terceiro@debian.org> wrote:
> Package: reprotest
> Version: 0.2
> Severity: normal
> 
> The virtualization backend binaries provided by autopkgtest are supposed
> to be consumable by external tools¹. Maybe we are not in a point where
> actually doing that is easy/convenient, but having a full copy of the
> autopkgtest code base in reprotest does not seem to be right.
> 
> I even understand how this helped bootstrap the project and made it
> easier at the beginning, but I'm sure you will agree with me that reuse
> by copy-and-paste and embedded code copies are not good ideas.
> 
> ¹ see e.g. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=833407
> 
> -- System Information:
> Debian Release: stretch/sid
>   APT prefers unstable-debug
>   APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'unstable'), (500, 'testing'), (1, 'experimental-debug'), (1, 'experimental')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
> Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
> 
> Versions of packages reprotest depends on:
> ii  apt-utils       1.3~rc4
> ii  diffoscope      59
> ii  libdpkg-perl    1.18.10
> ii  procps          2:3.3.12-2
> ii  python3-debian  0.1.29
> pn  python3:any     <none>
> 
> Versions of packages reprotest recommends:
> ii  autodep8     0.8
> ii  disorderfs   0.4.3-1
> ii  locales-all  2.24-1
> ii  qemu-system  1:2.6+dfsg-3
> ii  qemu-utils   1:2.6+dfsg-3
> ii  schroot      1.6.10-2+b1
> 
> reprotest suggests no packages.
> 
> -- no debconf information

-- 
GPG: ed25519/56034877E1F87C35
GPG: rsa4096/1318EFAC5FBBDBCE
https://github.com/infinity0/pubkeys.git
[reprotest-adt.diff (text/x-patch, attachment)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 17 09:26:13 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.