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

Send email after CI finish #312

Merged
merged 4 commits into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
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