Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(147)

Issue 154080043: code review 154080043: dashboard/app: ignore, try not to create partial Commits (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 6 months ago by rsc
Modified:
10 years, 6 months ago
Reviewers:
adg, cmang
CC:
cmang, golang-codereviews
Visibility:
Public.

Description

dashboard/app: ignore, try not to create partial Commits It looks like the partial Commits are coming from the build breakages mails. If you have commit A newer than commit B, then there are two code paths depending on which reports its build result first. For slow development, B finishes before A is committed, so when A notices a failure it checks to see if B was okay. That code path seems to be okay. For submit of back-to-back changes, typically A finishes before B, so when B notices an okay it checks to see if A failed. That code path seems to zero the Commit for A while trying to set its FailNotificationSent to true. It does (did) succeed in setting FailNotificationSent to true, it just zeroed everything else. This CL adds code to refuse to do the datastore.Put to update FailNotificationSent if the Commit info is incomplete. It also tries to ignore Num=0 records, but that may not be as important anymore.

Patch Set 1 #

Patch Set 2 : diff -r 99379f9da939067a0856be9fc4f448a0e4eb3a43 https://code.google.com/p/go.tools #

Patch Set 3 : diff -r 99379f9da939067a0856be9fc4f448a0e4eb3a43 https://code.google.com/p/go.tools #

Patch Set 4 : diff -r 99379f9da939067a0856be9fc4f448a0e4eb3a43 https://code.google.com/p/go.tools #

Patch Set 5 : diff -r 99379f9da939067a0856be9fc4f448a0e4eb3a43 https://code.google.com/p/go.tools #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -1 line) Patch
M dashboard/app/build/handler.go View 1 1 chunk +7 lines, -1 line 0 comments Download
M dashboard/app/build/notify.go View 1 2 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 6
cmang
LGTM
10 years, 6 months ago (2014-10-07 18:08:46 UTC) #1
rsc
Hello cmang@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go.tools
10 years, 6 months ago (2014-10-07 19:28:42 UTC) #2
cmang
On 2014/10/07 19:28:42, rsc wrote: > Hello mailto:cmang@golang.org (cc: mailto:golang-codereviews@googlegroups.com), > > I'd like you ...
10 years, 6 months ago (2014-10-07 19:35:35 UTC) #3
rsc
And there it is: 2014-10-07 12:08:00.165 refusing to notify with com={PackagePath: Hash:c7857de341434044e406f03ca4c29dbcb66e55df ParentHash: Num:0 User: ...
10 years, 6 months ago (2014-10-07 19:37:12 UTC) #4
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=117a6816d186&repo=tools *** dashboard/app: ignore, try not to create partial Commits It looks ...
10 years, 6 months ago (2014-10-07 19:37:35 UTC) #5
adg
10 years, 6 months ago (2014-10-08 02:13:06 UTC) #6
Message was sent while issue was closed.
LGTM

Great analysis Russ. Thank you.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b