Merge ppa-dev-tools:command-tests into ppa-dev-tools:main

Proposed by Bryce Harrington
Status: Merged
Merge reported by: Bryce Harrington
Merged at revision: 8abb18213477cb686676621a204a83a436235c57
Proposed branch: ppa-dev-tools:command-tests
Merge into: ppa-dev-tools:main
Diff against target: 268 lines (+164/-8)
7 files modified
AUTHORS.md (+1/-0)
ppa/constants.py (+20/-0)
ppa/io.py (+33/-0)
ppa/job.py (+31/-5)
ppa/ppa.py (+3/-3)
scripts/ppa (+44/-0)
tests/test_io.py (+32/-0)
Reviewer Review Type Date Requested Status
Athos Ribeiro (community) Approve
Canonical Server Reporter Pending
Review via email: mp+428951@code.staging.launchpad.net

Description of the change

Adds the command 'ppa tests' which for now just reports the running and waiting tests. (Later, Results will be added as well.)

Since running and waiting info is only available while a PPA's tests are in process, to check the functionality you'll need to queue up some fresh tests for your favorite PPA; e.g.:

    $ lp-test-ppa ppa:bryce/dovecot-merge-v1e2.3.19.1adfsg1-2 -r kinetic --showurl

Trigger several, then wait a few minutes and they should start appearing in output:

    $ ./scripts/ppa tests ppa:bryce/dovecot-merge-v1e2.3.19.1adfsg1-2
Running:
    time pkg release arch ppa trigger
    10 dovecot kinetic armhf bryce/dovecot-merge-v1e2.3.19.1adfsg1-2 dovecot/1:2.3.19.1+dfsg1-2ubuntu2~kinetic1
    120 dovecot kinetic armhf bryce/dovecot-merge-v1e2.3.19.1adfsg1-2 dovecot/1:2.3.19.1+dfsg1-2ubuntu2~kinetic1
    270 dovecot kinetic amd64 bryce/dovecot-merge-v1e2.3.19.1adfsg1-2 dovecot/1:2.3.19.1+dfsg1-2ubuntu2~kinetic1
    30 dovecot kinetic arm64 bryce/dovecot-merge-v1e2.3.19.1adfsg1-2 dovecot/1:2.3.19.1+dfsg1-2ubuntu2~kinetic1
    30 dovecot kinetic ppc64el bryce/dovecot-merge-v1e2.3.19.1adfsg1-2 dovecot/1:2.3.19.1+dfsg1-2ubuntu2~kinetic1
Waiting:
    Q-num pkg release arch ppa trigger
    1 dovecot kinetic s390x bryce/dovecot-merge-v1e2.3.19.1adfsg1-2 dovecot/1:2.3.19.1+dfsg1-2ubuntu2~kinetic1
    1 dovecot kinetic armhf bryce/dovecot-merge-v1e2.3.19.1adfsg1-2 dovecot/1:2.3.19.1+dfsg1-2ubuntu2~kinetic1
    1 dovecot kinetic amd64 bryce/dovecot-merge-v1e2.3.19.1adfsg1-2 dovecot/1:2.3.19.1+dfsg1-2ubuntu2~kinetic1

To post a comment you must log in.
Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

LGTM! Thanks, Bryce.

I included a couple inline nitpicks. As usual, feel free to ignore some or all of them. This looks good as is :)

review: Approve
Revision history for this message
Bryce Harrington (bryce) wrote :

Thanks for the review. Updated, merged and landed:

$ git push origin main
Total 0 (delta 0), reused 0 (delta 0)
To git+ssh://git.launchpad.net/ppa-dev-tools
   8fcdc4f..84609b3 main -> main

There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: