[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RFC: adding --add-apt-source and --pin-packages to autopkgtest



Hi,

We need a few new features in autopkgtest in order to have ci.debian.net
gating updates to Debian testing. This could be done with setup-command
hacks on debci, but autopkgtest is the right place for the
functionality.

This work was started by Paul Gevers. I recently joined the efforts
since I needed to understand the autopkgtest side to properly implement
debci side, and I added a few improvements that will make my work on
debci easier.

--add-apt-sources can be used to add extra APT sources. This is probably
very useful to test packages from overlay repositories against a "clean"
originail testbed. It is not strictly needed for our CI work, but
--pin-packages shares some of the implementation, so we might as well
also have it.

--pin-packages is a generalization of --apt-pocket that works for the
Debian case. In fact, some refactoring was done so that a good part of
the implementation of both options is now shared.

I intend to merge this and make a 5.1 release, but it would be nice to
have some code review.

All previously existing automated tests still pass, and based on my
local tests I would say that we are good.  Below is the summary of the
changes produced with `git request-pull`.
------------------------------------------------------------------------

The following changes since commit 433f1b007f3c84a8f552122a670a40a1efde3f4a:

  debian/rules: reuse /usr/share/dpkg/pkg-info.mk (2017-10-25 22:47:36 -0200)

are available in the Git repository at:

  https://anonscm.debian.org/git/users/terceiro/autopkgtest.git pin

for you to fetch changes up to 66e48f8d92b4230d0d8ac87ae99c88c122d745ec:

  --pin-packages: automatically add the needed APT sources (2017-10-28 12:21:22 -0200)

----------------------------------------------------------------
Antonio Terceiro (5):
      Merge remote-tracking branch 'paulgevers/gating-via-sources-rebased' into pin
      Fix description of --pin-packages in manpage
      Simplify check for need to run setup commands
      Extract "add APT source" into its own method
      --pin-packages: automatically add the needed APT sources

Paul Gevers (6):
      Error out when apt-get update fails for three times in a row
      Add release- to help text of apt-pocket
      Apply patch by Simon McVittie from bug #851568
      Improve man page for --setup-commands, as both examples are now supported natively
      Use APT:Default-Release i.s.o. most pinning and add option --apt-default-release
      Add --pin-packages option to enable Debian to run in testing with packages from sid

 lib/adt_testbed.py      | 139 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------
 lib/autopkgtest_args.py |  24 ++++++++++++++++++++++--
 runner/autopkgtest      |   5 ++++-
 runner/autopkgtest.1    |  39 ++++++++++++++++++++++++++++++++++-----
 tests/autopkgtest       |  98 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------
 5 files changed, 266 insertions(+), 39 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/autopkgtest-devel/attachments/20171028/b7447228/attachment.sig>


Reply to: