File tree Expand file tree Collapse file tree 1 file changed +34
-2
lines changed
.azure-pipelines/templates Expand file tree Collapse file tree 1 file changed +34
-2
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,46 @@ steps:
1616 mkdir build && cd build
1717 cmake -DCMAKE_BUILD_TYPE=Release ..
1818 make -j
19- pip install ..
2019 workingDirectory : ' $(System.DefaultWorkingDirectory)'
2120
21+ - task : Bash@3
22+ name : DeployTestEnv
23+ displayName : Deploy Test Env
24+ inputs :
25+ targetType : filePath
26+ filePath : mscclpp/test/deploy/deploy.sh
27+ arguments : nccltest-single-node false
28+ workingDirectory : $(System.DefaultWorkingDirectory)/mscclpp
29+
2230- task : Bash@3
2331 name : PyTests
2432 displayName : Run pytests
2533 inputs :
2634 targetType : inline
2735 script : |
28- mpirun --allow-run-as-root -tag-output -x MSCCLPP_HOME=/root/mscclpp -np 8 python3 -m pytest ./python/test/test_mscclpp.py -x"'
36+ set -e
37+ HOSTFILE=$(System.DefaultWorkingDirectory)/test/deploy/hostfile_ci
38+ SSH_OPTION="StrictHostKeyChecking=no"
39+ KeyFilePath=${SSHKEYFILE_SECUREFILEPATH}
40+ 41+ 42+ CHILD_PID=$!
43+ parallel-ssh -t 0 -h ${HOSTFILE} -x "-i ${KeyFilePath}" -o . \
44+ -O $SSH_OPTION 'sudo docker exec -t mscclpp-test bash -c " \
45+ export PATH=/usr/local/mpi/bin:\$PATH \
46+ export LD_LIBRARY_PATH=/root/mscclpp/build:\$LD_LIBRARY_PATH; \
47+ cd /root/mscclpp; \
48+ mpirun --allow-run-as-root -tag-output -x MSCCLPP_HOME=/root/mscclpp -np 8 python3 -m pytest ./python/test/test_mscclpp.py -x"'
49+ kill $CHILD_PID
2950 workingDirectory : ' $(System.DefaultWorkingDirectory)'
51+
52+ - task : AzureCLI@2
53+ name : StopVMSS
54+ displayName : Deallocate VMSS
55+ condition : always()
56+ inputs :
57+ azureSubscription : ${{ parameters.subscription }}
58+ scriptType : bash
59+ scriptLocation : inlineScript
60+ inlineScript : |
61+ az vmss deallocate --name ${{ parameters.vmssName }} --resource-group mscclpp
You can’t perform that action at this time.
0 commit comments