~nacc/git-ubuntu:lp1734905-script-fixes

Last commit made on 2018-02-28
Get this branch:
git clone -b lp1734905-script-fixes https://git.launchpad.net/~nacc/git-ubuntu
Only Nish Aravamudan can upload to this branch. If you are Nish Aravamudan please log in for upload directions.

Branch merges

Branch information

Name:
lp1734905-script-fixes
Repository:
lp:~nacc/git-ubuntu

Recent commits

8b24a18... by Nish Aravamudan

scripts/scriputils.py: treat Debian-only publishes as universe

For the purposes of phasing, we only want to consider Ubuntu publishing
data directly. But if something is only present in Debian, we do not
have any component data to use; presumably it is lower priority for
Ubuntu, though, so phase it like universe.

b6ad37b... by Nish Aravamudan

scripts/import-source-packages.py: do not use publishing record component to determine if to-be-imported

As noticed by Robie, Debian publishing records are all in 'main', as
they do not have components. The purpose of our phasing values is to
reflect how much of Ubuntu's components are imported, anyways. So, use
the same logic source-package-walker does, which queries the archive for
the list of packages in each component for all active series. This gives
us a long list of source package names, which we simply can test for
membership as we see publishing records.

LP: #1734905

2e8972d... by Nish Aravamudan

scriptutils: abstract out srcpkgs_to_import_list

This will be used by multiple scripts to return the list of Ubuntu
source package names matching our specified criteria.

No functional changes.

3b2e8e4... by Nish Aravamudan

self-test: fix coverage

When running the self-test app from a directory that happens to contain
a gitubuntu Python package (e.g., the Git repository), we get a false
empty coverage report because the local pacakge is used to check
coverage.

33b6794... by Nish Aravamudan

scriptutils_test: add some more testing of whitelist

1a081a3... by Nish Aravamudan

source-package-walker: fix use_whitelist default

We need to specify the default value for the variable, not the option.

This script was ignoring the whitelist by default before this fix.

8eb25fa... by Nish Aravamudan

source-package-walker: add --reimport

When we are linearly walking packages, to ramp-up for a new phasing
value, we might also need to reimport them. Add a flag which we can pass
down to the common code.

9bd0649... by Nish Aravamudan

source-package-walker.py: drop stray print

8c58133... by Nish Aravamudan

scripts: add unit tests for should_import_srcpkg

Baseline to ensure that the the function is correct for a few obvious
cases.

LP: #1734905

48249b2... by Robie Basak

Add apt_repo module

Adds gitubuntu/apt_repo_test/ to the MANIFEST.in so it's available to
git-ubuntu.self-test.

Re-adds gnupg2 to the snap, as gpgv is needed for verification and
gpg/gpg-agent is needed for testing and apt_repo relies on newer gpgv
behavior (accepting the --output option). This is a revert of "Revert
"snap: build gpg from source" (commit
3294bc6d6c93c8c76f953266f9665ede78c5937d).

As a nuance of this dependency, we need to tell the test to use a
specific gpg-agent, as found in PATH. This ensures self-compatibility
and ideally not affecting the running user's gpg-agent, and if not done
the self-test will fail as /usr/bin/gpg-agent is executed explicitly.
The order of arguments to gpg matters, hence where the --agent-program
option is added.