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

Slack webhook integration #385

Merged
merged 57 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
7940ccf
Switch to dunebuild03
andrewmogan Aug 6, 2024
a0a148c
Add simple payload json file for Slack webhook
andrewmogan Aug 9, 2024
6b49fa0
Add step for sending Slack message
andrewmogan Aug 9, 2024
cf13dbc
Move Slack step to the end of the workflow
andrewmogan Aug 9, 2024
10c7631
Update path for Slack payload file
andrewmogan Aug 9, 2024
47ffd9c
Add step to checkout daq-release to access payload json file
andrewmogan Aug 9, 2024
e141417
Try once again to fix the path to json file
andrewmogan Aug 9, 2024
3d0e00a
Require integration tests to finish before posting Slack message
andrewmogan Aug 9, 2024
c17b6a4
Modify payload path (again)
andrewmogan Aug 9, 2024
8bee6d1
Don't checkout daq-release
andrewmogan Aug 9, 2024
4a1deaf
Checkout daq-release with better path name, and add debug print state…
andrewmogan Aug 9, 2024
a7bf61a
Correct path to temporary daq-release
andrewmogan Aug 9, 2024
aa2c38d
Use github.workspace to maybe, actually, finally get the path right
andrewmogan Aug 9, 2024
c537e07
Run Slack step on daq
andrewmogan Aug 9, 2024
2d58997
Rename payload file to match workflow
andrewmogan Aug 9, 2024
3645b09
Fix key name in json payload
andrewmogan Aug 9, 2024
eb78c10
Bump drunc version to 0.10.4
andrewmogan Aug 12, 2024
5cb46da
Merge branch 'develop' of https://github.com/DUNE-DAQ/daq-release int…
andrewmogan Aug 21, 2024
cdbd977
Point to full output URL
andrewmogan Aug 21, 2024
a922c44
Checkout branch of listrev which intentionally fails the integration …
andrewmogan Aug 21, 2024
a88f093
Improve Slack message format
andrewmogan Aug 21, 2024
fbe188a
Fix syntax in Slack message step
andrewmogan Aug 21, 2024
2af10ca
Remove debug statement print step
andrewmogan Aug 21, 2024
17391b7
Remove whitespace so GHA will see that this file updated
andrewmogan Aug 22, 2024
bf92de5
Merge branch 'develop' of https://github.com/DUNE-DAQ/daq-release int…
andrewmogan Aug 28, 2024
85329e8
Only run minimal_system_quick_test
andrewmogan Aug 28, 2024
3810a5b
Fix URL formatting in Slack payload
andrewmogan Aug 28, 2024
4ef6156
Add Slack message block to v4 integration tests
andrewmogan Aug 28, 2024
80b3a8b
Bump daq-release version for coredaq-v4.5.7
andrewmogan Aug 28, 2024
3099e42
Revert "Bump daq-release version for coredaq-v4.5.7"
andrewmogan Aug 28, 2024
7fb8217
Merge branch 'develop' of https://github.com/DUNE-DAQ/daq-release int…
andrewmogan Aug 28, 2024
2132133
Use feature branch of daqsystemtest that fails on purpose
andrewmogan Aug 28, 2024
25c7488
Check that slack payload file exists
andrewmogan Aug 28, 2024
c9ba525
Change payload delimiter to underscore
andrewmogan Aug 28, 2024
353e000
Start from scratch with Slack payload file
andrewmogan Aug 28, 2024
cf52333
Remove delimiter argument
andrewmogan Aug 28, 2024
4070c69
Checkout daq-release to get json payload file
andrewmogan Aug 28, 2024
a59f06c
Fix payload file path
andrewmogan Aug 28, 2024
f2af89e
Use direct payload instead of a json file
andrewmogan Aug 28, 2024
76f99f2
Add commas to fix syntax
andrewmogan Aug 28, 2024
3ed5535
Improve job status logic in Slack step
andrewmogan Aug 28, 2024
9ade0cc
Try different logic in results display
andrewmogan Aug 28, 2024
964412e
Remove daq-release checkout
andrewmogan Aug 28, 2024
3caf7b3
Try using blocks syntax again
andrewmogan Aug 28, 2024
f767434
Fix json syntax
andrewmogan Aug 28, 2024
2c4d3cd
Revert "Try using blocks syntax again"
andrewmogan Aug 28, 2024
6ca3f23
Update version to use payload-delimiter
andrewmogan Aug 28, 2024
0670314
Revert "Revert "Try using blocks syntax again""
andrewmogan Aug 28, 2024
e5ac585
Revert "Revert "Revert "Try using blocks syntax again"""
andrewmogan Aug 28, 2024
57f466b
Roll back to something that works
andrewmogan Aug 28, 2024
c800a63
Remove superfluous comma
andrewmogan Aug 28, 2024
510c511
Merge branch 'develop' of https://github.com/DUNE-DAQ/daq-release int…
andrewmogan Sep 3, 2024
6434ce1
Run on daq instead of dunebuild03
andrewmogan Sep 3, 2024
8071faf
Revert integration tests to normal (non-failing)
andrewmogan Sep 3, 2024
c8f5066
Revert to non-failing test and remove checkout of daq-release
andrewmogan Sep 3, 2024
8fb8488
Sync Slack step between v4 and v5 integration tests
andrewmogan Sep 3, 2024
519a199
Add Slack message step to nightly builds
andrewmogan Sep 3, 2024
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
19 changes: 19 additions & 0 deletions .github/workflows/build-nightly-release-alma9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -272,3 +272,22 @@ jobs:
ssh -o StrictHostKeyChecking=no -l cvmfsdunedaqdev oasiscfs05.fnal.gov "cvmfs_server publish dunedaq-development.opensciencegrid.org"

