Skip to content

Commit b5856cc

Browse files
Copilotjsturtevant
andcommitted
Add kind/fuzzing label for better issue filtering and management
Co-authored-by: jsturtevant <[email protected]>
1 parent e29625c commit b5856cc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

dev/notify-fuzzing-failure.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,15 @@ REPO_NAME=$(echo "$REPO" | cut -d'/' -f2)
4343
ISSUE_TITLE="Fuzzing Job Failure - $(date '+%Y-%m-%d')"
4444
FUZZING_LABEL="area/testing"
4545
FAILURE_LABEL="kind/bug"
46+
FUZZING_KIND_LABEL="kind/fuzzing"
4647
LIFECYCLE_LABEL="lifecycle/needs-review"
4748

4849
# Search for existing open fuzzing failure issues
4950
echo "Searching for existing open fuzzing failure issues..."
5051
EXISTING_ISSUES=$(gh api graphql -f query='
5152
query($owner: String!, $repo: String!) {
5253
repository(owner: $owner, name: $repo) {
53-
issues(first: 10, states: OPEN, labels: ["area/testing"]) {
54+
issues(first: 10, states: OPEN, labels: ["kind/fuzzing"]) {
5455
totalCount
5556
nodes {
5657
number
@@ -66,8 +67,8 @@ EXISTING_ISSUES=$(gh api graphql -f query='
6667
}
6768
}' -f owner="$OWNER" -f repo="$REPO_NAME" --jq '.data.repository.issues')
6869

69-
# Filter for fuzzing-related issues
70-
FUZZING_ISSUES=$(echo "$EXISTING_ISSUES" | jq '.nodes[] | select(.title | test("Fuzzing.*[Ff]ailure"))' 2>/dev/null || echo "")
70+
# Filter for fuzzing-related issues (now all results should be fuzzing issues due to label filter)
71+
FUZZING_ISSUES=$(echo "$EXISTING_ISSUES" | jq '.nodes[]' 2>/dev/null || echo "")
7172
FUZZING_ISSUE_COUNT=0
7273
if [ -n "$FUZZING_ISSUES" ]; then
7374
FUZZING_ISSUE_COUNT=$(echo "$FUZZING_ISSUES" | jq -s 'length' 2>/dev/null || echo "0")
@@ -139,6 +140,7 @@ The fuzzing workflow failed during execution. Please check the workflow logs and
139140
--body "$ISSUE_BODY" \
140141
--label "$FUZZING_LABEL" \
141142
--label "$FAILURE_LABEL" \
143+
--label "$FUZZING_KIND_LABEL" \
142144
--label "$LIFECYCLE_LABEL" \
143145
--repo "$REPO"); then
144146
echo "✅ Created new fuzzing failure issue: $ISSUE_URL"

0 commit comments

Comments
 (0)