Skip to content

Commit

Permalink
adding email to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JRPan committed Jul 9, 2024
1 parent 174a78c commit 315e94d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/long-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ name: Long Tests
on:
# Triggers the workflow on push or pull request events but only for the mydev branch
push:
# pull_request:
merge_group:

# Allows you to run this workflow manually from the Actions tab
Expand Down Expand Up @@ -74,7 +73,13 @@ 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.
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
12 changes: 2 additions & 10 deletions .github/workflows/short-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ name: Short Tests

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the mydev branch
push:
pull_request:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
Expand All @@ -27,25 +23,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 315e94d

Please sign in to comment.