Skip to content

Commit

Permalink
AZP/CI: run path compatible test
Browse files Browse the repository at this point in the history
Signed-off-by: Changcheng Liu <jerrliu@nvidia.com>
  • Loading branch information
changchengx committed Mar 30, 2022
1 parent c1c458f commit 180676e
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
36 changes: 36 additions & 0 deletions buildlib/pr/io_demo/az-stage-io-demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,42 @@ steps:
timeoutInMinutes: 15
condition: and(eq(variables['server_num_paths'], 'auto'), eq(variables['client_num_paths'], 'auto'))

- bash: |
set -eEx
sudo /hpc/local/bin/lshca
source $(workspace)/buildlib/az-helpers.sh
mkdir -p $(workspace)/${{ parameters.name }}
IFS=, read server_host client_host <<< $(agent_hosts)
server_ip=$(get_ip ${{parameters.roce_iface}})
export UCX_NET_DEVICES=$(ibdev2netdev | sed -ne 's/\(\w*\) port \([0-9]\) ==> '${{parameters.roce_iface}}' .*/\1:\2/p')
export UCX_TLS=${{ parameters.iodemo_tls }}
export UCX_RNDV_THRESH=4k
export UCX_IB_NUM_PATHS=${{ parameters.server_num_paths }}
export LD_LIBRARY_PATH=$(workspace)/install/lib:$LD_LIBRARY_PATH
#Server
IODEMO_ROLE=server_0 stdbuf -e0 -o0 timeout -s 9 ${{ parameters.duration }} \
${PWD}/$(io_demo_exe) -d 512:524288 -P 2 -w 16 -t 60 -p 20000 \
${{ parameters.iodemo_args }} &>> $(workspace)/${{ parameters.name }}/server_0.log &
sleep 5
#Client
ssh ${client_host} " \
IODEMO_ROLE=client_0 LD_LIBRARY_PATH=${PWD}/$(workspace)/install/lib:$LD_LIBRARY_PATH UCX_NET_DEVICES=${UCX_NET_DEVICES} \
UCX_TLS=${UCX_TLS} UCX_RNDV_THRESH=4k UCX_IB_NUM_PATHS=${{ parameters.client_num_paths }} \
stdbuf -e0 -o0 timeout -s 9 ${{ parameters.duration }} \
${PWD}/$(io_demo_exe) -d 512:524288 -P 2 -w 16 -t 60 -i 0 ${server_ip}:20000 \
${{ parameters.iodemo_args }} &>> ${PWD}/$(workspace)/${{ parameters.name }}/client_2.log &"
sleep $((${{ parameters.duration }}-5))
displayName: Launch with run_io_demo.sh ( ${{ parameters.name }} )
timeoutInMinutes: 15
condition: or(ne(variables['server_num_paths'], 'auto'), ne(variables['client_num_paths'], 'auto'))


- bash: |
set -eEx
analyzer="/hpc/noarch/git_projects/hpc-mtt-conf/scripts/iodemo_analyzer.py"
Expand Down
16 changes: 16 additions & 0 deletions buildlib/pr/io_demo/io-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,22 @@ parameters:
interface: $(roce_iface_cx6)
tls: "rc_x"
test_name: tag_umemh_cx6_rc
"server one path compatible on CX4":
args: ""
duration: 600
initial_delay: 9999 # No interference
interface: $(roce_iface_cx4)
tls: "rc_x"
server_num_path: '1'
test_name: tag_cx4_rc_server_path_compatible
"client one path compatible on CX4":
args: ""
duration: 600
initial_delay: 9999 # No interference
interface: $(roce_iface_cx4)
tls: "rc_x"
client_num_path: '1'
test_name: tag_cx4_rc_client_path_compatible

jobs:
- job: io_build
Expand Down

0 comments on commit 180676e

Please sign in to comment.