Misc improvements mostly Jenkins #113
Conversation
f364825 to
9ad0a99
Compare
Pull Request Test Coverage Report for Build 380
💛 - Coveralls |
|
@spbnick It is good to review now! |
spbnick
left a comment
There was a problem hiding this comment.
Looks good, I have only a few minor requests. Thank you, Hai!
| patch_url)) | ||
|
|
||
| if bres != sktm.tresult.BASELINE_FAILURE: | ||
| if bres != sktm.misc.BASELINE_FAILURE: |
There was a problem hiding this comment.
These three above are missing TestResult in the name and wouldn't work. Please fix.
| self.jk = sktm.jenkins.skt_jenkins(jenkinsurl, jenkinslogin, | ||
| jenkinspassword) | ||
| # Jenkins project name | ||
| self.jobname = jenkinsjobname |
There was a problem hiding this comment.
A comment on the commit message: Could you update the message to say sktm.jenkins.JenkinsProject instead of sktm.jenkins.Project? Thank you.
| self.db.set_patchset_pending(cpw.baseurl, cpw.project_id, | ||
| series.get_patch_info_list()) | ||
| # Submit and remember a Jenkins build for the series | ||
| url_list = series.get_patch_url_list() |
There was a problem hiding this comment.
Same here, could you please use sktm.jenkins.JenkinsProject in the commit message?
|
|
||
| def is_build_complete(self, buildid): | ||
| """ | ||
| Check if a project build is complete. |
There was a problem hiding this comment.
Can you remove "project" from here? This class is all about a project, so no need to mention it here.
7d22fcb to
75c8d72
Compare
|
@spbnick I have updated! Let me know if you need anything change. |
veruu
left a comment
There was a problem hiding this comment.
Thanks Hai! I noticed two things you missed from the original pull (one is a docstring so not that important, but the other one would break the functionality). Can you please resolve them and rebase?
@spbnick , your review still says "changes requested". Is this still your status? In case not, can you change it to the right one?
| buildid: Jenkins build ID. | ||
|
|
||
| Return: | ||
| The URL of the build result. |
There was a problem hiding this comment.
I can't comment on a specific commit, but the Describe sktm.jenkins.get_result_url functions commit is only adding docstring to this function, while in the original commit it's also documenting get_result one (hence why there is an asterisk in the original commit message, which is also missing in this one).
| subject=series.subject, | ||
| emails=series.email_addr_set, | ||
| patchwork=series.get_patch_url_list(), | ||
| patchwork=url_list, |
There was a problem hiding this comment.
The method parameter is still named patchwork here (while it's changed in the build(), so this commit would break things)
|
Thank you, @veruu for spotting the omissions! Approving and handing over to you now :) |
|
@spbnick Sure. I will do it when I have a chance |
Move sktm.tresult to sktm.misc.TestResult to fix composition, so that modules lower in the hierarchy (e.g. sktm.jenkins) do not have to import the module above (i.e. sktm).
Instead of creating and using a "Jenkins Interface"
(sktm.jenkins.JenkinsProject), and then supplying a project name
("jobname") with every method call, create and use a "Jenkins Project
Interface" (sktm.jenkins.JenkinsProject) and only supply the project name on
its creation.
This simplifes the interface, and removes a bit of code.
This also prepares for abstracting Jenkins away.
Spell out "patch URL list" instead of writing "patchwork" in sktm.jenkins.JenkinsProject, to make clear what's being accepted/returned. Leave updating the Jenkins project parameter name for later.
Create a complete Jenkins project interface instance and pass it to the watcher, instead of having the watcher create it. This prepares the watcher to using abstract scheduler interface, instead of Jenkins specifically.
veruu
left a comment
There was a problem hiding this comment.
Thanks Hai! The pull looks good now!
I make PR to supersedes #52