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

Issue 870803 link

Starred by 1 user

Issue metadata

Status: Duplicate
Owner:
Closed: Jan 4
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

CQ shows stale status after merging change

Project Member Reported by kjharland@google.com, Aug 3

Issue description

This is copied from a bug in Fuchsia's Jira queue at https://fuchsia.atlassian.net/browse/INTK-488, which readers may or may not have access to.

Original bug: 

   Example change: https://fuchsia-review.googlesource.com/c/garnet/+/180402

  Here's the sequence as I remember it:
  Start CQ dry run.
  All "tryjobs" passed except the first one.
  First "tryjob" failed twice (doesn't matter why).
  Rebase button.
  Start CQ dry run.
  First "tryjob" passed, shows green box over two previous fails.
  Submit to CQ.
  Merged.
  No longer shows green box over two previous fails (unexpected).

  (I'm not sure what the priority of this ought to be - it doesn't seem 
  to impact the workflow all that much, but it might cause some 
  confusion re. how a CL got checked in, if it looks like it was never 
  all green.)



 
Description: Show this description
Components: Infra>Codereview>Gerrit
Components: -Infra>Codereview>Gerrit Infra>Platform>Buildbucket>Gerrit
Cc: tandrii@chromium.org
Status: Available (was: Untriaged)
Cc: no...@chromium.org
Ah, that's the problem in plugin which assumes that last patchset of a merged CL is a generated patchset (like during rebase always OR cherry-pick strategy).
Thus, plugin only asks server for PS#1 and #2, skipping #3 **after CL status changes to "merged"**:

https://cr-buildbucket.appspot.com/_ah/api/buildbucket/v1/search?max_builds=500&fields=builds%28bucket%2Cfailure_reason%2Cid%2Cparameters_json%2Cresult%2Cstatus%2Ctags%2Curl%29&tag=buildset%3Apatch%2Fgerrit%2Ffuchsia-review.googlesource.com%2F180402%2F1
https://cr-buildbucket.appspot.com/_ah/api/buildbucket/v1/search?max_builds=500&fields=builds%28bucket%2Cfailure_reason%2Cid%2Cparameters_json%2Cresult%2Cstatus%2Ctags%2Curl%29&tag=buildset%3Apatch%2Fgerrit%2Ffuchsia-review.googlesource.com%2F180402%2F2


that said, I thought nodir@ has actually tried to fix this already, but apparently it didn't work as intended.
Cc: kjharland@google.com garymm@google.com
This bug was filed way back in August. Was nodir's fix rolled out after that? If so this is probably fixed?
is https://fuchsia-review.googlesource.com/c/garnet/+/180402 supposed to repro the problem? This CL does not have "MERGED" patchset, so I don't see how the reverted fix https://chromium-review.googlesource.com/c/infra/gerrit-plugins/buildbucket/+/1225117 is relevant

i currently cannot repro
Status: Unconfirmed (was: Available)
Yes it reproduces the problem.
It is showing tryjob results from patch sets 1-2, but not from patch set 3.

Mergedinto: 809182
Owner: no...@chromium.org
Status: Duplicate (was: Unconfirmed)
thanks, yeah it is a bug

Sign in to add a comment