Merge ppa-dev-tools:add_rdepends_argument into ppa-dev-tools:main
Status: | Merged |
---|---|
Merge reported by: | Bryce Harrington |
Merged at revision: | 565c3c6342b9f5c57808b7d527daeb1b555070c2 |
Proposed branch: | ppa-dev-tools:add_rdepends_argument |
Merge into: | ppa-dev-tools:main |
Diff against target: |
797 lines (+318/-87) 11 files modified
NEWS.md (+16/-0) ppa/constants.py (+17/-0) ppa/ppa.py (+32/-0) ppa/repository.py (+9/-2) ppa/suite.py (+78/-49) ppa/trigger.py (+11/-3) scripts/ppa (+65/-22) tests/helpers.py (+17/-0) tests/test_scripts_ppa.py (+50/-1) tests/test_suite.py (+8/-7) tests/test_trigger.py (+15/-3) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sergio Durigan Junior (community) | Approve | ||
Canonical Server | Pending | ||
Canonical Server Reporter | Pending | ||
Review via email: mp+441377@code.staging.launchpad.net |
Description of the change
This adds the --show-rdepends feature to the tests command, to make it list trigger URLs for the reverse dependencies of package(s) in a given PPA. This relies on a local mirror of the apt repository be stored on your system at /tmp/ubuntu, which can be created like this:
$ mkdir /tmp/ubuntu
$ rsync -va \
This takes a few minutes to run, and generates a sparse mirror (i.e. you can't use it for other Apt needs). A full mirror (via apt-mirror, or rsync without all the excludes) would also work just fine.
(Future plan is to integrate "lazy mirroring" into the tool itself, so the above steps would become unnecessarily, but at least for this branch's initial implementation of the feature it's required.)
With the mirror in place, the actual running of the command just requires adding the option, for example:
$ ./scripts/ppa tests --show-rdepends --architectures amd64 https:/
Testing is done as usual:
$ make check
$ pytest-3
$ python3 -m ppa.repository
$ python3 -m ppa.suite
$ python3 -m ppa.source_package
$ python3 -m ppa.binary_package
$ python3 -m ppa.trigger
There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.
Example output from running the command:
$ ./scripts/ppa tests --show-rdepends --architectures amd64 https:/ /launchpad. net/~bryce/ +archive/ ubuntu/ apache2- merge-v2. 4.54-3 2.4.54- 3ubuntu1~ lunar1: Published perl@amd64♻ ️ Trigger all-proposed libembperl- perl@amd64💍 mod-perl2@ amd64♻️ Trigger all-proposed libapache2- mod-perl2@ amd64💍 share@amd64♻ ️ Trigger all-proposed gnome-user- share@amd64💍 mod-auth- gssapi@ amd64♻️ Trigger all-proposed libapache2- mod-auth- gssapi@ amd64💍 mod-authn- sasl@amd64♻ ️ Trigger all-proposed libapache2- mod-authn- sasl@amd64💍 github- containers- toolbox@ amd64♻️ Trigger all-proposed golang- github- containers- toolbox@ amd64💍 siunitx@ amd64♻️ Trigger all-proposed mathjax- siunitx@ amd64💍 upload- progress- module@ amd64♻️ Trigger all-proposed apache- upload- progress- module@ amd64💍 mod-xforward@ amd64♻️ Trigger all-proposed apache2- mod-xforward@ amd64💍 mutability@ amd64♻️ Trigger all-proposed dump1090- mutability@ amd64💍 explorer@ amd64♻️ Trigger all-proposed emboss- explorer@ amd64💍 authenhook- perl@amd64♻ ️ Trigger all-proposed libapache- authenhook- perl@amd64💍 mod-auth- kerb@amd64♻ ️ Trigger all-proposed libapache- mod-auth- kerb@amd64💍 mod-encoding@ amd64♻️ Trigger all-proposed libapache- mod-encoding@ amd64💍 mod-evasive@ amd64♻️ Trigger all-proposed libapache- mod-evasive@ amd64💍 mod-jk@ amd64♻️ Trigger all-proposed libapache- mod-jk@ amd64💍 mod-log- sql@amd64♻ ️ Trigger all-proposed libapache- mod-log- sql@amd64💍 mod-musicindex@ amd64♻️ Trigger all-proposed libapache- mod-musicindex@ amd64💍
* Triggers:
- Source apache2/
+ Trigger basic apache2@amd64♻️ Trigger all-proposed apache2@amd64💍
+ Trigger basic libembperl-
+ Trigger basic passenger@amd64♻️ Trigger all-proposed passenger@amd64💍
+ Trigger basic libapache2-
+ Trigger basic libsoup2.4@amd64♻️ Trigger all-proposed libsoup2.4@amd64💍
+ Trigger basic libsoup3@amd64♻️ Trigger all-proposed libsoup3@amd64💍
+ Trigger basic gnome-user-
+ Trigger basic libapache2-
+ Trigger basic libapache2-
+ Trigger basic mod-gnutls@amd64♻️ Trigger all-proposed mod-gnutls@amd64💍
+ Trigger basic golang-
+ Trigger basic mathjax-
+ Trigger basic pycsw@amd64♻️ Trigger all-proposed pycsw@amd64💍
+ Trigger basic apache-
+ Trigger basic apache2-
+ Trigger basic dehydrated@amd64♻️ Trigger all-proposed dehydrated@amd64💍
+ Trigger basic dogtag-pki@amd64♻️ Trigger all-proposed dogtag-pki@amd64💍
+ Trigger basic dump1090-
+ Trigger basic emboss-
+ Trigger basic freeboard@amd64♻️ Trigger all-proposed freeboard@amd64💍
+ Trigger basic gbrowse@amd64♻️ Trigger all-proposed gbrowse@amd64💍
+ Trigger basic gnocchi@amd64♻️ Trigger all-proposed gnocchi@amd64💍
+ Trigger basic gridsite@amd64♻️ Trigger all-proposed gridsite@amd64💍
+ Trigger basic homer-api@amd64♻️ Trigger all-proposed homer-api@amd64💍
+ Trigger basic jsmath@amd64♻️ Trigger all-proposed jsmath@amd64💍
+ Trigger basic libapache-
+ Trigger basic libapache-
+ Trigger basic libapache-
+ Trigger basic libapache-
+ Trigger basic libapache-
+ Trigger basic libapache-
+ Trigger basic libapache-
+ Trigge...