Merge ~cjwatson/launchpad:refactor-ci-build-upload-job into launchpad:master
Proposed by
Colin Watson
Status: | Merged |
---|---|
Approved by: | Colin Watson |
Approved revision: | 971e0361b7c2234c8ed97649cc46bc70ca29f625 |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~cjwatson/launchpad:refactor-ci-build-upload-job |
Merge into: | launchpad:master |
Prerequisite: | ~cjwatson/launchpad:ci-build-upload-require-package |
Diff against target: |
212 lines (+99/-53) 1 file modified
lib/lp/soyuz/model/archivejob.py (+99/-53) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andrey Fedoseev (community) | Approve | ||
Review via email: mp+426403@code.launchpad.net |
Commit message
Refactor CIBuildUploadJo
Description of the change
The `CIBuildUploadJ
`ScannedArtifact` isn't all that useful yet, but I'll be adding a couple more things to it soon so it seemed better to have this abstraction rather than a simple tuple.
To post a comment you must log in.
Looks good
A few notes:
1. I typically prefer to place higher-level methods above the lower-level methods that they call. In this case, the order would be:
def run():
def _scanArtifacts()
def _scanFile()
def _uploadPackages()
This follows the order in which the methods are called and gives the reader a nice top-down view.
2. I suggest adding type annotations to the new methods that you've extracted.