From 82deeb41a1457bfb5cec33593470e4f8cba7b3e7 Mon Sep 17 00:00:00 2001 From: Sam Evans <47793072+Sevans711@users.noreply.github.com> Date: Wed, 29 Jul 2026 10:21:29 -0400 Subject: [PATCH 1/4] fix upstream-ci bot posts issue even on success --- .github/workflows/upstream-dev-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/upstream-dev-ci.yml b/.github/workflows/upstream-dev-ci.yml index 5e9f06a0c..d9ad3d9b3 100644 --- a/.github/workflows/upstream-dev-ci.yml +++ b/.github/workflows/upstream-dev-ci.yml @@ -61,7 +61,7 @@ jobs: name: failure-issue needs: [upstream-dev] if: | - needs.upstream-dev.testresults != 'success' + needs.upstream-dev.outputs.testresults != 'success' && github.repository == 'UXARRAY/uxarray' && github.ref == 'refs/heads/main' runs-on: ubuntu-latest From 175a6b44a3f9cdb314a874c3720a8cdf456e1999 Mon Sep 17 00:00:00 2001 From: Sam Evans <47793072+Sevans711@users.noreply.github.com> Date: Wed, 29 Jul 2026 10:26:09 -0400 Subject: [PATCH 2/4] update upstream-ci bot post title with failed date Fixes #1591, Upstream-ci bot post not noticeable enough. --- .github/workflows/upstream-dev-ci.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/upstream-dev-ci.yml b/.github/workflows/upstream-dev-ci.yml index d9ad3d9b3..a660ed2a8 100644 --- a/.github/workflows/upstream-dev-ci.yml +++ b/.github/workflows/upstream-dev-ci.yml @@ -84,13 +84,22 @@ jobs: issue_body="${issue_body//\{\{RUN_URL\}\}/${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}}" issue_body="${issue_body//\{\{DATE\}\}/$(date -u)}" - # Check for existing open issue with same title - issue_title="🤖 Upstream testing failure" - existing_issue=$(gh issue list --state open --label "CI" --search "\"$issue_title\" in:title" --json number --jq '.[0].number // empty') + # Prefix used for identity/matching; date suffix is for display only + title_prefix="🤖 Upstream testing failure" + issue_title="${title_prefix} ($(date -u +%Y-%m-%d))" + + # Find existing open issue whose title starts with the fixed prefix. + # Uses --label to narrow the API call, then a rigorous client-side + # startswith check (not GitHub's fuzzy --search) for the actual match. + existing_issue=$(gh issue list --state open --label "CI" --json number,title \ + --jq --arg prefix "$title_prefix" \ + '[.[] | select(.title | startswith($prefix))] | .[0].number // empty') if [ -n "$existing_issue" ]; then echo "Found existing open issue #$existing_issue, updating it..." - echo "$issue_body" | gh issue edit "$existing_issue" --body-file - + echo "$issue_body" | gh issue edit "$existing_issue" \ + --title "$issue_title" + --body-file - echo "Updated existing issue #$existing_issue" else echo "No existing open issue found, creating new one..." From ae1a4bd058900923da706a976c1407fd00eb9e71 Mon Sep 17 00:00:00 2001 From: Sam Evans <47793072+Sevans711@users.noreply.github.com> Date: Wed, 29 Jul 2026 11:43:08 -0400 Subject: [PATCH 3/4] fix minor typo in previous commit- upstream ci yml --- .github/workflows/upstream-dev-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/upstream-dev-ci.yml b/.github/workflows/upstream-dev-ci.yml index a660ed2a8..ff15fd947 100644 --- a/.github/workflows/upstream-dev-ci.yml +++ b/.github/workflows/upstream-dev-ci.yml @@ -98,7 +98,7 @@ jobs: if [ -n "$existing_issue" ]; then echo "Found existing open issue #$existing_issue, updating it..." echo "$issue_body" | gh issue edit "$existing_issue" \ - --title "$issue_title" + --title "$issue_title" \ --body-file - echo "Updated existing issue #$existing_issue" else From 30e30ae429f07a68dfc28880e82e6c227e0e4920 Mon Sep 17 00:00:00 2001 From: Sam Evans <47793072+Sevans711@users.noreply.github.com> Date: Wed, 29 Jul 2026 13:16:57 -0400 Subject: [PATCH 4/4] fix typo (2 commits ago) in upstream ci yml --- .github/workflows/upstream-dev-ci.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/upstream-dev-ci.yml b/.github/workflows/upstream-dev-ci.yml index ff15fd947..6cc3dd994 100644 --- a/.github/workflows/upstream-dev-ci.yml +++ b/.github/workflows/upstream-dev-ci.yml @@ -88,12 +88,10 @@ jobs: title_prefix="🤖 Upstream testing failure" issue_title="${title_prefix} ($(date -u +%Y-%m-%d))" - # Find existing open issue whose title starts with the fixed prefix. - # Uses --label to narrow the API call, then a rigorous client-side - # startswith check (not GitHub's fuzzy --search) for the actual match. + # Find existing open issue whose title starts with the fixed prefix existing_issue=$(gh issue list --state open --label "CI" --json number,title \ - --jq --arg prefix "$title_prefix" \ - '[.[] | select(.title | startswith($prefix))] | .[0].number // empty') + --jq '.[] | select(.title | startswith("'"$title_prefix"'")) | .number' \ + | head -n1) if [ -n "$existing_issue" ]; then echo "Found existing open issue #$existing_issue, updating it..."