Skip to content

Commit

Permalink
CI: Put perf testing in its own workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwbrei committed Aug 16, 2024
1 parent 92e3ab7 commit 0f4be70
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 17 deletions.
19 changes: 2 additions & 17 deletions .github/workflows/ccpp-epscimac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,6 @@ jobs:
runs-on: [ self-hosted, macOS ]
needs: build-n-install-jana
steps:
- name: run unit tests
run: ctest --test-dir build --output-on-failure -R "jana-unit-tests"
run: ctest $GITHUB_WORKSPACE/build
- name: run perf tests
run: ctest --test-dir build --output-on-failure -R "jana-perf-tests"
- name: upload fake_halldrecon perftest results
uses: actions/upload-artifact@v4
with:
name: perftest_fake_halldrecon.txt
path: perftest_fake_halldrecon/samples.dat
if-no-files-found: error
- name: upload pure_overhead perftest results
uses: actions/upload-artifact@v4
with:
name: perftest_pure_overhead.txt
path: perftest_pure_overhead/samples.dat
if-no-files-found: error
- name: run jana tests
run: $GITHUB_WORKSPACE/Darwin/bin/jana-unit-tests

55 changes: 55 additions & 0 deletions .github/workflows/perftest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: perftest

on:
push:
branches: [master]
pull_request:
branches: [master]


jobs:
jana2_perftest:
name: perftest
runs-on: [self-hosted, macOS, ARM64]

steps:
- uses: actions/checkout@v4
with:
path: JANA2

- name: Make Scripts executable
run: |
chmod +x ./JANA2/.github/jana_build.sh
chmod +x ./JANA2/.github/halld_recon_build.sh
- name: Build JANA2 on Alma9
run: |
docker run --rm \
--platform linux/amd64 \
--privileged \
--mount type=bind,source=${{ github.workspace }},target=/workspace \
raiqarasool/gluex_build:cvmfs /bin/bash -c "source /workspace/JANA2/.github/jana_build.sh"
- name: Run perf tests
run: ctest --test-dir build --output-on-failure -R "jana-perf-tests"
- name: upload fake_halldrecon perftest results
uses: actions/upload-artifact@v4
with:
name: perftest_fake_halldrecon.txt
path: perftest_fake_halldrecon/samples.dat
if-no-files-found: error

- name: Upload pure_overhead perftest results
uses: actions/upload-artifact@v4
with:
name: perftest_pure_overhead.txt
path: perftest_pure_overhead/samples.dat
if-no-files-found: error

- name: Cleaning up created folders
if: always()
run: |
rm -rf JANA2

0 comments on commit 0f4be70

Please sign in to comment.