Skip to content

Commit ea1e66e

Browse files
committed
AZP/CI: run path compatible test
Signed-off-by: Changcheng Liu <[email protected]>
1 parent c1c458f commit ea1e66e

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

buildlib/pr/io_demo/az-stage-io-demo.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,42 @@ steps:
8585
timeoutInMinutes: 15
8686
condition: and(eq(variables['server_num_paths'], 'auto'), eq(variables['client_num_paths'], 'auto'))
8787

88+
- bash: |
89+
set -eEx
90+
sudo /hpc/local/bin/lshca
91+
source $(workspace)/buildlib/az-helpers.sh
92+
mkdir -p $(workspace)/${{ parameters.name }}
93+
94+
IFS=, read server_host client_host <<< $(agent_hosts)
95+
server_ip=$(get_ip ${{parameters.roce_iface}})
96+
97+
export UCX_NET_DEVICES=$(ibdev2netdev | sed -ne 's/\(\w*\) port \([0-9]\) ==> '${{parameters.roce_iface}}' .*/\1:\2/p')
98+
export UCX_TLS=${{ parameters.iodemo_tls }}
99+
export UCX_RNDV_THRESH=4k
100+
export UCX_IB_NUM_PATHS=${{ parameters.server_num_paths }}
101+
export LD_LIBRARY_PATH=$(workspace)/install/lib:$LD_LIBRARY_PATH
102+
#Server
103+
IODEMO_ROLE=server_0 stdbuf -e0 -o0 timeout -s 9 ${{ parameters.duration }} \
104+
${PWD}/$(io_demo_exe) -d 512:524288 -P 2 -w 16 -t 60 -p 20000 \
105+
${{ parameters.iodemo_args }} &>> $(workspace)/${{ parameters.name }}/server_0.log &
106+
107+
sleep 5
108+
109+
#Client
110+
ssh ${client_host} " \
111+
IODEMO_ROLE=client_0 LD_LIBRARY_PATH=${PWD}/$(workspace)/install/lib:$LD_LIBRARY_PATH UCX_NET_DEVICES=${UCX_NET_DEVICES} \
112+
UCX_TLS=${UCX_TLS} UCX_RNDV_THRESH=4k UCX_IB_NUM_PATHS=${{ parameters.client_num_paths }} \
113+
stdbuf -e0 -o0 timeout -s 9 ${{ parameters.duration }} \
114+
${PWD}/$(io_demo_exe) -d 512:524288 -P 2 -w 16 -t 60 -i 0 ${server_ip}:20000 \
115+
${{ parameters.iodemo_args }} &>> ${PWD}/$(workspace)/${{ parameters.name }}/client_2.log &"
116+
117+
sleep $((${{ parameters.duration }}-5))
118+
119+
displayName: Launch with run_io_demo.sh ( ${{ parameters.name }} )
120+
timeoutInMinutes: 15
121+
condition: or(ne(variables['server_num_paths'], 'auto'), ne(variables['client_num_paths'], 'auto'))
122+
123+
88124
- bash: |
89125
set -eEx
90126
analyzer="/hpc/noarch/git_projects/hpc-mtt-conf/scripts/iodemo_analyzer.py"

buildlib/pr/io_demo/io-demo.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,22 @@ parameters:
4141
interface: $(roce_iface_cx6)
4242
tls: "rc_x"
4343
test_name: tag_umemh_cx6_rc
44+
"server one path compatible on CX4":
45+
args: ""
46+
duration: 600
47+
initial_delay: 9999 # No interference
48+
interface: $(roce_iface_cx4)
49+
tls: "rc_x"
50+
server_num_path: '1'
51+
test_name: tag_cx4_rc_server_path_compatible
52+
"client one path compatible on CX4":
53+
args: ""
54+
duration: 600
55+
initial_delay: 9999 # No interference
56+
interface: $(roce_iface_cx4)
57+
tls: "rc_x"
58+
client_num_path: '1'
59+
test_name: tag_cx4_rc_client_path_compatible
4460

4561
jobs:
4662
- job: io_build

0 commit comments

Comments
 (0)