Merge lp:~thumper/launchpad/recipe-build-email-fix into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Robert Collins on 2010-08-09 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 11316 |
| Proposed branch: | lp:~thumper/launchpad/recipe-build-email-fix |
| Merge into: | lp:launchpad |
| Diff against target: |
178 lines (+77/-29) 2 files modified
lib/lp/code/model/recipebuilder.py (+8/-2) lib/lp/code/model/tests/test_recipebuilder.py (+69/-27) |
| To merge this branch: | bzr merge lp:~thumper/launchpad/recipe-build-email-fix |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Julian Edwards (community) | release-critical | 2010-08-09 | Approve on 2010-08-09 |
| Robert Collins (community) | 2010-08-09 | Approve on 2010-08-09 | |
|
Review via email:
|
|||
Commit Message
Handle the case where the build requester does not have a preferred email.
Description of the Change
The extra build parameters is currently causing issues on the build master if the owner of a recipe
is a team without an email address specified. It is also possible to get the code into the same
state with a person who has deactivated their account.
The fix just uses a known email address and name for the situations where the build requester does
not have a preferred email.
tests:
TestRecipeBuilder
| Julian Edwards (julian-edwards) wrote : | # |
For Soyuz builds we do this:
fromaddress = format_address(
which would address mine (and lifeless's) concern about the hard-coded literal.
r/rc=me with that change.
Also, did you look at lib/lp/
Cheers.
| Julian Edwards (julian-edwards) wrote : | # |
Ok I gather you already landed this from your comment on IRC. It's fine to
file a bug and fix it next cycle.
Cheers.
| Robert Collins (lifeless) wrote : | # |
It was landed with the literal replaced with a config lookup, so
shouldn't need anything more ?
| Julian Edwards (julian-edwards) wrote : | # |
On Monday 09 August 2010 12:11:03 Robert Collins wrote:
> It was landed with the literal replaced with a config lookup, so
> shouldn't need anything more ?
It's not the same config as the Soyuz code uses and we should be consistent.
There's two configs specifically for the builddmaster emails, one for the
sender's email and one for the sender's name. Tim is only using the config
for the email.
| Robert Collins (lifeless) wrote : | # |
Ok, that makes sense.

I believe I can hand out rc, so rc=lifeless. If I can't please wait for Julian.
A possible tweak would be to use a symbolic name rather than the literal email address.