Skip to content

Commit

Permalink
feat: unified notification for smoke tests (#11978)
Browse files Browse the repository at this point in the history
Signed-off-by: Adrien Mannocci <[email protected]>
  • Loading branch information
amannocci authored Nov 2, 2023
1 parent f2aeaa3 commit d701da4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 30 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/smoke-tests-ess.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,23 +66,3 @@ jobs:
- if: always()
name: Teardown smoke test infra
run: make smoketest/cleanup TEST_DIR=${{ matrix.test }}

all-smoke-tests-ess:
name: All Smoke Tests ESS
if: always()
runs-on: ubuntu-latest
needs:
- smoke-tests-ess
steps:
- id: check
uses: elastic/apm-pipeline-library/.github/actions/check-dependent-jobs@current
with:
needs: ${{ toJSON(needs) }}
- uses: elastic/apm-pipeline-library/.github/actions/notify-build-status@current
with:
status: ${{ steps.check.outputs.status }}
vaultUrl: ${{ secrets.VAULT_ADDR }}
vaultRoleId: ${{ secrets.VAULT_ROLE_ID }}
vaultSecretId: ${{ secrets.VAULT_SECRET_ID }}
slackChannel: "#apm-server"
message: "Build result for Smoke Tests ESS"
21 changes: 11 additions & 10 deletions .github/workflows/smoke-tests-schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: smoke-tests
run-name: Smoke Tests

on:
workflow_dispatch:
workflow_dispatch: ~
schedule:
- cron: '0 3 * * 1-5'

Expand Down Expand Up @@ -35,12 +35,20 @@ jobs:
branch: ${{ matrix.branch }}
secrets: inherit

all-smoke-tests-os:
name: All Smoke Tests OS
smoke-tests-ess:
name: Run smoke tests ESS
uses: ./.github/workflows/smoke-tests-ess.yml
with:
branch: 'main'
secrets: inherit

all-smoke-tests:
name: All Smoke Tests
if: always()
runs-on: ubuntu-latest
needs:
- smoke-tests-os
- smoke-tests-ess
steps:
- id: check
uses: elastic/apm-pipeline-library/.github/actions/check-dependent-jobs@current
Expand All @@ -53,10 +61,3 @@ jobs:
vaultRoleId: ${{ secrets.VAULT_ROLE_ID }}
vaultSecretId: ${{ secrets.VAULT_SECRET_ID }}
slackChannel: "#apm-server"

smoke-tests-ess:
name: Run smoke tests ESS
uses: ./.github/workflows/smoke-tests-ess.yml
with:
branch: 'main'
secrets: inherit

0 comments on commit d701da4

Please sign in to comment.