Skip to content

Commit 4d79e27

Browse files
authored
Send email after CI finish (#312)
* adding email to CI * ignore on push for merge queue created branches * us dev branch gpu-app-collection * include action link
1 parent 174a78c commit 4d79e27

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

.github/workflows/long-tests.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ name: Long Tests
66
on:
77
# Triggers the workflow on push or pull request events but only for the mydev branch
88
push:
9-
# pull_request:
9+
branches-ignore:
10+
- "gh-readonly-queue**"
1011
merge_group:
1112

1213
# Allows you to run this workflow manually from the Actions tab
@@ -74,7 +75,14 @@ jobs:
7475
./util/plotting/plot-correlation.py -c ./statistics-archive/ubench/ampere-ubench-sass.csv -H ./hw_run/AMPERE-RTX3070/11.2/ | tee ampere-ubench-correl.txt
7576
ssh ghci@tgrogers-pc01 mkdir -p /home/ghci/accel-sim/correl/git_${GITHUB_REF}"_"$GITHUB_RUN_NUMBER"_"$GITHUB_RUN_ATTEMPT/
7677
rsync --delete -r ./util/plotting/correl-html/ ghci@tgrogers-pc01:/home/ghci/accel-sim/correl/git_${GITHUB_REF}"_"$GITHUB_RUN_NUMBER"_"$GITHUB_RUN_ATTEMPT/
77-
echo "Correlation Report at: https://tgrogers-pc01.ecn.purdue.edu/github-ci/accel-sim/correl/git_${GITHUB_REF}"_"$GITHUB_RUN_NUMBER"_"$GITHUB_RUN_ATTEMPT/"
78+
BODY="Github CI - Build $GITHUB_REF SUCCESS.
79+
Action link: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
80+
Branch/PR Name: $GITHUB_REF_NAME
81+
Correlation Report at: https://tgrogers-pc01.ecn.purdue.edu/github-ci/accel-sim/correl/git_${GITHUB_REF}"_"$GITHUB_RUN_NUMBER"_"$GITHUB_RUN_ATTEMPT/."
82+
SUBJECT="Github CI - Build $GITHUB_REF SUCCESS"
83+
TO="${{ secrets.GROUP_EMAIL }}"
84+
echo "$BODY" | mail -s "$SUBJECT" "$TO"
85+
echo "Correlation Report at: https://tgrogers-pc01.ecn.purdue.edu/github-ci/accel-sim/correl/git_${GITHUB_REF}"_"$GITHUB_RUN_NUMBER"_"$GITHUB_RUN_ATTEMPT/."
7886
PTX-Simulation:
7987
if: github.repository == 'accel-sim/accel-sim-framework'
8088
runs-on: tgrogers-raid
@@ -102,7 +110,7 @@ jobs:
102110
source ./gpu-simulator/setup_environment.sh
103111
104112
rm -rf ./gpu-app-collection
105-
git clone [email protected]:accel-sim/gpu-app-collection.git
113+
git clone -b dev [email protected]:accel-sim/gpu-app-collection.git
106114
source ./gpu-app-collection/src/setup_environment
107115
srun -c20 make rodinia_2.0-ft GPU_Microbenchmark -j20 -C ./gpu-app-collection/src
108116
./gpu-app-collection/get_regression_data.sh

.github/workflows/short-tests.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ name: Short Tests
66
on:
77
# Triggers the workflow on push or pull request events but only for the mydev branch
88
push:
9+
branches-ignore:
10+
- "gh-readonly-queue**"
911
pull_request:
1012

1113
# Allows you to run this workflow manually from the Actions tab
@@ -27,25 +29,21 @@ jobs:
2729
run: /bin/bash $GITHUB_WORKSPACE/short-tests.sh
2830
PTX-Simulation:
2931
runs-on: ubuntu-latest
30-
container:
31-
image: tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7
3232
# env:
3333

3434
# Steps represent a sequence of tasks that will be executed as part of the job
3535
steps:
3636
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
3737
- uses: actions/checkout@v4
3838
- name: Run Simulation
39-
run: echo "skipped SASS-Simulation. Will perform in merge queue"
39+
run: echo "skipped PTX-Simulation. Will perform in merge queue"
4040
Tracer-Tool:
4141
runs-on: ubuntu-latest
42-
container:
43-
image: tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7
4442
# env:
4543

4644
# Steps represent a sequence of tasks that will be executed as part of the job
4745
steps:
4846
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
4947
- uses: actions/checkout@v4
5048
- name: Run Simulation
51-
run: echo "skipped SASS-Simulation. Will perform in merge queue"
49+
run: echo "skipped Tracer-Simulation. Will perform in merge queue"

short-tests.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
set -e
4+
35
if [ ! -n "$CUDA_INSTALL_PATH" ]; then
46
echo "ERROR ** Install CUDA Toolkit and set CUDA_INSTALL_PATH.";
57
exit;

0 commit comments

Comments
 (0)