Skip to content

Commit

Permalink
Send email after CI finish (accel-sim#312)
Browse files Browse the repository at this point in the history
* adding email to CI

* ignore on push for merge queue created branches

* us dev branch gpu-app-collection

* include action link
  • Loading branch information
JRPan committed Sep 3, 2024
1 parent 3289681 commit 4e073be
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/long-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ name: Long Tests
on:
# Triggers the workflow on push or pull request events but only for the mydev branch
push:
# pull_request:
branches-ignore:
- "gh-readonly-queue**"
merge_group:

# Allows you to run this workflow manually from the Actions tab
Expand Down Expand Up @@ -74,7 +75,14 @@ jobs:
./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
ssh ghci@tgrogers-pc01 mkdir -p /home/ghci/accel-sim/correl/git_${GITHUB_REF}"_"$GITHUB_RUN_NUMBER"_"$GITHUB_RUN_ATTEMPT/
rsync --delete -r ./util/plotting/correl-html/ ghci@tgrogers-pc01:/home/ghci/accel-sim/correl/git_${GITHUB_REF}"_"$GITHUB_RUN_NUMBER"_"$GITHUB_RUN_ATTEMPT/
echo "Correlation Report at: https://tgrogers-pc01.ecn.purdue.edu/github-ci/accel-sim/correl/git_${GITHUB_REF}"_"$GITHUB_RUN_NUMBER"_"$GITHUB_RUN_ATTEMPT/"
BODY="Github CI - Build $GITHUB_REF SUCCESS.
Action link: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
Branch/PR Name: $GITHUB_REF_NAME
Correlation Report at: https://tgrogers-pc01.ecn.purdue.edu/github-ci/accel-sim/correl/git_${GITHUB_REF}"_"$GITHUB_RUN_NUMBER"_"$GITHUB_RUN_ATTEMPT/."
SUBJECT="Github CI - Build $GITHUB_REF SUCCESS"
TO="${{ secrets.GROUP_EMAIL }}"
echo "$BODY" | mail -s "$SUBJECT" "$TO"
echo "Correlation Report at: https://tgrogers-pc01.ecn.purdue.edu/github-ci/accel-sim/correl/git_${GITHUB_REF}"_"$GITHUB_RUN_NUMBER"_"$GITHUB_RUN_ATTEMPT/."
PTX-Simulation:
if: github.repository == 'accel-sim/accel-sim-framework'
runs-on: tgrogers-raid
Expand Down Expand Up @@ -102,7 +110,7 @@ jobs:
source ./gpu-simulator/setup_environment.sh
rm -rf ./gpu-app-collection
git clone [email protected]:accel-sim/gpu-app-collection.git
git clone -b dev [email protected]:accel-sim/gpu-app-collection.git
source ./gpu-app-collection/src/setup_environment
srun -c20 make rodinia_2.0-ft GPU_Microbenchmark -j20 -C ./gpu-app-collection/src
./gpu-app-collection/get_regression_data.sh
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/short-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ name: Short Tests
on:
# Triggers the workflow on push or pull request events but only for the mydev branch
push:
branches-ignore:
- "gh-readonly-queue**"
pull_request:

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

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

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Run Simulation
run: echo "skipped SASS-Simulation. Will perform in merge queue"
run: echo "skipped Tracer-Simulation. Will perform in merge queue"
2 changes: 2 additions & 0 deletions short-tests.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -e

if [ ! -n "$CUDA_INSTALL_PATH" ]; then
echo "ERROR ** Install CUDA Toolkit and set CUDA_INSTALL_PATH.";
exit;
Expand Down

0 comments on commit 4e073be

Please sign in to comment.