-
-
The api bindings were updated recently allowing the use of **kwargs instead of the 'values' argument. Can you change this to: self.diff = api_root.get_diff( review_request_id=self.request_id, diff_revision=self.diff_revision).get_patch() I'd also like to change this so it isn't fetched for every execution. Some tools won't require this, and we don't want to make the request unless they need it.
-
I know the pep8 tool isn't following the proper capitalization style, but can we switch this to be BuildbotTool.
-
let's avoid the use of '\' here to break the lines. You can use the implicit string concatenation inside the dict, and we should also align the second line. Something like: 'help_text': 'The address of the buildmaster. Used by both PB ' 'and SSH',
-
-
-
The outside parens aren't aligned properly. I'd just shove the traliling paren up onto the line above.
-
-
Let's expand a bit and say something more specific about 'improperly stored'. e.g. The password will be stored as plaintext in the database.
-
-
-
This option could pose a problem if a number of workers require unique configurations... We might need to think up a different solution.
-
-
-
Buildbot plugin for ReviewBot
Review Request #3535 — Created Nov. 19, 2012 and submitted
This plugin will submit a patch to a buildmaster using the buildbot try command. At the moment, PB authentication is the only working authentication method. SSH functionality is there, but buildbot itself is broken.
Only tested with git, but there's no reason why it shouldn't work with other SCM tools. It successfully appends the result of a build to a review regardless of status.
Description | From | Last Updated |
---|---|---|
The api bindings were updated recently allowing the use of **kwargs instead of the 'values' argument. Can you change this … |
SM smacleod | |
I know the pep8 tool isn't following the proper capitalization style, but can we switch this to be BuildbotTool. |
SM smacleod | |
let's avoid the use of '\' here to break the lines. You can use the implicit string concatenation inside the … |
SM smacleod | |
I don't think a default of True makes sense here. |
SM smacleod | |
See above comment about style. |
SM smacleod | |
The outside parens aren't aligned properly. I'd just shove the traliling paren up onto the line above. |
SM smacleod | |
See above comment about style. |
SM smacleod | |
Let's expand a bit and say something more specific about 'improperly stored'. e.g. The password will be stored as plaintext … |
SM smacleod | |
See above about style |
SM smacleod | |
See above about style. |
SM smacleod | |
See above about style. |
SM smacleod | |
Lets alphabetize this. |
SM smacleod | |
Alphabetize this as well please. |
SM smacleod | |
I don't think we need this newline. |
mike_conley | |
Should we report something instead of failing silently in this case? Is this case even possible? |
mike_conley | |
Nit - add doc |
mike_conley | |
For readability, are you able to indent this so that it's directly beneath the string that it continues? Same below … |
mike_conley | |
This blank line should be put back |
SM smacleod | |
lets rename this diff_contents |
SM smacleod | |
lets rename this get_diff_file_path |
SM smacleod | |
Can we change this to something like: Runs buildbot try with the review requests diff. |
SM smacleod | |
Alphabetize |
SM smacleod | |
Alphabetical: from reviewbot.tools import Tool from reviewbot.tools.process import execute |
SL slchen | |
Indentation issue here; I think you want: cmd = [ 'builtbot', 'try', ... ] |
SL slchen | |
I'm not sure about this one, but I think it might be: branch = self.review.api_root.get_review_request( review_request_id=self.review.request_id ).branch Thoughts, mentors? |
SL slchen | |
Indentation issue here: cmd.extend([ '--connect=pb', '--passwd=%s' % settings['password'], ]) |
SL slchen | |
Same comment as above. |
SL slchen | |
Alphabetical |
SL slchen |
- Change Summary:
-
make patch a property of review. style changes
- Testing Done:
-
Correctly posts the output of a build to a review, although only with a minimal test suite that should always pass. Must try with failing test suite and long running test suite
+ + Only SCM tool I've used is git
- Description:
-
This plugin will submit a patch to a buildmaster using the buildbot try command.
~ At the moment, it only supports PB connection method, but SSH support is forthcoming
~ At the moment, PB authentication is the only working authentication method. SSH functionality is there, but buildbot itself is broken.
- - I've included buildbot as a dependency, but I'm not sure if it should be there
- - I also need to cleanup the message it posts to a review, and get the base revision if the diff isn't based off of master
- Testing Done:
-
~ Correctly posts the output of a build to a review, although only with a minimal test suite that should always pass. Must try with failing test suite and long running test suite
~ Only tested with git, but there's no reason why it shouldn't work with other SCM tools.
~ Only SCM tool I've used is git
~ It successfully appends the result of a build to a review regardless of status.