From 6bc4f18fb6c9d9e084975ebd69ae11ca31b21cdb Mon Sep 17 00:00:00 2001 From: Cassandra Coyle Date: Thu, 2 Jul 2026 11:47:49 -0500 Subject: [PATCH 1/2] auto open issue on ci failure during release Signed-off-by: Cassandra Coyle --- .github/workflows/build-tag.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/build-tag.yaml b/.github/workflows/build-tag.yaml index de291bab..1ea7cc6d 100644 --- a/.github/workflows/build-tag.yaml +++ b/.github/workflows/build-tag.yaml @@ -105,3 +105,19 @@ jobs: # under `dapr/ext//` claimed by both distributions, and `pip # uninstall ` would delete files that core dapr now provides. # See RELEASE.md and the runtime warning in dapr/__init__.py. + + # Opens (or comments on) a tracking issue when a tagged release fails + # anywhere in the lint -> build -> publish chain. + notify-on-failure: + needs: [lint, build, publish] + if: failure() && startsWith(github.ref, 'refs/tags/v') + permissions: + issues: write + actions: read + uses: dapr/.github/.github/workflows/open-issue-on-failure.yml@main + with: + title: "Release publish failed: ${{ github.workflow }} (${{ github.ref_name }})" + labels: "release,ci/publish-failure" + mention: "@dapr/maintainers-python-sdk @dapr/approvers-python-sdk" + secrets: + dapr_bot_token: ${{ secrets.DAPR_BOT_TOKEN }} From e5708ae64a5bfec16bf2ea23e20317bac663cbf9 Mon Sep 17 00:00:00 2001 From: Cassandra Coyle Date: Mon, 6 Jul 2026 16:31:09 -0500 Subject: [PATCH 2/2] PR feedback, only notify on publish Signed-off-by: Cassandra Coyle --- .github/workflows/build-tag.yaml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-tag.yaml b/.github/workflows/build-tag.yaml index 1ea7cc6d..e88051e8 100644 --- a/.github/workflows/build-tag.yaml +++ b/.github/workflows/build-tag.yaml @@ -106,18 +106,17 @@ jobs: # uninstall ` would delete files that core dapr now provides. # See RELEASE.md and the runtime warning in dapr/__init__.py. - # Opens (or comments on) a tracking issue when a tagged release fails - # anywhere in the lint -> build -> publish chain. + # Opens (or comments on) a tracking issue only when the publish job (PyPI + # upload) fails. Lint/build failures skip publish, so failure() stays false + # and CI flakes don't open issues. notify-on-failure: - needs: [lint, build, publish] + needs: [publish] if: failure() && startsWith(github.ref, 'refs/tags/v') permissions: issues: write actions: read uses: dapr/.github/.github/workflows/open-issue-on-failure.yml@main with: - title: "Release publish failed: ${{ github.workflow }} (${{ github.ref_name }})" - labels: "release,ci/publish-failure" + title: "Release workflow failed: ${{ github.workflow }} (${{ github.ref_name }})" + labels: "release,ci/release-failure" mention: "@dapr/maintainers-python-sdk @dapr/approvers-python-sdk" - secrets: - dapr_bot_token: ${{ secrets.DAPR_BOT_TOKEN }}