Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IA-4807] add test failure notifs for dev merges #4182

Merged
merged 2 commits into from
Feb 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions .github/workflows/leo-build-tag-publish-and-run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
#
Expand Down
Loading