Tools: Add script to report (high) priority issues per module #120022
No reviewers
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#120022
Loading…
Reference in New Issue
No description provided.
Delete Branch "ThomasDinges/blender:reports_script"
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?
The python script checks on reports based on the provided severity (default High) and sorts them per module.
Thanks to Sybren for some code review and feedback on the chat already!
Generally fine, suggestions noted inline.
@ -0,0 +47,4 @@
"Unbreak Now!": "288"
}
uncategorized_reports = list()
Calling
list()
is mainly used for converting to a list, for empty lists[]
is typically written.@ -0,0 +76,4 @@
# Calculate total
total = 0
for module in modules:
Having module used twice under different types causes mypy to report type errors (see
mypy --strict tools/triage/issues_module_listing.py
), renaming it tomodule_key
,module_id
or similar resolves.@ -0,0 +86,4 @@
for module in modules.values():
str_list = (', '.join(module.buglist))
full_url = base_url + severity_labelid[severity] + "%2c" + module.labelid
if not module.buglist or severity != 'High':
While personal preference I find the
{str(len(module.bug_list))}
a bit cryptic, thestr()
can be removed, assigning a variablebuglist_len = len(module.buglist)
means this can be written as{buglist_len}
which reads better to me - but I'm not that fussed.@ -0,0 +92,4 @@
print(f"- [{module.name}]({full_url}): *{str(len(module.buglist))}* _{str_list}_")
print()
print("Total: " + str(total))
can be
f"Total: {total}"
- since f-strings are used everywhere else here.@ -0,0 +104,4 @@
description="Print statistics on open bug reports per module",
epilog="This script is used to help module teams")
parser.add_argument(
Adding
choices=severity_labelid.keys(),
gives a nice error if an invalid choice is passed in. .e.g... shows up in
--help
too.@ -0,0 +110,4 @@
default="High",
type=str,
required=False,
help="Severity of reports (Low, Normal, High, Unbreak Now!")
*picky* prefer trailing comma and newline, makes diffs less noisy when new args are added. Same for
ArgumentParser
.@ -0,0 +22,4 @@
labelid: str
buglist: list[str] = dataclasses.field(default_factory=list)
modules = {
Worth adding a note about where these values are from - if we need to update the list.
@ -0,0 +63,4 @@
html_url = issue["html_url"]
number = issue["number"]
# Check reports module assignement and fill in data
*typo*
assignment
, also end sentences with full-stops.lgtm