Update status label when reopening a report based on closed status #6
No reviewers
Labels
No Label
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: infrastructure/blender-bot#6
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "Alaska/blender-bot:reset-to-previous"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When a report is reopened, the Blender bot can take a action.
The goal of this PR is to change the behavior of the build bot with
regard to setting labels when reopening a report.
the Blender bot will leave the status label alone.
then the Blender bot will change the status to "Confirmed".
The reasoning behind reopening "Resolved" reports as "Confirmed"
is that the report was a valid bug, and a commit was made attempting
to resolve it (And this closed the report with the "Resolved" Status).
The primarily reason a Resolved report would be reopened would be that
the fix didn't work and the issue is still there, and so the report
should be reopened as "Confirmed" again.
Notes for review:
An extra API call is being made. I'm not sure how much of a impact this will have, could we avoid it?It reopens reports with their previous open status. So the label will be "Confirmed", "Needs Triage", "Needs Information From Developer" or "Needs Information from user". The triaging team may want this to be a simple "Confirmed" or "Needs Triage". So we may want input from other triaging members.I'm not 100% sure this is true (see code snippet below). It's just a pattern I noticed.Set to WIP due to open questions.
Restore status labels to what they were before they were closedto WIP: Restore status labels to what they were before they were closedWIP: Restore status labels to what they were before they were closedto WIP: Restore status labels to what they were before the issue was closedThese changes have been implemented
We discussed this in the triaging meeting. The discussion was "Do we want this" and "if we did want this, do we want things changed?"
The consensus from the people there was yes we do want this, but with modifications.
The main modification desired was to change which label is set based on the label it had when it was closed.
I will work on applying these changes later today/tomorrow.
I will leave WIP at the moment, I just want to double check with the triaging team this is what they want.
The updated behaviour of the change is this:
For triaging members, give this comment a thumbs up if you're okay with it, or leave a comment or contact me in Blender chat if you want this feature changed.
WIP: Restore status labels to what they were before the issue was closedto WIP: Update status label when reopening a report based on closed statusWIP: Update status label when reopening a report based on closed statusto Update status label when reopening a report based on closed statusAn important point of this review will be testing this locally to make sure I didn't break it (I wasn't sure how to best test it locally).
We have an UATEST environment, so hopefully will be easy to test.
UATEST doesn't have
blender-bot
deployed or attached, it seems.@ -47,1 +46,4 @@
# experiencing the issue.
new_status = "Status/Needs Triage"
for label in issue_labels:
if label["name"].startswith(status_prefix)
Shouldn't this be:
You're right, I've fixed it.