rm -rf $unique_name

send_slack_message:
if: failure()
runs-on: daq
name: send slack message
needs: publish_to_cvmfs
steps:
- name: Send JSON data to Slack workflow
id: slack
uses: slackapi/[email protected]
with:
# Variables used by the Slack workflow
payload: |
{
"workflow_name": "${{ github.workflow }}",
"workflow_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
19 changes: 19 additions & 0 deletions .github/workflows/build-v4-release-alma9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,3 +269,22 @@ jobs:
ssh -o StrictHostKeyChecking=no -l cvmfsdunedaqdev oasiscfs05.fnal.gov "cvmfs_server publish dunedaq-development.opensciencegrid.org"

rm -rf $unique_name

send_slack_message:
if: failure()
runs-on: daq
name: send slack message
needs: publish_to_cvmfs
steps:
- name: Send JSON data to Slack workflow
id: slack
uses: slackapi/[email protected]
with:
# Variables used by the Slack workflow
payload: |
{
"workflow_name": "${{ github.workflow }}",
"workflow_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
19 changes: 19 additions & 0 deletions .github/workflows/nightly-v4-integtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,22 @@ jobs:
- name: Run cleanup script
run: |
/home/nfs/dunedaq/kill_stale_gunicorn_processes.sh

send_slack_message:
if: failure()
runs-on: daq
name: send slack message
needs: integration_tests
steps:
- name: Send JSON data to Slack workflow
id: slack
uses: slackapi/[email protected]
with:
# Variables used by the Slack workflow
payload: |
{
"workflow_name": "${{ github.workflow }}",
"workflow_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
18 changes: 18 additions & 0 deletions .github/workflows/nightly-v5-integtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,21 @@ jobs:
run: |
/home/nfs/dunedaq/kill_stale_gunicorn_processes.sh

send_slack_message:
if: failure()
runs-on: daq
name: send slack message
needs: integration_tests
steps:
- name: Send JSON data to Slack workflow
id: slack
uses: slackapi/[email protected]
with:
# Variables used by the Slack workflow
payload: |
{
"workflow_name": "${{ github.workflow }}",
"workflow_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
Loading