Skip to content

Commit

Permalink
ci: Add PagerDuty integration to XTS suite and promote build candidate (
Browse files Browse the repository at this point in the history
#16918)

Signed-off-by: Roger Barker <[email protected]>
  • Loading branch information
rbarkerSL authored Dec 5, 2024
1 parent 54495da commit e874154
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/zxcron-extended-test-suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,31 @@ jobs:
with:
path: run.log

- name: Report failure (PagerDuty)
run: |
curl --request 'POST' \
--url 'https://events.pagerduty.com/v2/enqueue' \
--header 'Content-Type: application/json' \
--data '{
"payload": {
"summary": "Hedera Services - eXtended Test Suite Failure",
"severity": "error",
"source": "GitHub Actions - eXtended Test Suite",
"custom_details": {
"Fetch XTS Candidate Tag": "${{ needs.fetch-xts-candidate.result }}",
"Execute eXtended Test Suite": "${{ needs.extended-test-suite.result }}",
"JRS Panel": "${{ needs.abbreviated-panel.result }}",
"Hedera Node JRS Panel": "${{ needs.hedera-node-jrs-panel.result }}",
"Tag as XTS-Passing": "${{ needs.tag-for-promotion.result }}",
"Source Commit": "<${{ github.server_url }}/${{ github.repository }}/commit/${{ needs.fetch-xts-candidate.outputs.xts-tag-commit }}>",
"Commit Author": "${{ needs.fetch-xts-candidate.outputs.xts-tag-commit-author }}",
"Workflow Run": "<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}>"
}
},
"routing_key": "${{ secrets.PAGERDUTY_CITR_INTEGRATION_KEY }}",
"event_action": "trigger",
}'
- name: Report failure (slack)
uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0
with:
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/zxcron-promote-build-candidate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,27 @@ jobs:
with:
egress-policy: audit

- name: Report failure (PagerDuty)
run: |
curl --request 'POST' \
--url 'https://events.pagerduty.com/v2/enqueue' \
--header 'Content-Type: application/json' \
--data '{
"payload": {
"summary": "Hedera Services - eXtended Test Suite Failure",
"severity": "error",
"source": "GitHub Actions - eXtended Test Suite",
"custom_details": {
"Fetch Latest Build Candidate": "${{ needs.determine-build-candidate.result }}",
"Promote Build Candidate": "${{ needs.promote-build-candidate.result }}",
"Source Commit": "<${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}>",
"Workflow Run": "<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}>"
}
},
"routing_key": "${{ secrets.PAGERDUTY_CITR_INTEGRATION_KEY }}",
"event_action": "trigger",
}'
- name: Report failure (slack)
uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0
with:
Expand Down

0 comments on commit e874154

Please sign in to comment.