| commit | 71aba0a6cd7d6264e0ecdd38afe5b69db8c8556f | [log] [tgz] |
|---|---|---|
| author | vadimsh <vadimsh@chromium.org> | Tue Jun 20 23:04:05 2017 |
| committer | Commit Bot <commit-bot@chromium.org> | Tue Jun 20 23:04:05 2017 |
| tree | f16c7515d26b8a5181a56df577a8992ef1327686 | |
| parent | 985d9cf9b317c12615370ca4ebdebe44d3658a81 [diff] |
token-server: Fix panic when generating machine token for unrecognized machine.
In this case operation returns MintMachineTokenResponse{ErrorCode: ...} (since
there's no way to return structured error responses via grpc.Error).
BigQuery logging code attempted to log such response and paniced on nil
dereference when attempting to examine the token.
Fix this, add a test and a bunch of asserts.
R=iannucci@chromium.org, smut@google.com
BUG=732467
Review-Url: https://codereview.chromium.org/2943403003
go get -u github.com/luci/luci-go/client/cmd/... go get -u github.com/luci/luci-go/server/cmd/...
/common/... and /server/..../appengine/..., /client/... and /server/...; for example, the structures used by the server APIs. These are inherently APIs./appengine/....go1 contains the stable code.master constains the latest code.user.email and user.name are configured in git config.go get -u -t github.com/luci/luci-go/client/...go get -u github.com/maruel/pre-commit-go/cmd/... && pcgRun the following to setup the code review tool and create your first review:
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git $HOME/src/depot_tools export PATH="$PATH:$HOME/src/depot_tools" cd $GOROOT/github.com/luci/luci-go git checkout -b work origin/master # hack hack git commit -a -m "This is awesome\nR=joe@example.com" # This will ask for your Google Account credentials. git cl upload -s # Wait for LGTM over email. # Check the commit queue box in codereview website. # Wait for the change to be tested and landed automatically.
Use git cl help and git cl help <cmd> for more details.