New issue
Advanced search Search tips

Issue 888057 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Oct 18
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

tryjob results: add support for "edit" patchset

Project Member Reported by olivierrobin@chromium.org, Sep 21

Issue description

On https://chromium-review.googlesource.com/c/chromium/src/+/1234333
the CQ status seems frozen and does not reflect the trybot activity.

jbudorick@ can see the correct status on the same page.
 
Screen Shot 2018-09-21 at 8.21.10 PM.png
457 KB View Download
Owner: jbudorick@chromium.org
Status: Assigned (was: Untriaged)
jbudorick, could you take a look at this issue?
Cc: jbudorick@chromium.org
Labels: DevX-Troopers
Owner: ----
I'm probably not the best person to look at it. over to the DevX trooper queue for triage.
Status: Untriaged (was: Assigned)
Cc: tandrii@chromium.org
Hi Andrii, could you help on this issue? Or who should be the right person to handle this?
Components: Infra>Platform>CQ
Summary: CQ status doesn't reflect Gerrit view of tryjob results on cl/1234333 (was: Gerrit does not reflect the CQ status on cl/1234333)
So, if CQ status seems frozen, it's not Gerrit, but CQ status which doesn't reflect Gerrit.

But, can you elaborate what exactly is stale in CQ status?
And which patchset was this?

Note that CQ status may easily be 1-2 minutes behind.
Status: Unconfirmed (was: Untriaged)
> And which patchset was this? 

This is about which patchset does gerrit display -- your screenshot sadly doesn't include that info. If  I were to guess,
https://chromium-review.googlesource.com/c/chromium/src/+/1234333/11
looks like what I see in schreenshot. In this case, you were basically looking at stale patchset.
Sotty it was not clear.
Everything on the screenshot is on PS 18 (hence the issue).

Not that the CL is now only showing the status of PS 19, even if I change the PS displayed. 

I also still have the "Choose trybots" button, even if the CL is submitted (I don't know if it is an issue, but I don't have it on other submitted CL).
Screen Shot 2018-10-05 at 7.36.51 AM.png
272 KB View Download
Screen Shot 2018-10-05 at 7.36.44 AM.png
271 KB View Download
Screen Shot 2018-10-05 at 7.36.35 AM.png
274 KB View Download
Screen Shot 2018-10-05 at 7.36.25 AM.png
256 KB View Download
Cc: no...@chromium.org
Wrt to Gerrit tryjobs display, +Nodir@

> Not that the CL is now only showing the status of PS 19, even if I change the PS displayed. 

That's weird. In my case, the displayed tryjobs do change, though with delay. This may be a bug in itself.

> I also still have the "Choose trybots" button
Hm, that's possibly deserving its own tracking bug in Infra>Codereview>Gerrit>BUildbucket.


Btw, I also see on screenshots that you have a butler (or whatever its name) chrome extension installed which adds overlay of owners and other stuff. Maybe it interferes from Gerrit plugin for displaying tryjobs?
I tried without the butler, but I forgot to redisable for the latest screenshots.

Here is an exemple with extension disabled
Screen Shot 2018-10-05 at 8.19.08 PM.png
243 KB View Download
The last screenshot is for PS#16, not #18. In my case, it looks just fine:


Screenshot from 2018-10-05 11-46-08.png
92.9 KB View Download
PS 18 is the same for me, no bots

