Closed Bug 1460256 Opened 6 years ago Closed 6 years ago

Update BuildDuty report dashboard to use the new component.

Categories

(Infrastructure & Operations Graveyard :: CIDuty, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dlabici, Assigned: dlabici)

Details

Attachments

(4 files)

The BuildDuty Bugs Dashboard[1] doesn't pull bugs correctly anymore since our component was moved from RelEng to Infra&Ops.

Changes will be needed in buildduty_report.py[2] to pull the data from the correct product. 


[1] https://secure.pub.build.mozilla.org/builddata/reports/slave_health/buildduty_report.html
[2] https://dxr.mozilla.org/build-central/source/slave_health/scripts/buildduty_report.py?q=buildduty_report.py
Assignee: nobody → dlabici
Changes do:
===========
- Changed product name for options={} and loan_request_options={}
- Changed bugzilla rest api fletch url for options={}
- Changed how loan_request_options={} was written, to resemble options={} and keep consistency.
Attachment #8974384 - Flags: review?(mtabara)
Attachment #8974384 - Flags: review?(jlund)
Changes left to be done:
========================
Get "Loan Requests" component back, update the rest api url for loaners.
Comment on attachment 8974384 [details] [diff] [review]
Change Parent and Bugzilla API fletch link.

Review of attachment 8974384 [details] [diff] [review]:
-----------------------------------------------------------------

nice catch with %26" :)
Attachment #8974384 - Flags: review?(mtabara)
Attachment #8974384 - Flags: review?(jlund)
Attachment #8974384 - Flags: review+
Other patch can be ignored, as this contains all changes.
Attachment #8974394 - Flags: review?(jlund)
Comment on attachment 8974394 [details] [diff] [review]
Added changes to fetch loaners using status_whiteboard

Review of attachment 8974394 [details] [diff] [review]:
-----------------------------------------------------------------

putting r- into the parts I mentioned are  commented on.

::: scripts/buildduty_report.py
@@ +183,4 @@
>                          )
>      parser.add_argument("-v", "--verbose", action="store_const", const=logging.DEBUG, dest="log_level")
>      parser.add_argument("-q", "--quiet", action="store_const", const=logging.WARN, dest="log_level")
> +    parser.add_argument("-l", "--logfatus=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED&component=Buildduty&product=Infrastructure %26 Operations&resolution=---&status_whiteboard=loaner&status_whiteboard_type=allwordssubstrile", dest="logfile")

This seems like weird syntax.

--logfatus ?

does space work in: "Infrastructure %26 Operations" ?

resolution=---&status_whiteboard=loaner ?

allwordssubstrile ?

I may not be the best to review this as I'm not familiar with bugzilla url syntax and these command line options.
Attachment #8974394 - Flags: review?(jlund) → review-
Not entirely sure how parser.add_argument("-l",... got changed. Also the space in "Infrastructure %26 Operations" will not work either, but again... that line shouldn't have been modified :o

As for the bugzilla url syntax, I had trouble making rest respond with the list of bugs with loaner whiteboard.
Link for the rest api results was generated using the following link:

https://bugzilla.mozilla.org/buglist.cgi?list_id=14142106&status_whiteboard_type=allwordssubstr&status_whiteboard=loaner&resolution=---&query_format=advanced&component=Buildduty&product=Infrastructure%20%26%20Operations

And clicking on "REST" link (bottom left corner) which will redirect you to:
https://bugzilla.mozilla.org/rest/bug?include_fields=id,summary,status&component=Buildduty&product=Infrastructure%20%26%20Operations&resolution=---&status_whiteboard=loaner&status_whiteboard_type=allwordssubstr


For resolution=--- that is introduced by the HTML link for rest, I played around with it and if you remove it, you will get a list of ALL bug that had "loaner" in their whiteboard, while we only care of a few bug status types, such as: ['UNCONFIRMED','NEW','ASSIGNED','REOPENED']

Link with resolution: https://bugzilla.mozilla.org/rest/bug?include_fields=id,summary,status&component=Buildduty&product=Infrastructure%20%26%20Operations&resolution=---&status_whiteboard=loaner&status_whiteboard_type=allwordssubstr

Link without resolution: https://bugzilla.mozilla.org/rest/bug?include_fields=id,summary,status&component=Buildduty&product=Infrastructure%20%26%20Operations&status_whiteboard=loaner&status_whiteboard_type=allwordssubstr
Attachment #8974447 - Flags: review?(jlund) → review+
Tested locally and works.
Attachment #8974940 - Flags: review?(jlund)
Comment on attachment 8974940 [details] [diff] [review]
Force include REST fields to reflect the new way of fetching Loaner bugs.

Review of attachment 8974940 [details] [diff] [review]:
-----------------------------------------------------------------

Reviewing now to unblock.
Attachment #8974940 - Flags: review?(jlund) → review+
Cron job triggered and everything is back in a working state!
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: