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

Issue 1151473003: Better attempt at an appengine wrapper. (Closed)

Created:
5 years, 7 months ago by iannucci
Modified:
5 years, 7 months ago
Reviewers:
dnj, Vadim Sh., M-A Ruel
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/infra/infra.git@master
Target Ref:
refs/heads/master
Project:
infra
Visibility:
Public.

Description

Better attempt at an appengine wrapper. Includes implementation using old-style appengine, and will be able to be expanded to include support for new-style appengine SDK. I also have a partial in-memory testing implementation in the wings which will be a followup CL. R=maruel@chromium.org, vadimsh@chromium.org BUG= Committed: https://chromium.googlesource.com/infra/infra/+/f5450c53963f2883920e83ab2564b55ea87a6d64

Patch Set 1 #

Patch Set 2 : mathrand bug #

Patch Set 3 : fix some comments #

Patch Set 4 : typo #

Total comments: 34

Patch Set 5 : fixes #

Patch Set 6 : pointer! #

Total comments: 52

Patch Set 7 : Fix comments #

Patch Set 8 : better typecheck #

Total comments: 36

Patch Set 9 : fixes #

Total comments: 16

Patch Set 10 : more fixes #

Total comments: 4

Patch Set 11 : fix comment and test #

Patch Set 12 : fix comment and test #