For me, this is not really an issue.
The CL is submitted and I don't have the problem on my other CL.
So I am fine to won't fix it if you think it is only a one time issue.
Screen Shot 2018-10-05 at 9.01.31 PM.png
236 KB View Download
Cc: -jbudorick@chromium.org
Components: -Infra>Codereview>Gerrit -Infra>Platform>CQ Infra>Platform>Buildbucket>Gerrit
Labels: -OS-iOS
Summary: Gerrit view of tryjob results no or wrong results (was: CQ status doesn't reflect Gerrit view of tryjob results on cl/1234333)
I doubt this is a one time issue, but I don't know if is just you and more widespread.

If you don't mind providing more info, share browser console log, perhaps there are some errors there? Also, it may be helpful to see network requests made, particularly if any failed or took too long time.
Summary: tryjob results: add support for "edit" patchset (was: Gerrit view of tryjob results no or wrong results)
olivierrobin's screenshots say "Showing jobs from patch set **edit**", emphasis mine.
tandrii's screenshots say "Showing jobs from patch set 18".
olivierrobin, is your CL in editing mode?

looks like the plugin needs to be updated to skip "edit" patchset
Status: Available (was: Unconfirmed)
Labels: -DevX-Troopers
I don't think I am in edit mode.
At least I don't have the open/publish buttons at the top.

Note that on the initial issue, I was stuck at PS11, which is not an edit PS.
I did all these edits, whitespace changes trying to unblock the trybots (I did not know they were working).

Also, this CL was initially based on another CL (I think it was a chain of 4) and I had some trouble rebasing them (my fault, not because of bugs) but I may have generated an unexpected state.

I screenshot the errors in console (There are a lot of info line that I don't think are interesting, (attached text file).

The only failing network connection is 
avatar?s=32

There does not seem to be query taking to much time.
There are ongoing search? and current? queries that continue to be triggered.
chromium-review.googlesource.com-1538767953595
32.1 KB Download
Screen Shot 2018-10-05 at 9.35.25 PM.png
369 KB View Download
please add a breakpoint in _computeValidPatchNums of
https://chromium-review.googlesource.com/plugins/buildbucket/static/cr-buildbucket-view.js

normally, the returned patchNums is an array of numbers, but your case it contains a string. This is unusual. Please paste value of change.revisions
Screenshot attached.

Full JSON
https://paste.googleplex.com/6585621720072192
Screen Shot 2018-10-05 at 9.52.42 PM.png
709 KB View Download
patchNums at the end is
["edit"]
Result of the debug

in https://chromium-review.googlesource.com/plugins/buildbucket/static/cr-buildbucket-view.js

The first revision does not have a number, so it is not filtered out by line 244 (_number is "edit")

As kind is not a trivial one, it breaks on line 252.

So only the trybots for path edit are displayed (and there are non of them).


it would also be interesting to know why this works differently for tandrii@ who can see trybots at patch 18
Owner: no...@chromium.org
Status: Started (was: Available)
i don't see "edit" revision. I think only the author can see it.

https://chromium-review.googlesource.com/c/infra/gerrit-plugins/buildbucket/+/1265341


Project Member

Comment 23 by bugdroid1@chromium.org, Oct 5

The following revision refers to this bug:
  https://chromium.googlesource.com/infra/gerrit-plugins/buildbucket/+/0a82aa4616bdf852422c18ef8dd5a2b77ac9c396

commit 0a82aa4616bdf852422c18ef8dd5a2b77ac9c396
Author: Nodir Turakulov <nodir@google.com>
Date: Fri Oct 05 21:56:30 2018

Add support for edit mode

A revision in edit mode has _number == "edit".
Skip such revisions.

Bug:  888057 
Change-Id: I4bbce9886bfd5f26b9723b88510d7a301469783f
Reviewed-on: https://chromium-review.googlesource.com/c/1265341
Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org>

[modify] https://crrev.com/0a82aa4616bdf852422c18ef8dd5a2b77ac9c396/test/cr-buildbucket-view_test.html
[modify] https://crrev.com/0a82aa4616bdf852422c18ef8dd5a2b77ac9c396/src/main/resources/static/cr-buildbucket-view.js

the fix was deployed to canary instance. Please ensure that the bug is fixed in 
https://canary-chromium-review.googlesource.com/c/chromium/src/+/1234333
(note different host name)
Yes, it works

Thanks
Status: Fixed (was: Started)
olivierrobin, this will deployed some time ago, please verify that this is indeed fixed
Status: Verified (was: Fixed)
As mentionned in #25, it works now (I did not have the issue again).

Sign in to add a comment