From 3d13a2a925055f2000d1056f2e489dde31c132ea Mon Sep 17 00:00:00 2001 From: Justin H Yang Date: Fri, 2 Feb 2024 11:56:15 -0800 Subject: [PATCH] add test failure notifs for dev merges --- .../leo-build-tag-publish-and-run-tests.yml | 24 ++++++++++++++----- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/leo-build-tag-publish-and-run-tests.yml b/.github/workflows/leo-build-tag-publish-and-run-tests.yml index e1a2135300d..b560b92b2f3 100644 --- a/.github/workflows/leo-build-tag-publish-and-run-tests.yml +++ b/.github/workflows/leo-build-tag-publish-and-run-tests.yml @@ -40,16 +40,20 @@ jobs: service-account: ${{ steps.prepare-outputs.outputs.service-account }} log-results: ${{ steps.prepare-outputs.outputs.log-results }} test-context: ${{ steps.prepare-outputs.outputs.test-context }} + relates-to-chart-releases: ${{ steps.prepare-outputs.outputs.relates-to-chart-releases }} + notify-failure-channel: ${{ steps.prepare-outputs.outputs.notify-failure-channel }} steps: - name: Get inputs and/or set defaults id: prepare-outputs run: | - echo 'delete-bee=true' >> $GITHUB_OUTPUT - echo 'log-results=true' >> $GITHUB_OUTPUT + echo 'notify-failure-channel=ia-test-notification' >> $GITHUB_OUTPUT + echo 'delete-bee=true' >> $GITHUB_OUTPUT + echo 'log-results=true' >> $GITHUB_OUTPUT if ${{ github.ref_name == 'develop' }}; then - echo 'test-context=dev-merge' >> $GITHUB_OUTPUT + echo 'test-context=dev-merge' >> $GITHUB_OUTPUT + echo 'relates-to-chart-releases=leonardo-dev' >> $GITHUB_OUTPUT else - echo 'test-context=pr-test' >> $GITHUB_OUTPUT + echo 'test-context=pr-test' >> $GITHUB_OUTPUT fi # we need this because github can't actually provide the branch name reliably @@ -66,10 +70,8 @@ jobs: exit 1 fi - # echo "app-version=jc-ssh-gcp-2" >> $GITHUB_OUTPUT echo "build-branch=$BRANCH_NAME" >> $GITHUB_OUTPUT echo "automation-branch=$BRANCH_NAME" >> $GITHUB_OUTPUT - # echo "automation-branch=jc-ssh-gcp-2" >> $GITHUB_OUTPUT # # Artifact Build and Promotion @@ -134,6 +136,16 @@ jobs: permissions: id-token: 'write' + report-workflow: + uses: broadinstitute/sherlock/.github/workflows/client-report-workflow.yaml@main + needs: [ init-github-context ] + if: ${{ github.ref_name == 'develop' }} + with: + notify-slack-channels-upon-workflow-failure: ${{ needs.init-github-context.outputs.notify-failure-channel }} + relates-to-chart-releases: ${{ needs.init-github-context.outputs.relates-to-chart-releases }} + permissions: + id-token: 'write' + # # E2E Tests - Setup and Run #