Last commit made on 2023-09-12
Get this branch:
git clone -b add-ppa-credentials-command https://git.launchpad.net/ppa-dev-tools
Only Bryce Harrington can upload to this branch. If you are Bryce Harrington please log in for upload directions.

Branch merges

Branch information


Recent commits

3fed215... by Bryce Harrington

ppa: Include name of the default filename in help text

629848e... by Bryce Harrington

Add a --credentials option to use the stored creds for auth

Modify the Lp class to accept credentials on creation, and refactor the
existing LP_CREDENTIALS envvar handling code to use this instead. This
moves the envvar handling from the ppa.lp module to the ppa script
itself; add a new wrapper create_lp() to encapsulate this and to add
support for loading credentials from a given file, which can be
specified by a newly introduced --credentials global argument.

1b3104e... by Bryce Harrington

credentials: Add a 'ppa credentials' command

This implements a simple command to dump one's Launchpad credentials to
disk, storing it to a file named "credentials.oauth".

  $ ppa credentials
  Launchpad credentials written to credentials.oauth

That file can then be passed back to ppa-dev-tools via the
LP_CREDENTIALS environment variable:

  $ LP_CREDENTIALS="$(cat ./credentials.oauth)" ppa wait my-ppa

This feature permits running ppa-dev-tools inside LXC containers or
other situations where launching a web browser to collect authorization
is inconvenient or not workable.

6c63268... by Bryce Harrington

tests: Implement a few basic presentational tests for Ppa class

6359649... by Bryce Harrington

ppa: Split trigger display separately from trigger construction

Gather all the triggers into a source_pub_triggers data structure, then
separately process the structure with the logic for displaying them.

76ad6f0... by Bryce Harrington

result: Refactor results retrieval from command_tests to ppa module

Now that display of results has been refactored into show_results(), the
code to retrieve the results can move into the ppa module.

This implements get_autopkgtest_results() and corresponding test.

7c3689a... by Bryce Harrington

result: Use more recent example ppa

Testing against real PPAs is very handy to do from a smoketest, but
unfortunately they have a tendancy to bitrot... eventually this should
be made to work more synthetically (maybe select a PPA randomly??) but
for now we just kick the can down the road...

f7d9f2a... by Bryce Harrington

tests: Improve Results constructor instantiation checks

c56a856... by Bryce Harrington

result: Support newer autopkgtest log formats

Since mantic, autopkgtest logs are prepended with a timestamp, which
confuses the parser resulting in the timestamp displayed instead of the
subtest description. This fixes the issue by detecting lines beginning
with three or more numerical digits and ignoring the first word in the
line for extracting subtests.

Fixes: https://bugs.launchpad.net/ppa-dev-tools/+bug/2025484

7bef7a0... by Bryce Harrington

Cleanup unneeded rdepends variable