Patch Set 13 : fix coverage numbers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1613 lines, -211 lines) Patch
D go/src/infra/gae/libs/context/context.go View 1 chunk +0 lines, -108 lines 0 comments Download
D go/src/infra/gae/libs/context/context.infra_testing View 1 chunk +0 lines, -3 lines 0 comments Download
D go/src/infra/gae/libs/context/doc.go View 1 chunk +0 lines, -13 lines 0 comments Download
D go/src/infra/gae/libs/context/goon.go View 1 chunk +0 lines, -84 lines 0 comments Download
M go/src/infra/gae/libs/meta/eg.go View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -5 lines 0 comments Download
A go/src/infra/gae/libs/wrapper/brokenfeatures.go View 1 2 3 4 5 6 7 8 9 1 chunk +157 lines, -0 lines 0 comments Download
A go/src/infra/gae/libs/wrapper/brokenfeatures_test.go View 1 2 3 4 5 6 7 8 9 1 chunk +126 lines, -0 lines 0 comments Download
A go/src/infra/gae/libs/wrapper/context.go View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download
A go/src/infra/gae/libs/wrapper/datastore.go View 1 2 3 4 5 6 7 8 1 chunk +139 lines, -0 lines 0 comments Download
A go/src/infra/gae/libs/wrapper/doc.go View 1 2 3 4 1 chunk +40 lines, -0 lines 0 comments Download
A go/src/infra/gae/libs/wrapper/dummy.go View 1 chunk +185 lines, -0 lines 0 comments Download
A go/src/infra/gae/libs/wrapper/dummy_test.go View 1 2 3 4 5 6 7 8 9 10 1 chunk +88 lines, -0 lines 0 comments Download
A + go/src/infra/gae/libs/wrapper/gae/commonErrors/commonErrors.infra_testing View 1 2 3 4 5 6 7 8 0 chunks +-1 lines, --1 lines 0 comments Download
A go/src/infra/gae/libs/wrapper/gae/commonErrors/errors.go View 1 2 3 4 5 6 7 8 1 chunk +42 lines, -0 lines 0 comments Download
A go/src/infra/gae/libs/wrapper/gae/context.go View 1 2 3 1 chunk +32 lines, -0 lines 0 comments Download
A go/src/infra/gae/libs/wrapper/gae/datastore.go View 1 2 3 4 5 6 1 chunk +118 lines, -0 lines 0 comments Download
A go/src/infra/gae/libs/wrapper/gae/doc.go View 1 chunk +7 lines, -0 lines 0 comments Download
A + go/src/infra/gae/libs/wrapper/gae/gae.infra_testing View 1 2 3 4 5 6 7 8 0 chunks +-1 lines, --1 lines 0 comments Download
A go/src/infra/gae/libs/wrapper/gae/globalinfo.go View 1 2 3 4 5 6 1 chunk +87 lines, -0 lines 0 comments Download
A go/src/infra/gae/libs/wrapper/gae/memcache.go View 1 2 3 4 5 6 1 chunk +111 lines, -0 lines 0 comments Download
A go/src/infra/gae/libs/wrapper/gae/taskqueue.go View 1 2 3 4 5 6 1 chunk +68 lines, -0 lines 0 comments Download
A go/src/infra/gae/libs/wrapper/globalinfo.go View 1 2 3 4 5 6 7 8 9 10 1 chunk +80 lines, -0 lines 0 comments Download
A go/src/infra/gae/libs/wrapper/mathrand.go View 1 2 3 4 5 6 7 1 chunk +41 lines, -0 lines 0 comments Download
A go/src/infra/gae/libs/wrapper/memcache.go View 1 2 3 4 5 6 7 8 1 chunk +106 lines, -0 lines 0 comments Download
A go/src/infra/gae/libs/wrapper/taskqueue.go View 1 2 3 4 5 6 7 8 1 chunk +79 lines, -0 lines 0 comments Download
A go/src/infra/gae/libs/wrapper/taskqueue_testable.go View 1 2 3 4 5 6 1 chunk +26 lines, -0 lines 0 comments Download
A go/src/infra/gae/libs/wrapper/testable.go View 1 chunk +10 lines, -0 lines 0 comments Download
A go/src/infra/gae/libs/wrapper/time.go View 1 2 3 4 5 6 7 1 chunk +46 lines, -0 lines 0 comments Download
A go/src/infra/gae/libs/wrapper/wrapper.infra_testing View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (3 generated)
iannucci
PTAL. Unfortunately we're tied to the old 'appengine' types right now. AFAIK, there's no way ...
5 years, 7 months ago (2015-05-23 22:01:22 UTC) #1
iannucci
+dnj who was interested
5 years, 7 months ago (2015-05-23 23:16:27 UTC) #3
Vadim Sh.
https://codereview.chromium.org/1151473003/diff/60001/go/src/infra/gae/libs/wrapper/datastore.go File go/src/infra/gae/libs/wrapper/datastore.go (right): https://codereview.chromium.org/1151473003/diff/60001/go/src/infra/gae/libs/wrapper/datastore.go#newcode32 go/src/infra/gae/libs/wrapper/datastore.go:32: // DSNewKeyer allows you to generate a new *datastore.Key ...
5 years, 7 months ago (2015-05-24 19:01:57 UTC) #4
iannucci
https://codereview.chromium.org/1151473003/diff/60001/go/src/infra/gae/libs/wrapper/datastore.go File go/src/infra/gae/libs/wrapper/datastore.go (right): https://codereview.chromium.org/1151473003/diff/60001/go/src/infra/gae/libs/wrapper/datastore.go#newcode32 go/src/infra/gae/libs/wrapper/datastore.go:32: // DSNewKeyer allows you to generate a new *datastore.Key ...
5 years, 7 months ago (2015-05-24 20:04:32 UTC) #5
Vadim Sh.
lgtm, but you should probably wait for review from M-A too, since I'm not a ...
5 years, 7 months ago (2015-05-24 20:15:36 UTC) #6
iannucci
On 2015/05/24 at 20:15:36, vadimsh wrote: > lgtm, but you should probably wait for review ...
5 years, 7 months ago (2015-05-24 20:19:41 UTC) #7
M-A Ruel
https://codereview.chromium.org/1151473003/diff/100001/go/src/infra/gae/libs/meta/eg.go File go/src/infra/gae/libs/meta/eg.go (right): https://codereview.chromium.org/1151473003/diff/100001/go/src/infra/gae/libs/meta/eg.go#newcode8 go/src/infra/gae/libs/meta/eg.go:8: "golang.org/x/net/context" Why golang.org and github.com not be grouped together. ...
5 years, 7 months ago (2015-05-25 17:14:52 UTC) #8
iannucci
PTAL https://codereview.chromium.org/1151473003/diff/100001/go/src/infra/gae/libs/meta/eg.go File go/src/infra/gae/libs/meta/eg.go (right): https://codereview.chromium.org/1151473003/diff/100001/go/src/infra/gae/libs/meta/eg.go#newcode8 go/src/infra/gae/libs/meta/eg.go:8: "golang.org/x/net/context" On 2015/05/25 at 17:14:50, M-A Ruel wrote: ...
5 years, 7 months ago (2015-05-26 18:25:07 UTC) #9
iannucci
FTR; I'm waiting for M-A for final stamp :) (not being impatient, just making sure ...
5 years, 7 months ago (2015-05-26 22:11:02 UTC) #10
M-A Ruel
https://codereview.chromium.org/1151473003/diff/100001/go/src/infra/gae/libs/meta/eg.go File go/src/infra/gae/libs/meta/eg.go (right): https://codereview.chromium.org/1151473003/diff/100001/go/src/infra/gae/libs/meta/eg.go#newcode8 go/src/infra/gae/libs/meta/eg.go:8: "golang.org/x/net/context" On 2015/05/26 18:25:05, iannucci wrote: > On 2015/05/25 ...
5 years, 7 months ago (2015-05-27 00:27:12 UTC) #11
iannucci
ptal, I actually did the save-a-line for everything before, but somehow lost it (I think ...
5 years, 7 months ago (2015-05-27 02:40:57 UTC) #12
iannucci
oh, and all the imports are in goimports order already. standardizing on whatever goimports spits ...
5 years, 7 months ago (2015-05-27 02:45:00 UTC) #13
M-A Ruel
https://chromiumcodereview.appspot.com/1151473003/diff/160001/go/src/infra/gae/libs/wrapper/brokenfeatures.go File go/src/infra/gae/libs/wrapper/brokenfeatures.go (right): https://chromiumcodereview.appspot.com/1151473003/diff/160001/go/src/infra/gae/libs/wrapper/brokenfeatures.go#newcode117 go/src/infra/gae/libs/wrapper/brokenfeatures.go:117: // TODO(riannucci): Profile this to see if it's having ...
5 years, 7 months ago (2015-05-27 12:31:46 UTC) #14
iannucci
ptal again. I think I actually got everything this time. https://chromiumcodereview.appspot.com/1151473003/diff/160001/go/src/infra/gae/libs/wrapper/brokenfeatures.go File go/src/infra/gae/libs/wrapper/brokenfeatures.go (right): https://chromiumcodereview.appspot.com/1151473003/diff/160001/go/src/infra/gae/libs/wrapper/brokenfeatures.go#newcode117 ...
5 years, 7 months ago (2015-05-27 17:06:55 UTC) #15
M-A Ruel
lgtm https://chromiumcodereview.appspot.com/1151473003/diff/180001/go/src/infra/gae/libs/wrapper/dummy_test.go File go/src/infra/gae/libs/wrapper/dummy_test.go (right): https://chromiumcodereview.appspot.com/1151473003/diff/180001/go/src/infra/gae/libs/wrapper/dummy_test.go#newcode84 go/src/infra/gae/libs/wrapper/dummy_test.go:84: So(GetTimeNow(c), ShouldHappenAfter, now) OnOrAfter https://chromiumcodereview.appspot.com/1151473003/diff/180001/go/src/infra/gae/libs/wrapper/globalinfo.go File go/src/infra/gae/libs/wrapper/globalinfo.go (right): ...
5 years, 7 months ago (2015-05-27 17:14:58 UTC) #16
iannucci
fixed. thanks for the review! https://chromiumcodereview.appspot.com/1151473003/diff/180001/go/src/infra/gae/libs/wrapper/dummy_test.go File go/src/infra/gae/libs/wrapper/dummy_test.go (right): https://chromiumcodereview.appspot.com/1151473003/diff/180001/go/src/infra/gae/libs/wrapper/dummy_test.go#newcode84 go/src/infra/gae/libs/wrapper/dummy_test.go:84: So(GetTimeNow(c), ShouldHappenAfter, now) On ...
5 years, 7 months ago (2015-05-27 17:25:07 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1151473003/210030
5 years, 7 months ago (2015-05-27 17:25:37 UTC) #20
commit-bot: I haz the power
5 years, 7 months ago (2015-05-27 17:28:59 UTC) #21
Message was sent while issue was closed.
Committed patchset #13 (id:210030) as
https://chromium.googlesource.com/infra/infra/+/f5450c53963f2883920e83ab2564b...

Powered by Google App Engine
This is Rietveld 408576698