From 4e073beebf63d028371f5756cb39a3819e995439 Mon Sep 17 00:00:00 2001 From: JRPan <25518778+JRPan@users.noreply.github.com> Date: Tue, 9 Jul 2024 19:11:23 -0700 Subject: [PATCH] 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 --- .github/workflows/long-tests.yml | 14 +++++++++++--- .github/workflows/short-tests.yml | 10 ++++------ short-tests.sh | 2 ++ 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/.github/workflows/long-tests.yml b/.github/workflows/long-tests.yml index 7007a81ed..71a0a7109 100644 --- a/.github/workflows/long-tests.yml +++ b/.github/workflows/long-tests.yml @@ -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 @@ -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 @@ -102,7 +110,7 @@ jobs: source ./gpu-simulator/setup_environment.sh rm -rf ./gpu-app-collection - git clone git@github.com:accel-sim/gpu-app-collection.git + git clone -b dev git@github.com: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 diff --git a/.github/workflows/short-tests.yml b/.github/workflows/short-tests.yml index c2fbb13fb..1e76120ce 100644 --- a/.github/workflows/short-tests.yml +++ b/.github/workflows/short-tests.yml @@ -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 @@ -27,8 +29,6 @@ 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 @@ -36,11 +36,9 @@ jobs: # 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 @@ -48,4 +46,4 @@ jobs: # 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" \ No newline at end of file + run: echo "skipped Tracer-Simulation. Will perform in merge queue" \ No newline at end of file diff --git a/short-tests.sh b/short-tests.sh index 73e07fde1..c2f357dec 100755 --- a/short-tests.sh +++ b/short-tests.sh @@ -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;