forked from openucx/ucx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
66 changed files
with
1,270 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
jobs: | ||
- job: tests_${{ parameters.name }} | ||
pool: | ||
name: MLNX | ||
demands: ${{ parameters.demands }} | ||
displayName: ${{ parameters.name }} on worker | ||
timeoutInMinutes: 30 | ||
workspace: | ||
clean: all | ||
steps: | ||
- checkout: self | ||
clean: true | ||
fetchDepth: 100 | ||
|
||
- bash: | | ||
source buildlib/az-helpers.sh | ||
if ! unshare --user whoami; then | ||
msg="Missing user namespace support on $(hostname)" | ||
azure_log_error "$msg" | ||
azure_complete_with_issues "$msg" | ||
else | ||
./contrib/test_namespace.sh | ||
fi | ||
displayName: Run namespace test | ||
env: | ||
BUILD_NUMBER: "$(Build.BuildId)-$(Build.BuildNumber)" | ||
JOB_URL: "$(System.TeamFoundationCollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
#!/bin/bash -eEx | ||
# | ||
# Testing script for UCX namespace related functionality | ||
# | ||
# Copyright (c) NVIDIA CORPORATION & AFFILIATES, 2023. ALL RIGHTS RESERVED. | ||
# | ||
# See file LICENSE for terms. | ||
# | ||
# | ||
# Environment variables set by Azure CI: | ||
# - WORKSPACE : path to work dir | ||
# | ||
|
||
source $(dirname $0)/../buildlib/tools/common.sh | ||
|
||
ucx_inst=${WORKSPACE}/install | ||
|
||
echo "==== Running namespace tests on $(hostname) ====" | ||
|
||
server_port_range=1000 | ||
server_port_min=10500 | ||
server_port_max=$((server_port_min + server_port_range)) | ||
server_port=${server_port_min} | ||
|
||
test_namespace() { | ||
# Make sure to try to use CMA when possible | ||
# Expect fallback on SYSV | ||
perftest="$ucx_inst/bin/ucx_perftest -t ucp_get -s 9999999 -n 5" | ||
|
||
echo "==== Running perftest namespace positive tests ====" | ||
|
||
for tls in posix cma,sysv | ||
do | ||
echo "==== Running perftest same non-default USER namespace test for $tls ====" | ||
|
||
cmd="UCX_TLS=$tls $perftest -p $server_port" | ||
step_server_port | ||
unshare --user bash -c "{ $cmd & sleep 3; $cmd localhost; }" | ||
done | ||
|
||
for tl in posix cma | ||
do | ||
echo "==== Running perftest different PID namespace test for $tl ====" | ||
|
||
cmd="$perftest -p $server_port" | ||
step_server_port | ||
sudo unshare --pid --fork sudo -u $USER UCX_TLS=$tl,sysv $cmd & | ||
sleep 3 | ||
sudo unshare --pid --fork sudo -u $USER UCX_TLS=$tl,sysv $cmd localhost | ||
|
||
echo "==== Running perftest different USER namespace test for $tl ====" | ||
cmd="$perftest -p $server_port" | ||
step_server_port | ||
UCX_TLS=$tl,sysv unshare --user $cmd & | ||
sleep 3 | ||
UCX_TLS=$tl,sysv unshare --user $cmd localhost | ||
done | ||
|
||
echo "==== Running perftest different USER namespace test for posix non proc link ====" | ||
cmd="$perftest -p $server_port" | ||
step_server_port | ||
UCX_TLS="posix" UCX_POSIX_USE_PROC_LINK=n unshare --user $cmd & | ||
sleep 3 | ||
UCX_TLS="posix" UCX_POSIX_USE_PROC_LINK=n unshare --user $cmd localhost | ||
} | ||
|
||
prepare | ||
build release | ||
test_namespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.