New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 780605 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Last visit > 30 days ago
Closed: Nov 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug

Blocking:
issue 764659



Sign in to add a comment

Progress request handler doesn't handle request with gerrit details and no run ID

Project Member Reported by qyears...@chromium.org, Nov 1 2017

Issue description

$ curl 'https://tricium-prod.appspot.com/prpc/tricium.Tricium/Progress' -H 'content-type: application/json' -H 'accept: application/json' --data-binary '{"consumer": "GERRIT", "gerrit_details": {"project": "playground/gerrit-tricium/demo", "change": "playground/gerrit-tricum/demo~master~Ie226266e04b2d0ff2b08ad16577795a4297ce01a", "revision": "refs/changes/78/701778/1"}}'

Actual Response:            
invalid run ID

Expected response: Progress response, or some other error.

The fix will likely be a minor change in https://cs.chromium.org/chromium/infra/go/src/infra/tricium/appengine/frontend/rpc_progress.go.
 

Comment 1 by emso@chromium.org, Nov 2 2017

Error on the server: 

failed to parse run ID:  :: {"error":"strconv.ParseInt: parsing \"\": invalid syntax"}
Cc: -emso@chromium.org qyears...@chromium.org
Owner: emso@chromium.org
Status: Started (was: Assigned)
https://crrev.com/c/750809
Project Member

Comment 3 by bugdroid1@chromium.org, Nov 6 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/infra/infra/+/0656e799facfcba1e0827017c4de2a892f678959

commit 0656e799facfcba1e0827017c4de2a892f678959
Author: Emma <emso@chromium.org>
Date: Mon Nov 06 10:03:59 2017

Allows for no run ID in progress request for Gerrit change

Reorders the code to not process the run ID field prematurely.

Tested with the local dev server to verify that processing of a progress
request, with Gerrit details and no run ID, proceeds to look for Gerrit
change details.

Bug:780605
Change-Id: I55451e55f476e18d15640745f60eb0ad5996321c
Reviewed-on: https://chromium-review.googlesource.com/750809
Reviewed-by: Quinten Yearsley <qyearsley@chromium.org>
Reviewed-by: Marc-Antoine Ruel <maruel@chromium.org>
Commit-Queue: Emma Söderberg <emso@chromium.org>

[modify] https://crrev.com/0656e799facfcba1e0827017c4de2a892f678959/go/src/infra/tricium/appengine/frontend/rpc_progress.go

Comment 4 by emso@chromium.org, Nov 6 2017

Labels: Tricium
Status: Verified (was: Started)
Released and tested on tricium-dev, then released to tricium-prod.

Sign in to add a comment