From 315e94db7dcd0172fb9ceed8cf7399930629192f Mon Sep 17 00:00:00 2001 From: JRPAN <25518778+JRPan@users.noreply.github.com> Date: Tue, 9 Jul 2024 17:24:54 -0400 Subject: [PATCH 1/4] adding email to CI --- .github/workflows/long-tests.yml | 9 +++++++-- .github/workflows/short-tests.yml | 12 ++---------- short-tests.sh | 2 ++ 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/long-tests.yml b/.github/workflows/long-tests.yml index 7007a81ed..6c4579a37 100644 --- a/.github/workflows/long-tests.yml +++ b/.github/workflows/long-tests.yml @@ -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 @@ -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 diff --git a/.github/workflows/short-tests.yml b/.github/workflows/short-tests.yml index c2fbb13fb..6d370a501 100644 --- a/.github/workflows/short-tests.yml +++ b/.github/workflows/short-tests.yml @@ -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 @@ -27,8 +23,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 +30,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 +40,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; From 4a0a2ecc726f2167f42faa95c511d714f20e5c6c Mon Sep 17 00:00:00 2001 From: JRPAN <25518778+JRPan@users.noreply.github.com> Date: Tue, 9 Jul 2024 18:00:00 -0400 Subject: [PATCH 2/4] ignore on push for merge queue created branches --- .github/workflows/long-tests.yml | 2 ++ .github/workflows/short-tests.yml | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/long-tests.yml b/.github/workflows/long-tests.yml index 6c4579a37..95883ef0d 100644 --- a/.github/workflows/long-tests.yml +++ b/.github/workflows/long-tests.yml @@ -6,6 +6,8 @@ name: Long Tests on: # Triggers the workflow on push or pull request events but only for the mydev branch push: + branches-ignore: + - "gh-readonly-queue**" merge_group: # Allows you to run this workflow manually from the Actions tab diff --git a/.github/workflows/short-tests.yml b/.github/workflows/short-tests.yml index 6d370a501..1e76120ce 100644 --- a/.github/workflows/short-tests.yml +++ b/.github/workflows/short-tests.yml @@ -4,7 +4,13 @@ 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: + branches-ignore: + - "gh-readonly-queue**" 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 From 4c1453915e9e2f44e060d88c42a77f9b8146f3db Mon Sep 17 00:00:00 2001 From: JRPAN <25518778+JRPan@users.noreply.github.com> Date: Tue, 9 Jul 2024 18:41:51 -0400 Subject: [PATCH 3/4] us dev branch gpu-app-collection --- .github/workflows/long-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/long-tests.yml b/.github/workflows/long-tests.yml index 95883ef0d..a7058bf6f 100644 --- a/.github/workflows/long-tests.yml +++ b/.github/workflows/long-tests.yml @@ -109,7 +109,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 From 9e38e9a695bea7e4b87f0eecfccc28699b6c53d3 Mon Sep 17 00:00:00 2001 From: JRPAN <25518778+JRPan@users.noreply.github.com> Date: Tue, 9 Jul 2024 20:29:37 -0400 Subject: [PATCH 4/4] include action link --- .github/workflows/long-tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/long-tests.yml b/.github/workflows/long-tests.yml index a7058bf6f..71a0a7109 100644 --- a/.github/workflows/long-tests.yml +++ b/.github/workflows/long-tests.yml @@ -76,6 +76,7 @@ jobs: 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/ 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"