Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1514)

Issue 2856273004: Milo: Increase test coverage for appengine/buildbot (Closed)

Created:
3 years, 7 months ago by Ryan Tseng
Modified:
3 years, 7 months ago
Reviewers:
nodir, hinoka
CC:
chromium-reviews, infra-reviews+luci-go_chromium.org, maruel+w_chromium.org, tandrii+luci-go_chromium.org
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

Milo: Increase test coverage for appengine/buildbot Adds new tests and slight refactoring including: * Move most of the html test data out of the buildbot module into the frontend module. Because that code is only executed by the frontend test code, it makes more sense to put it there. The intention is to do the same with the other modules. * Because of the above, make the build implementation public. * Add new test cases and test files. This yields 81.1% test coverage for the buildbot module. BUG=712431 Review-Url: https://codereview.chromium.org/2856273004 Committed: https://github.com/luci/luci-go/commit/23968256fadb58591bf2e8d1fce49eab04b721bb

Patch Set 1 #

Patch Set 2 : 73% #

Patch Set 3 : 82% #

Patch Set 4 : GoFmt #

Total comments: 26

Patch Set 5 : review #

Patch Set 6 : Review #

Patch Set 7 : Rebase, retrain #

Patch Set 8 : Imports, headers #

Total comments: 10

Patch Set 9 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1815 lines, -146 lines) Patch
M milo/appengine/buildbot/build.go View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M milo/appengine/buildbot/build_test.go View 1 2 2 chunks +10 lines, -10 lines 0 comments Download
M milo/appengine/buildbot/builder.go View 1 2 3 4 5 6 7 8 2 chunks +13 lines, -4 lines 0 comments Download
A milo/appengine/buildbot/builder_test.go View 1 2 3 4 5 6 7 8 1 chunk +93 lines, -0 lines 0 comments Download
M milo/appengine/buildbot/buildinfo.go View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -6 lines 0 comments Download
M milo/appengine/buildbot/buildinfo_test.go View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
A milo/appengine/buildbot/console_test.go View 1 2 3 4 5 6 7 1 chunk +70 lines, -0 lines 0 comments Download
A milo/appengine/buildbot/expectations/chromium_presubmit.426944.build.json View 1 chunk +550 lines, -0 lines 0 comments Download
M milo/appengine/buildbot/grpc_test.go View 1 2 3 4 chunks +77 lines, -4 lines 0 comments Download
M milo/appengine/buildbot/html.go View 1 2 3 4 5 6 7 8 2 chunks +13 lines, -8 lines 0 comments Download
M milo/appengine/buildbot/html_data.go View 1 2 1 chunk +5 lines, -90 lines 0 comments Download
A milo/appengine/buildbot/html_test.go View 1 2 3 4 5 6 7 1 chunk +109 lines, -0 lines 0 comments Download
A milo/appengine/buildbot/master_test.go View 1 2 3 4 5 6 7 1 chunk +41 lines, -0 lines 0 comments Download
M milo/appengine/buildbot/pubsub_test.go View 1 1 chunk +21 lines, -0 lines 0 comments Download
A milo/appengine/buildbot/testdata/chromium_presubmit.426944.json View 1 chunk +1 line, -0 lines 0 comments Download
M milo/appengine/common/middleware.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
A + milo/appengine/frontend/buildbot_data.go View 1 2 3 chunks +10 lines, -19 lines 0 comments Download
A milo/appengine/frontend/expectations/buildbot.build-Debug_page-_chromium_presubmit_426944.html View 1 2 3 4 5 6 1 chunk +779 lines, -0 lines 0 comments Download
M milo/appengine/frontend/main_test.go View 1 2 2 chunks +2 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 55 (44 generated)
hinoka
3 years, 7 months ago (2017-05-10 22:38:55 UTC) #20
Ryan Tseng
friendly bump
3 years, 7 months ago (2017-05-16 23:46:00 UTC) #21
nodir
didn't finish reviewing yet https://codereview.chromium.org/2856273004/diff/50001/milo/appengine/buildbot/build_test.go File milo/appengine/buildbot/build_test.go (right): https://codereview.chromium.org/2856273004/diff/50001/milo/appengine/buildbot/build_test.go#newcode52 milo/appengine/buildbot/build_test.go:52: for _, tc := range ...
3 years, 7 months ago (2017-05-18 03:17:15 UTC) #22
nodir
done reviewing https://codereview.chromium.org/2856273004/diff/50001/milo/appengine/buildbot/html_test.go File milo/appengine/buildbot/html_test.go (right): https://codereview.chromium.org/2856273004/diff/50001/milo/appengine/buildbot/html_test.go#newcode48 milo/appengine/buildbot/html_test.go:48: rc := request(c, map[string]string{}) passing nil map ...
3 years, 7 months ago (2017-05-25 15:23:04 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2856273004/130001
3 years, 7 months ago (2017-05-26 18:08:03 UTC) #40
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started once the ...
3 years, 7 months ago (2017-05-26 18:08:05 UTC) #42
Ryan Tseng
https://codereview.chromium.org/2856273004/diff/50001/milo/appengine/buildbot/build_test.go File milo/appengine/buildbot/build_test.go (right): https://codereview.chromium.org/2856273004/diff/50001/milo/appengine/buildbot/build_test.go#newcode52 milo/appengine/buildbot/build_test.go:52: for _, tc := range TestCases { On 2017/05/18 ...
3 years, 7 months ago (2017-05-26 18:10:52 UTC) #43
nodir
lgtm https://codereview.chromium.org/2856273004/diff/50001/milo/appengine/buildbot/grpc_test.go File milo/appengine/buildbot/grpc_test.go (right): https://codereview.chromium.org/2856273004/diff/50001/milo/appengine/buildbot/grpc_test.go#newcode139 milo/appengine/buildbot/grpc_test.go:139: So(err, ShouldResemble, grpc.Errorf(codes.Unauthenticated, "Unauthenticated request")) On 2017/05/26 18:10:52, ...
3 years, 7 months ago (2017-05-26 18:33:05 UTC) #44
Ryan Tseng
https://codereview.chromium.org/2856273004/diff/130001/milo/appengine/buildbot/builder.go File milo/appengine/buildbot/builder.go (right): https://codereview.chromium.org/2856273004/diff/130001/milo/appengine/buildbot/builder.go#newcode163 milo/appengine/buildbot/builder.go:163: return fmt.Sprintf("Cannot find builder %q in master %q.\nAvailable builders: ...
3 years, 7 months ago (2017-05-26 22:49:23 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2856273004/150001
3 years, 7 months ago (2017-05-26 23:40:43 UTC) #52
commit-bot: I haz the power
3 years, 7 months ago (2017-05-26 23:45:42 UTC) #55
Message was sent while issue was closed.
Committed patchset #9 (id:150001) as
https://github.com/luci/luci-go/commit/23968256fadb58591bf2e8d1fce49eab04b721bb

Powered by Google App Engine
This is Rietveld 408576698