Closed Bug 1074228 Opened 10 years ago Closed 10 years ago

Build start email should differentiate the person who created it and the person who started it

Categories

(Release Engineering :: Release Automation: Other, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Sylvestre, Assigned: Sylvestre)

References

Details

Attachments

(2 files, 2 obsolete files)

Given my timezone, it is common that I prepare the ship-it build and I rely on Lukas, Lawrence or Bhavana to start the build for me once the tree are green.

In the email, only the person who created the job is listed. In case author != starter, the second should be displayed in the email.

Example:
---

A new build has been submitted through ship-it:
mozilla commit: https://hg.mozilla.org/releases/mozilla-release/rev/f9ccc64ca17d

lmandel@mozilla.com
Build started by sledru@mozilla.com
---

This might require a new field in the database.
Summary: Build start email should differentiate the person who created it and the person who start it → Build start email should differentiate the person who created it and the person who started it
Assignee: nobody → sledru
Add a new field in the database to store who is starting the build.

It is now common that a release manager in Europe creates the job and an other release manager (let's say in Toronto or San Francisco) starts the build once the trees are green.
Attachment #8518233 - Flags: review?(rail)
Attachment #8518233 - Flags: review?(bhearsum)
Update release runner to send the info in the email.
Attachment #8518235 - Flags: review?(rail)
Attachment #8518235 - Flags: review?(bhearsum)
Attachment #8518233 - Flags: review?(rail) → review+
Attachment #8518235 - Flags: review?(rail) → review+
I will need your help to put that in production since the database needs to be updated.
Comment on attachment 8518233 [details] [diff] [review]
0001-Bug-1074228-Store-the-name-of-the-person-who-is-star.patch

Review of attachment 8518233 [details] [diff] [review]:
-----------------------------------------------------------------

::: kickoff/views/releases.py
@@ +133,5 @@
>              r.comment = form.comment.data
> +            if r.submitter != starter:
> +                # A different person created the build and started it
> +                # We want to store this information for the email
> +                r.starter = starter

Why do we only want to store the starter if they're different than the submitter? Shouldn't we be storing this every time?
Comment on attachment 8518235 [details] [diff] [review]
0001-Bug-1074228-If-the-person-who-started-the-build-is-d.patch

Review of attachment 8518235 [details] [diff] [review]:
-----------------------------------------------------------------

::: buildfarm/release/release-runner.py
@@ +231,5 @@
>      contentMail += "\n" + r["submitter"] + "\n"
>  
> +    if r["starter"] and r["submitter"] != r["starter"]:
> +        # The person who is starting the build is not the same who created
> +        contentMail += "\nStarted by " + r["starter"] + "\n"

I think we should show this all the time, too. It seems like it would be confusing to only have "Started by" in some of the e-mails.
(In reply to Ben Hearsum [:bhearsum] from comment #4)
> Why do we only want to store the starter if they're different than the
> submitter? Shouldn't we be storing this every time?
Why not. I don't mind.
I considered that it is interesting to store it only if it is different.
Let me know what you prefer!
(In reply to Ben Hearsum [:bhearsum] from comment #5)
> I think we should show this all the time, too. It seems like it would be
> confusing to only have "Started by" in some of the e-mails.
In most of the cases (when Lukas or Lawrence are managing beta, or half of the time for me), we will have:
Created by foo
Started by foo

Is it really interesting in this case?
(In reply to Sylvestre Ledru [:sylvestre] from comment #7)
> (In reply to Ben Hearsum [:bhearsum] from comment #5)
> > I think we should show this all the time, too. It seems like it would be
> > confusing to only have "Started by" in some of the e-mails.
> In most of the cases (when Lukas or Lawrence are managing beta, or half of
> the time for me), we will have:
> Created by foo
> Started by foo
> 
> Is it really interesting in this case?

It's not that it's interesting, it's that not having it is confusing. If some e-mails say "Started by" I start to get the expectation that they will tell me who started a release. When I see other e-mails that don't tell me explicitly, I could get confused. I think we may as well do this since it's only a single extra line in the e-mail.

(In reply to Sylvestre Ledru [:sylvestre] from comment #6)
> (In reply to Ben Hearsum [:bhearsum] from comment #4)
> > Why do we only want to store the starter if they're different than the
> > submitter? Shouldn't we be storing this every time?
> Why not. I don't mind.
> I considered that it is interesting to store it only if it is different.
> Let me know what you prefer!

Yeah, let's always store it. Otherwise we're making an assumption now (creator == starter if starter isn't provided) that may not hold true in the future.
OK, thanks for the feedback. I will update my patch with these two changes
Attachment #8518233 - Attachment is obsolete: true
Attachment #8518233 - Flags: review?(bhearsum)
Attachment #8520472 - Flags: review?(bhearsum)
Attachment #8518235 - Attachment is obsolete: true
Attachment #8518235 - Flags: review?(bhearsum)
Attachment #8520473 - Flags: review?(bhearsum)
Comment on attachment 8520473 [details] [diff] [review]
0001-Bug-1074228-If-the-person-who-started-the-build-is-d.patch

Review of attachment 8520473 [details] [diff] [review]:
-----------------------------------------------------------------

Make sure you don't land this one until the ship it patch is in production.
Attachment #8520473 - Flags: review?(bhearsum) → review+
Attachment #8520472 - Flags: review?(bhearsum) → review+
This was pushed to production today, including the necessary database upgrade.
Comment on attachment 8520473 [details] [diff] [review]
0001-Bug-1074228-If-the-person-who-started-the-build-is-d.patch

https://hg.mozilla.org/build/tools/rev/4215f55209aa
Attachment #8520473 - Flags: checked-in+
Depends on: 1098040
No longer depends on: 1098040
That works (cf Build of Fennec-34.0b8-build3)
---
Created by lmandel@mozilla.com

Started by lmandel@mozilla.com
---
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: