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

Issue 5431048: code review 5431048: dashboard: builder-facing implementation and tests (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 3 months ago by adg
Modified:
13 years, 3 months ago
Reviewers:
CC:
golang-dev, dsymonds
Visibility:
Public.

Description

dashboard: builder-facing implementation and tests

Patch Set 1 #

Patch Set 2 : diff -r 4b38f89d933d https://go.googlecode.com/hg #

Patch Set 3 : diff -r 4b38f89d933d https://go.googlecode.com/hg #

Patch Set 4 : diff -r 4b38f89d933d https://go.googlecode.com/hg #

Patch Set 5 : diff -r 4b38f89d933d https://go.googlecode.com/hg #

Patch Set 6 : diff -r 4b38f89d933d https://go.googlecode.com/hg #

Patch Set 7 : diff -r 4b38f89d933d https://go.googlecode.com/hg #

Patch Set 8 : diff -r 4b38f89d933d https://go.googlecode.com/hg #

Total comments: 16

Patch Set 9 : diff -r 4b38f89d933d https://go.googlecode.com/hg #

Total comments: 15

Patch Set 10 : diff -r 4b38f89d933d https://go.googlecode.com/hg #

Patch Set 11 : diff -r bcd30c187a37 https://go.googlecode.com/hg #

Unified diffs Side-by-side diffs Delta from patch set Stats (+473 lines, -16 lines) Patch
M misc/dashboard/app/app.yaml View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M misc/dashboard/app/build/build.go View 1 2 3 4 5 6 7 8 9 8 chunks +311 lines, -16 lines 0 comments Download
A misc/dashboard/app/build/key.go View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A misc/dashboard/app/build/test.go View 1 2 3 4 5 6 7 8 9 10 1 chunk +141 lines, -0 lines 0 comments Download

Messages

Total messages: 8
adg
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg
13 years, 3 months ago (2011-11-24 04:15:03 UTC) #1
dsymonds
Just looked at build.go so far. http://codereview.appspot.com/5431048/diff/3002/misc/dashboard/app/build/build.go File misc/dashboard/app/build/build.go (right): http://codereview.appspot.com/5431048/diff/3002/misc/dashboard/app/build/build.go#newcode39 misc/dashboard/app/build/build.go:39: _, err := ...
13 years, 3 months ago (2011-11-24 04:31:05 UTC) #2
adg
Thanks. http://codereview.appspot.com/5431048/diff/3002/misc/dashboard/app/build/build.go File misc/dashboard/app/build/build.go (right): http://codereview.appspot.com/5431048/diff/3002/misc/dashboard/app/build/build.go#newcode39 misc/dashboard/app/build/build.go:39: _, err := datastore.NewQuery("Commit"). On 2011/11/24 04:31:05, dsymonds ...
13 years, 3 months ago (2011-11-24 04:57:31 UTC) #3
dsymonds
Here's the rest of the review. http://codereview.appspot.com/5431048/diff/3002/misc/dashboard/app/build/build.go File misc/dashboard/app/build/build.go (right): http://codereview.appspot.com/5431048/diff/3002/misc/dashboard/app/build/build.go#newcode100 misc/dashboard/app/build/build.go:100: // It must ...
13 years, 3 months ago (2011-11-24 06:20:28 UTC) #4
adg
http://codereview.appspot.com/5431048/diff/3/misc/dashboard/app/build/build.go File misc/dashboard/app/build/build.go (right): http://codereview.appspot.com/5431048/diff/3/misc/dashboard/app/build/build.go#newcode215 misc/dashboard/app/build/build.go:215: tc := *com // clone so we don't clobber ...
13 years, 3 months ago (2011-11-24 23:30:27 UTC) #5
dsymonds
LGTM http://codereview.appspot.com/5431048/diff/3/misc/dashboard/app/build/build.go File misc/dashboard/app/build/build.go (right): http://codereview.appspot.com/5431048/diff/3/misc/dashboard/app/build/build.go#newcode230 misc/dashboard/app/build/build.go:230: // if this isn't the first Commit test ...
13 years, 3 months ago (2011-11-25 01:09:24 UTC) #6
adg
*** Submitted as http://code.google.com/p/go/source/detail?r=41974a4eed1f *** dashboard: builder-facing implementation and tests R=golang-dev, dsymonds CC=golang-dev http://codereview.appspot.com/5431048
13 years, 3 months ago (2011-11-25 01:53:13 UTC) #7
adg
13 years, 3 months ago (2011-11-25 01:53:32 UTC) #8
On 25 November 2011 12:09,  <dsymonds@golang.org> wrote:
> LGTM
>
>
> http://codereview.appspot.com/5431048/diff/3/misc/dashboard/app/build/build.go
> File misc/dashboard/app/build/build.go (right):
>
>
http://codereview.appspot.com/5431048/diff/3/misc/dashboard/app/build/build.g...
> misc/dashboard/app/build/build.go:230: // if this isn't the first Commit
> test the parent commit exists
> On 2011/11/24 23:30:29, adg wrote:
>>
>> On 2011/11/24 06:20:28, dsymonds wrote:
>> > seems this should happen *before* the datastore.Put in line 227.
>
>> Does it matter? If it fails then the whole transaction is rolled back.
>
> It doesn't matter for correctness, but it'll save an RPC if there's
> something weird going on. Up to you.

Clarity of code is more important to me than saving an RPC in an
unusual failure state.
Sign in to reply to this message.

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