andygrove commented on code in PR #7708:
URL: https://github.com/apache/datafusion-comet/pull/7708#discussion_r4734642736
##########
.ai/skills/bug-triage/SKILL.md:
##########
@@ -168,7 +171,72 @@ If `gh issue edit` fails for any issue, leave that issue's
`requires-triage`
label intact and record the failure in the summary under a "Failed to label"
section.
-## Step 6: File the Summary Issue
+## Step 6: Build the Open Critical Bugs Summary
+
+The report opens with the state of **all** open critical bugs, not just this
+week's. Build it after Step 5 so that critical bugs labeled in this pass are
+included.
+
+Fetch every open critical bug:
+
+```bash
+gh issue list \
+ --repo apache/datafusion-comet \
+ --label bug --label priority:critical \
+ --state open \
+ --limit 300 \
+ --json number,title,labels,url,createdAt
+```
+
+**Primary area.** Give each issue exactly one area so the counts add up to the
+total. Use the first label from this list that the issue carries:
+`area:Iceberg`, `area:Delta`, `area:udf`, `area:writer`, `area:shuffle`,
+`area:joins`, `area:aggregation`, `area:memory`, `area:ffi`, `area:scan`,
+`area:expressions`, `area:ci`. An issue with none of them goes under
+`No area label`. Only read the labels that are already on the issue here; this
+step never adds one.
Review Comment:
Went with the fallback rather than widening Step 3, since adding labels to
the classifier is a separate change from this report. The primary-area rule now
says that an issue with none of the listed labels but another `area:*` label
uses the first of those alphabetically, after the listed ones. `No area label`
is only for an issue with no `area:*` label at all. Labels such as `area:joins`
that Step 3 does not apply still only appear when someone has already put them
on the issue, which the "never adds one" sentence says. (29516daf47)
##########
.ai/skills/bug-triage/SKILL.md:
##########
@@ -168,7 +171,72 @@ If `gh issue edit` fails for any issue, leave that issue's
`requires-triage`
label intact and record the failure in the summary under a "Failed to label"
section.
-## Step 6: File the Summary Issue
+## Step 6: Build the Open Critical Bugs Summary
+
+The report opens with the state of **all** open critical bugs, not just this
+week's. Build it after Step 5 so that critical bugs labeled in this pass are
+included.
+
+Fetch every open critical bug:
+
+```bash
+gh issue list \
+ --repo apache/datafusion-comet \
+ --label bug --label priority:critical \
+ --state open \
+ --limit 300 \
+ --json number,title,labels,url,createdAt
+```
+
+**Primary area.** Give each issue exactly one area so the counts add up to the
+total. Use the first label from this list that the issue carries:
+`area:Iceberg`, `area:Delta`, `area:udf`, `area:writer`, `area:shuffle`,
+`area:joins`, `area:aggregation`, `area:memory`, `area:ffi`, `area:scan`,
+`area:expressions`, `area:ci`. An issue with none of them goes under
+`No area label`. Only read the labels that are already on the issue here; this
+step never adds one.
+
+**New this week.** A critical bug is new if it was in this pass's
+`requires-triage` queue and ended up `bug` + `priority:critical`. That includes
+issues whose author already applied the labels.
Review Comment:
Both applied. "New this week" is now defined by `createdAt` within 7 days of
the report date. It no longer depends on the `requires-triage` queue, so it
also covers issues whose author applied the labels, and a relabeled issue is no
longer counted in `+N` without being marked `NEW`. Step 2 now skips titles that
start with `Bug triage results: `, so earlier summary issues are neither
classified nor relabeled. (29516daf47)
##########
.ai/skills/bug-triage/SKILL.md:
##########
@@ -178,44 +246,80 @@ TRIAGE_DATE=$(date -u +%Y-%m-%d)
Title: `Bug triage results: ${TRIAGE_DATE}`
-Body: a markdown report with these sections, in this order:
-
-1. **Header**
- - Date, total issues processed, count of bugs vs. enhancements, and counts
- per priority
- - Link to `docs/source/contributor-guide/bug_triage.md`
- - Note that labels have already been applied; the reviewer should spot-check
- and close this issue when satisfied
-2. **Bugs** — one subsection per priority, ordered highest priority first
- (`priority:critical`, then `priority:high`, then `priority:medium`, then
- `priority:low`). Omit any subsection whose count is zero. Do **not** use a
- markdown table anywhere in this section; use nested bullet lists only.
+The report is read in a 30 minute meeting, so keep it short. Detail goes where
a
+decision is needed; everything else is a title and a link. Sections, in this
+order:
- Within each subsection, one top-level bullet per issue:
+1. **Header** — three lines at most: the date; issues processed with the split
+ into bugs and enhancements; bugs by priority for this pass. Link to
+ `docs/source/contributor-guide/bug_triage.md`. Say that labels are already
+ applied and the reviewer should close the issue when satisfied.
+2. **Open critical bugs** — the heading must be exactly `## Open critical
bugs`,
+ because next week's run looks for it. Use this layout:
```
- ### priority:critical
+ ## Open critical bugs
+
+ 25 open, 2 new this week, 1 fewer than last week.
+
+ ### area:Iceberg (8 open, 1 new, +1 vs last week)
+
+ - **NEW** <title> (2 days) ([#1234](url)) - one sentence on why it is
critical
+ - <title> (27 days) ([#1200](url))
+
+ ### area:expressions (7 open, -1 vs last week)
- - <issue title>
([#1234](https://github.com/apache/datafusion-comet/issues/1234))
- - Area labels: `area:expressions`, `area:scan`
- - Rationale: one sentence tying the call to the guide
+ - <title> (12 days) ([#1180](url))
```
- The issue number (not the title) is the link target. The title is plain
- text. If there are no area labels, write `Area labels: none`.
-
-3. **Enhancements** (omit section if empty) — one top-level bullet per issue in
- the same `<title> ([#N](url))` form, with an `Area labels:` sub-bullet and a
- one-sentence rationale for classifying it as an enhancement. Enhancements
- have no priority subsections.
-4. **Escalations to consider** (omit section if empty) — bullet per issue with
- the same `<title> ([#N](url))` form, plus a sub-bullet explaining the
- trigger from the guide.
-5. **Skipped — needs more info** (omit if empty) — bullet per issue with the
- same `<title> ([#N](url))` form, plus a sub-bullet explaining what is
- missing.
-6. **Failed to label** (omit if empty) — bullet per issue with the same
- `<title> ([#N](url))` form, plus a sub-bullet quoting the `gh` error.
+ - Do not add a table. The counts are in the first line and the headings.
+ - Heading form: `### <area> (<N> open[, <N> new][, <+N|-N|0> vs last
week])`.
+ Leave out `new` when it is zero. The area is the primary area from Step 6,
+ or `No area label`. Next week's run reads `<N> open` from these headings.
+ - Order the sections by open count, largest first, and leave out areas with
no
+ open critical bugs unless the previous report had a heading for them.
Review Comment:
Applied in both places. Step 6 and the Step 7 ordering bullet now say "the
previous report listed it with a count above zero", so a `(0 open, ...)`
heading shows up once and then drops off. (29516daf47)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]