Closed jasonkuster closed 8 years ago
R: @bjchambers
Added some tests for merge.py.
Looking pretty close
Rework to use a logging library (hacks with sys.stdout have been removed), and rework of merge.py as we discussed. I believe this is in its final state; it'd be great to get this in and done tomorrow.
@bjchambers PTAL
To view the recent changes, take a look at the below link.
@bjchambers PTAL
As discussed, I'm OK (but somewhat hesitant) to defer cleaning up logging to Mergebot 1.1. As a general idea, it seems to make sense to create classes for each of the kinds of loggers (with appropriate helper methods) and use those as appropriate. Eg, have a PrLogger
class which can have methods to log to just the PrLogger
or to the PrLogger
and the higher-level merge logger, etc.
Some nits, then looks good for this PR (with the assumption we'll clean up the logging later)
I'll write up something about the logging refactor, but for now, submitting!
Changes to merge.py to increase functionality and integrate it with previous components of the mergebot.
Initial review should focus on structural feedback first. Once structure is solidified, test feedback should come after. Signed-off-by: Jason Kuster jason@google.com