Merge ppa-dev-tools:job-class into ppa-dev-tools:main
Proposed by
Bryce Harrington
Status: | Merged |
---|---|
Merge reported by: | Bryce Harrington |
Merged at revision: | 29e2c6593124656083bcfa933f30ba81ac15caa6 |
Proposed branch: | ppa-dev-tools:job-class |
Merge into: | ppa-dev-tools:main |
Diff against target: |
713 lines (+683/-0) 5 files modified
.flake8 (+2/-0) ppa/job.py (+183/-0) tests/data/queues-20220822.json (+385/-0) tests/data/running-20220822.json (+1/-0) tests/test_job.py (+112/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Athos Ribeiro (community) | Approve | ||
Canonical Server Reporter | Pending | ||
Review via email: mp+428760@code.staging.launchpad.net |
Description of the change
Imports the Job class from lp-test-ppa into ppa-dev-tools, adds docs, tests, and a bit more refactoring.
This is not hooked up to any commands in the ppa cli itself, but there's a smoke test using snapshot data you can run:
$ python3 ./ppa/job.py
The tests can be run as well:
$ pytest-3 ./tests/test_job.py
To post a comment you must log in.
There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.
Nice work, Bryce :)
I left a couple inline comments, but this LGTM as is.
I am also wondering if instead of including the complete samples of the json files, including hand-crafted minimal samples of those would be enough. The reason for the question is that this change alone increased the project root size from <200kb to 1.9Mb (not counting git data here). While this shouldn't matter much ATM, I was wondering if there's any chance this could pile up in the future with new test additions.