Skip to content

Commit

Permalink
Add a test for CI purposes
Browse files Browse the repository at this point in the history
Run the various PMIx "group" examples as tests. Only
checks single-node operations at this time, but at
least verifies that the group support continues to
work.

Signed-off-by: Ralph Castain <[email protected]>
  • Loading branch information
rhc54 committed Dec 19, 2024
1 parent f065667 commit e675165
Showing 1 changed file with 76 additions and 0 deletions.
76 changes: 76 additions & 0 deletions .github/workflows/group.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: GROUP

on: [pull_request]

jobs:
group-testsuite:
runs-on: ubuntu-22.04
steps:
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y --no-install-recommends wget software-properties-common hwloc libhwloc-dev libevent-2.1-7 libevent-dev
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Git clone PMIx
uses: actions/checkout@v3
with:
submodules: recursive
repository: openpmix/openpmix
path: openpmix/master
ref: master
- name: Build PMIx
run: |
cd openpmix/master
./autogen.pl
./configure --prefix=$RUNNER_TEMP/pmixinstall
make -j
make install
- name: Git clone PRRTE
uses: actions/checkout@v3
with:
submodules: recursive
clean: false
- name: Build PRRTE
run: |
./autogen.pl
./configure --prefix=$RUNNER_TEMP/prteinstall --with-pmix=$RUNNER_TEMP/pmixinstall
make -j
make install
- name: Tweak PRRTE
run: |
# Tweak PRRTE
mca_params="$HOME/.prte/mca-params.conf"
mkdir -p "$(dirname "$mca_params")"
echo rmaps_default_mapping_policy = :oversubscribe >> "$mca_params"
- name: Run simple group
run: |
export PATH=$RUNNER_TEMP/prteinstall/bin:${PATH}
export LD_LIBRARY_PATH=$RUNNER_TEMP/prteinstall/lib:${LD_LIBRARY_PATH}
prterun -n 4 ./openpmix/master/examples/group >& /dev/null
- name: Run simple group with add-members
run: |
export PATH=$RUNNER_TEMP/prteinstall/bin:${PATH}
export LD_LIBRARY_PATH=$RUNNER_TEMP/prteinstall/lib:${LD_LIBRARY_PATH}
prterun -n 8 ./openpmix/master/examples/group --add-members >& /dev/null
- name: Run simple group with query
run: |
export PATH=$RUNNER_TEMP/prteinstall/bin:${PATH}
export LD_LIBRARY_PATH=$RUNNER_TEMP/prteinstall/lib:${LD_LIBRARY_PATH}
prterun -n 5 ./openpmix/master/examples/group --test-query >& /dev/null
- name: Run local CID group
run: |
export PATH=$RUNNER_TEMP/prteinstall/bin:${PATH}
export LD_LIBRARY_PATH=$RUNNER_TEMP/prteinstall/lib:${LD_LIBRARY_PATH}
prterun -n 4 ./openpmix/master/examples/group_lcl_cid >& /dev/null
- name: Run async group
run: |
export PATH=$RUNNER_TEMP/prteinstall/bin:${PATH}
export LD_LIBRARY_PATH=$RUNNER_TEMP/prteinstall/lib:${LD_LIBRARY_PATH}
prterun -n 4 ./openpmix/master/examples/asyncgroup >& /dev/null
- name: Run group dmodex
run: |
export PATH=$RUNNER_TEMP/prteinstall/bin:${PATH}
export LD_LIBRARY_PATH=$RUNNER_TEMP/prteinstall/lib:${LD_LIBRARY_PATH}
prterun -n 4 ./openpmix/master/examples/group_dmodex >& /dev/null

0 comments on commit e675165

Please sign in to comment.