Merge lp:~jcsackett/charmworld/better-jobs into lp:charmworld
Status: | Merged |
---|---|
Approved by: | j.c.sackett |
Approved revision: | 471 |
Merged at revision: | 464 |
Proposed branch: | lp:~jcsackett/charmworld/better-jobs |
Merge into: | lp:charmworld |
Diff against target: |
195 lines (+61/-8) 5 files modified
charmworld/jobs/askubuntu.py (+7/-1) charmworld/jobs/github.py (+16/-2) charmworld/jobs/review.py (+7/-0) charmworld/jobs/tests/test_askubuntu.py (+19/-2) charmworld/jobs/tests/test_github.py (+12/-3) |
To merge this branch: | bzr merge lp:~jcsackett/charmworld/better-jobs |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Gui Bot | continuous-integration | Approve | |
Aaron Bentley (community) | Approve | ||
Review via email: mp+195443@code.launchpad.net |
Commit message
Handle some failure modes with better logging.
Description of the change
This branch adds some exception handling and logging to known failure modes we
want to keep track of, as well as some better request handling.
charmworld/
-------
* Added simple backoff parameter handling, which stackexchange API sets on some
responses.
* Added handling of previous error condition wherein job couldn't connect to API
servers. This is now logged as an error.
charmworld/
-------
* Added handling of limit rates in github requests, and logs instances of
exceeding the limit as an error.
* Added handling of previous error condition wherein job couldn't connect to API
servers. This is now logged as an error.
charmworld/
-------
* Logs missing lp_credentials file, ie a filepath is provided but no file
exists. In this instance also sets the lp_credentials var to None so we'll
login anonymously, rather than accidentally launching lynx.
* Logs whether the credentials file exists and we're logging in as charmbot, or
doesn't exist and we're logging in anonymously.
Looks good. Thanks for the tests.