diff --git a/.github/workflows/ci3.yml b/.github/workflows/ci3.yml index 24b7d9db8a26..4f547fee2652 100644 --- a/.github/workflows/ci3.yml +++ b/.github/workflows/ci3.yml @@ -318,19 +318,17 @@ jobs: uses: benchmark-action/github-action-benchmark@52576c92bccf6ac60c8223ec7eb2565637cae9ba # v1.22.1 with: *ci_benchmark_args - - name: Notify Slack and dispatch ClaudeBox on failure + - name: Notify Slack on failure if: failure() && startsWith(github.ref, 'refs/tags/v') env: SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} - GITHUB_TOKEN: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }} GIT_REF: ${{ github.ref }} RUN_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} TEST_SET: ${{ matrix.test_set }} run: | - ./ci3/slack_notify_with_claudebox_kickoff "#alerts-next-scenario" \ - "Nightly Spartan Scenario FAILED in ci3.yml (set ${TEST_SET}, nightly tag ${GIT_REF}): <${RUN_URL}|View Run> (🤖)" \ - "Nightly Spartan Scenario tests failed (matrix set ${TEST_SET}, nightly tag ${GIT_REF}). CI run: ${RUN_URL}. Investigate the scenario test failure and identify the root cause." \ - --link "$RUN_URL" + ./ci3/slack_notify \ + "Nightly Spartan Scenario FAILED in ci3.yml (set ${TEST_SET}, nightly tag ${GIT_REF}): <${RUN_URL}|View Run>" \ + "#alerts-next-scenario" # Spartan network benchmarks triggered on-demand from a PR label. # Runs TPS and proving benchmarks in parallel, uploads results to a PR-specific diff --git a/.github/workflows/nightly-bench-10tps.yml b/.github/workflows/nightly-bench-10tps.yml index 85bc4c6bc4c8..93429353914f 100644 --- a/.github/workflows/nightly-bench-10tps.yml +++ b/.github/workflows/nightly-bench-10tps.yml @@ -211,15 +211,13 @@ jobs: "Nightly 10 TPS benchmark PASSED (image ${IMAGE}) :white_check_mark: <${RUN_URL}|View Run>" \ "#alerts-next-scenario" - - name: Notify Slack and dispatch ClaudeBox on failure + - name: Notify Slack on failure if: failure() env: SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} - GITHUB_TOKEN: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }} run: | IMAGE="${{ needs.select-image.outputs.image_label || 'unknown' }}" RUN_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" - ./ci3/slack_notify_with_claudebox_kickoff "#alerts-next-scenario" \ - "Nightly 10 TPS benchmark FAILED (image ${IMAGE}): <${RUN_URL}|View Run> (🤖)" \ - "Nightly 10 TPS benchmark failed (image ${IMAGE}). CI run: ${RUN_URL}. Investigate the benchmark failure and identify the root cause." \ - --link "$RUN_URL" + ./ci3/slack_notify \ + "Nightly 10 TPS benchmark FAILED (image ${IMAGE}): <${RUN_URL}|View Run>" \ + "#alerts-next-scenario" diff --git a/.github/workflows/nightly-spartan-bench.yml b/.github/workflows/nightly-spartan-bench.yml index 619b21beee09..cf979b6d1adc 100644 --- a/.github/workflows/nightly-spartan-bench.yml +++ b/.github/workflows/nightly-spartan-bench.yml @@ -232,18 +232,16 @@ jobs: "Nightly Spartan TPS benchmarks PASSED (nightly tag ${TAG}) :white_check_mark: <${RUN_URL}|View Run>" \ "#alerts-next-scenario" - - name: Notify Slack and dispatch ClaudeBox on failure + - name: Notify Slack on failure if: ${{ needs.benchmark.result != 'success' }} env: SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} - GITHUB_TOKEN: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }} run: | TAG="${{ needs.select-image.outputs.nightly_tag || 'unknown' }}" RUN_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" - ./ci3/slack_notify_with_claudebox_kickoff "#alerts-next-scenario" \ - "Nightly Spartan Benchmarks FAILED (nightly tag ${TAG}): <${RUN_URL}|View Run> (🤖)" \ - "Nightly Spartan benchmarks failed (nightly tag ${TAG}). CI run: ${RUN_URL}. Investigate the benchmark failure and identify the root cause." \ - --link "$RUN_URL" + ./ci3/slack_notify \ + "Nightly Spartan Benchmarks FAILED (nightly tag ${TAG}): <${RUN_URL}|View Run>" \ + "#alerts-next-scenario" # --------------------------------------------------------------------------- # Proving benchmark (env prove-n-tps-fake, namespace prove-n-tps-fake) @@ -397,18 +395,16 @@ jobs: "Nightly proving benchmarks passed (nightly tag ${TAG}) :white_check_mark: <${RUN_URL}|View Run>" \ "#alerts-next-scenario" - - name: Notify Slack and dispatch ClaudeBox on failure + - name: Notify Slack on failure if: ${{ needs.proving-benchmark.result != 'success' }} env: SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} - GITHUB_TOKEN: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }} run: | TAG="${{ needs.select-image.outputs.nightly_tag || 'unknown' }}" RUN_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" - ./ci3/slack_notify_with_claudebox_kickoff "#alerts-next-scenario" \ - "Nightly Proving Benchmarks FAILED (nightly tag ${TAG}): <${RUN_URL}|View Run> (🤖)" \ - "Nightly proving benchmarks failed (nightly tag ${TAG}). CI run: ${RUN_URL}. Investigate the benchmark failure and identify the root cause." \ - --link "$RUN_URL" + ./ci3/slack_notify \ + "Nightly Proving Benchmarks FAILED (nightly tag ${TAG}): <${RUN_URL}|View Run>" \ + "#alerts-next-scenario" # --------------------------------------------------------------------------- # Block capacity benchmark (env block-capacity, namespace nightly-block-capacity) @@ -562,18 +558,16 @@ jobs: "Nightly block capacity benchmarks passed (nightly tag ${TAG}) :white_check_mark: <${RUN_URL}|View Run>" \ "#alerts-next-scenario" - - name: Notify Slack and dispatch ClaudeBox on failure + - name: Notify Slack on failure if: ${{ needs.block-capacity-benchmark.result != 'success' }} env: SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} - GITHUB_TOKEN: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }} run: | TAG="${{ needs.select-image.outputs.nightly_tag || 'unknown' }}" RUN_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" - ./ci3/slack_notify_with_claudebox_kickoff "#alerts-next-scenario" \ - "Nightly Block Capacity Benchmarks FAILED (nightly tag ${TAG}): <${RUN_URL}|View Run> (🤖)" \ - "Nightly block capacity benchmarks failed (nightly tag ${TAG}). CI run: ${RUN_URL}. Investigate the benchmark failure and identify the root cause." \ - --link "$RUN_URL" + ./ci3/slack_notify \ + "Nightly Block Capacity Benchmarks FAILED (nightly tag ${TAG}): <${RUN_URL}|View Run>" \ + "#alerts-next-scenario" status: runs-on: ubuntu-latest diff --git a/.github/workflows/test-network-scenarios.yml b/.github/workflows/test-network-scenarios.yml index d4d6ec9ecdc7..130f7ecbd32e 100644 --- a/.github/workflows/test-network-scenarios.yml +++ b/.github/workflows/test-network-scenarios.yml @@ -75,14 +75,12 @@ jobs: gcp_sa_key: ${{ secrets.GCP_SA_KEY }} gcp_project_id: ${{ secrets.GCP_PROJECT_ID }} - - name: Notify Slack and dispatch ClaudeBox on failure + - name: Notify Slack on failure if: failure() env: SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} - GITHUB_TOKEN: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }} run: | RUN_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" - ./ci3/slack_notify_with_claudebox_kickoff "#alerts-next-scenario" \ - "Scenario Tests FAILED (set ${{ matrix.test_set }}, image ${{ inputs.docker_image }}, env ${{ inputs.env_file }}): <${RUN_URL}|View Run> (🤖)" \ - "Scenario tests failed (set ${{ matrix.test_set }}, image ${{ inputs.docker_image }}, env ${{ inputs.env_file }}). CI run: ${RUN_URL}. Investigate the scenario test failure and identify the root cause." \ - --link "$RUN_URL" + ./ci3/slack_notify \ + "Scenario Tests FAILED (set ${{ matrix.test_set }}, image ${{ inputs.docker_image }}, env ${{ inputs.env_file }}): <${RUN_URL}|View Run>" \ + "#alerts-next-scenario" diff --git a/.github/workflows/weekly-proving-bench.yml b/.github/workflows/weekly-proving-bench.yml index e747a3be3c84..83e52f934cbe 100644 --- a/.github/workflows/weekly-proving-bench.yml +++ b/.github/workflows/weekly-proving-bench.yml @@ -215,15 +215,13 @@ jobs: "Weekly real proving benchmark passed (nightly tag ${TAG}) :white_check_mark: <${RUN_URL}|View Run>" \ "#alerts-next-scenario" - - name: Notify Slack and dispatch ClaudeBox on failure + - name: Notify Slack on failure if: failure() env: SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} - GITHUB_TOKEN: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }} run: | TAG="${{ needs.select-image.outputs.nightly_tag || 'unknown' }}" RUN_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" - ./ci3/slack_notify_with_claudebox_kickoff "#alerts-next-scenario" \ - "Weekly Real Proving Benchmark FAILED (nightly tag ${TAG}): <${RUN_URL}|View Run> (🤖)" \ - "Weekly real proving benchmark failed (nightly tag ${TAG}). CI run: ${RUN_URL}. Investigate the benchmark failure and identify the root cause." \ - --link "$RUN_URL" + ./ci3/slack_notify \ + "Weekly Real Proving Benchmark FAILED (nightly tag ${TAG}): <${RUN_URL}|View Run>" \ + "#alerts-next-scenario"