From 7b0d8efe47e989ed24c1ba176a0ad413f81c016a Mon Sep 17 00:00:00 2001 From: OS-jacobbell <228905018+OS-jacobbell@users.noreply.github.com> Date: Wed, 22 Oct 2025 13:56:58 -0600 Subject: [PATCH 1/7] chore(ci): send alert message when stencil-nightly fails Send alert to a Discord channel using a webhook. --- .github/workflows/stencil-nightly.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/stencil-nightly.yml b/.github/workflows/stencil-nightly.yml index 6b24a9d69bb..9d0a4dedf8a 100644 --- a/.github/workflows/stencil-nightly.yml +++ b/.github/workflows/stencil-nightly.yml @@ -225,3 +225,13 @@ jobs: - name: Check build matrix status if: ${{ needs.test-react-e2e.result != 'success' }} run: exit 1 + + send-results-massages: + runs-on: ubuntu-latest + steps: + - name: Notify on Discord + if: failure() + run: | + curl -H "Content-Type:application/json" \ + -d '{"embeds": [{"title": "❌ Workflow ${{github.workflow}} #${{github.run_number}} Failed", "color": 16711680, "url": "${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}"}]}' \ + ${{secrets.DISCORD_NOTIFY_WEBHOOK}} From 93a2ea5c8b8c9e632a6c4366e111965428749df0 Mon Sep 17 00:00:00 2001 From: OS-jacobbell <228905018+OS-jacobbell@users.noreply.github.com> Date: Wed, 22 Oct 2025 15:23:26 -0600 Subject: [PATCH 2/7] chore(ci): send alert to slack when stencil-nightly fails --- .github/workflows/stencil-nightly.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/stencil-nightly.yml b/.github/workflows/stencil-nightly.yml index 9d0a4dedf8a..e70f6950c07 100644 --- a/.github/workflows/stencil-nightly.yml +++ b/.github/workflows/stencil-nightly.yml @@ -235,3 +235,9 @@ jobs: curl -H "Content-Type:application/json" \ -d '{"embeds": [{"title": "❌ Workflow ${{github.workflow}} #${{github.run_number}} Failed", "color": 16711680, "url": "${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}"}]}' \ ${{secrets.DISCORD_NOTIFY_WEBHOOK}} + - name: Notify on Slack + if: failure() + run: | + curl -H "Content-Type:application/json" \ + -d '{"title": "❌ Workflow ${{github.workflow}} #${{github.run_number}} Failed", "url": "${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}"}' \ + ${{secrets.SLACK_NOTIFY_WEBHOOK}} From 025ad13d06958ed0122d20e19c7ea607c5e99061 Mon Sep 17 00:00:00 2001 From: OS-jacobbell <228905018+OS-jacobbell@users.noreply.github.com> Date: Thu, 23 Oct 2025 08:52:01 -0600 Subject: [PATCH 3/7] chore(ci): fix spelling in stencil-nightly.yml Co-authored-by: Brandy Smith --- .github/workflows/stencil-nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stencil-nightly.yml b/.github/workflows/stencil-nightly.yml index e70f6950c07..e3ace3ab04f 100644 --- a/.github/workflows/stencil-nightly.yml +++ b/.github/workflows/stencil-nightly.yml @@ -226,7 +226,7 @@ jobs: if: ${{ needs.test-react-e2e.result != 'success' }} run: exit 1 - send-results-massages: + send-results-messages: runs-on: ubuntu-latest steps: - name: Notify on Discord From 07670520be744bf00a6cc6d133a166d7fe2a6a97 Mon Sep 17 00:00:00 2001 From: OS-jacobbell <228905018+OS-jacobbell@users.noreply.github.com> Date: Thu, 23 Oct 2025 11:59:32 -0600 Subject: [PATCH 4/7] chore(ci): send success notifications to discord and slack for stencil-nightly --- .github/workflows/stencil-nightly.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/stencil-nightly.yml b/.github/workflows/stencil-nightly.yml index e3ace3ab04f..52ad10f76a9 100644 --- a/.github/workflows/stencil-nightly.yml +++ b/.github/workflows/stencil-nightly.yml @@ -229,15 +229,27 @@ jobs: send-results-messages: runs-on: ubuntu-latest steps: - - name: Notify on Discord + - name: Notify success on Discord if: failure() run: | curl -H "Content-Type:application/json" \ - -d '{"embeds": [{"title": "❌ Workflow ${{github.workflow}} #${{github.run_number}} Failed", "color": 16711680, "url": "${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}"}]}' \ + -d '{"content": "Alerting <@1347593178580254761>!", "embeds": [{"title": "✅ Workflow ${{github.workflow}} #${{github.run_number}} finished successfully", "color": 65280, "url": "${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}"}]}' \ ${{secrets.DISCORD_NOTIFY_WEBHOOK}} - - name: Notify on Slack + - name: Notify failure on Discord if: failure() run: | curl -H "Content-Type:application/json" \ - -d '{"title": "❌ Workflow ${{github.workflow}} #${{github.run_number}} Failed", "url": "${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}"}' \ - ${{secrets.SLACK_NOTIFY_WEBHOOK}} + -d '{"embeds": [{"title": "❌ Workflow ${{github.workflow}} #${{github.run_number}} failed", "color": 16711680, "url": "${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}"}]}' \ + ${{secrets.DISCORD_NOTIFY_WEBHOOK}} + - name: Notify success on Slack + if: success() + run: | + curl -H "Content-Type:application/json" \ + -d '{"title": "✅ Workflow ${{github.workflow}} #${{github.run_number}} finished successfully", "url": "${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}"}' \ + ${{secrets.SLACK_NOTIFY_SUCCESS_WEBHOOK}} + - name: Notify failure on Slack + if: failure() + run: | + curl -H "Content-Type:application/json" \ + -d '{"title": "❌ Workflow ${{github.workflow}} #${{github.run_number}} failed", "url": "${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}"}' \ + ${{secrets.SLACK_NOTIFY_FAILURE_WEBHOOK}} From ed722c2efde1243f616b5d0732b71353ee0535ff Mon Sep 17 00:00:00 2001 From: OS-jacobbell <228905018+OS-jacobbell@users.noreply.github.com> Date: Thu, 23 Oct 2025 12:07:18 -0600 Subject: [PATCH 5/7] chore(ci): fix condition for success Discord notification --- .github/workflows/stencil-nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stencil-nightly.yml b/.github/workflows/stencil-nightly.yml index 52ad10f76a9..561ea795aaa 100644 --- a/.github/workflows/stencil-nightly.yml +++ b/.github/workflows/stencil-nightly.yml @@ -230,7 +230,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Notify success on Discord - if: failure() + if: success() run: | curl -H "Content-Type:application/json" \ -d '{"content": "Alerting <@1347593178580254761>!", "embeds": [{"title": "✅ Workflow ${{github.workflow}} #${{github.run_number}} finished successfully", "color": 65280, "url": "${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}"}]}' \ From 3ca9559e2918d27552401a9d2ba1ffb1dab1edf0 Mon Sep 17 00:00:00 2001 From: Jacob Bell <228905018+OS-jacobbell@users.noreply.github.com> Date: Mon, 27 Oct 2025 10:05:03 -0600 Subject: [PATCH 6/7] chore(ci): add job dependences for success and failure notification jobs --- .github/workflows/stencil-nightly.yml | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/workflows/stencil-nightly.yml b/.github/workflows/stencil-nightly.yml index 561ea795aaa..aeff9d6d1bd 100644 --- a/.github/workflows/stencil-nightly.yml +++ b/.github/workflows/stencil-nightly.yml @@ -226,29 +226,33 @@ jobs: if: ${{ needs.test-react-e2e.result != 'success' }} run: exit 1 - send-results-messages: + send-success-messages: + needs: [test-core-clean-build, test-core-lint, test-core-spec, verify-screenshots, verify-test-vue-e2e, verify-test-angular-e2e, verify-test-react-router-e2e, verify-test-react-e2e] runs-on: ubuntu-latest + if: ${{ !cancelled() && contains(needs.*.result, 'success') }} steps: - name: Notify success on Discord - if: success() run: | curl -H "Content-Type:application/json" \ - -d '{"content": "Alerting <@1347593178580254761>!", "embeds": [{"title": "✅ Workflow ${{github.workflow}} #${{github.run_number}} finished successfully", "color": 65280, "url": "${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}"}]}' \ - ${{secrets.DISCORD_NOTIFY_WEBHOOK}} - - name: Notify failure on Discord - if: failure() - run: | - curl -H "Content-Type:application/json" \ - -d '{"embeds": [{"title": "❌ Workflow ${{github.workflow}} #${{github.run_number}} failed", "color": 16711680, "url": "${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}"}]}' \ + -d '{"embeds": [{"title": "✅ Workflow ${{github.workflow}} #${{github.run_number}} finished successfully", "color": 65280, "url": "${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}"}]}' \ ${{secrets.DISCORD_NOTIFY_WEBHOOK}} - name: Notify success on Slack - if: success() run: | curl -H "Content-Type:application/json" \ -d '{"title": "✅ Workflow ${{github.workflow}} #${{github.run_number}} finished successfully", "url": "${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}"}' \ ${{secrets.SLACK_NOTIFY_SUCCESS_WEBHOOK}} + + send-failure-messages: + needs: [test-core-clean-build, test-core-lint, test-core-spec, verify-screenshots, verify-test-vue-e2e, verify-test-angular-e2e, verify-test-react-router-e2e, verify-test-react-e2e] + runs-on: ubuntu-latest + if: ${{ !cancelled() && contains(needs.*.result, 'success') }} + steps: + - name: Notify failure on Discord + run: | + curl -H "Content-Type:application/json" \ + -d '{"content": "Alerting <@&1347593178580254761>!", "embeds": [{"title": "❌ Workflow ${{github.workflow}} #${{github.run_number}} failed", "color": 16711680, "url": "${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}"}]}' \ + ${{secrets.DISCORD_NOTIFY_WEBHOOK}} - name: Notify failure on Slack - if: failure() run: | curl -H "Content-Type:application/json" \ -d '{"title": "❌ Workflow ${{github.workflow}} #${{github.run_number}} failed", "url": "${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}"}' \ From 5c0308aac75f8275b4ca1e577d9ac69ed527c71e Mon Sep 17 00:00:00 2001 From: Jacob Bell <228905018+OS-jacobbell@users.noreply.github.com> Date: Mon, 27 Oct 2025 10:25:21 -0600 Subject: [PATCH 7/7] chore(ci): fix failure condition --- .github/workflows/stencil-nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stencil-nightly.yml b/.github/workflows/stencil-nightly.yml index aeff9d6d1bd..354b78ec119 100644 --- a/.github/workflows/stencil-nightly.yml +++ b/.github/workflows/stencil-nightly.yml @@ -245,7 +245,7 @@ jobs: send-failure-messages: needs: [test-core-clean-build, test-core-lint, test-core-spec, verify-screenshots, verify-test-vue-e2e, verify-test-angular-e2e, verify-test-react-router-e2e, verify-test-react-e2e] runs-on: ubuntu-latest - if: ${{ !cancelled() && contains(needs.*.result, 'success') }} + if: ${{ !cancelled() && contains(needs.*.result, 'failure') }} steps: - name: Notify failure on Discord run: |