1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
|
jobs:
- job: SetupServer
displayName: Setup Server
pool:
name: MLNX
demands: mad_server
workspace:
clean: outputs
steps:
- checkout: self
clean: true
fetchDepth: 100
retryCountOnTaskFailure: 5
- task: Bash@3
name: Set_Vars
inputs:
targetType: "inline"
script: |
source ./buildlib/tools/test_mad.sh
set_vars
displayName: Set Vars
- bash: |
source ./buildlib/tools/test_mad.sh
build_ucx_in_docker
docker_run_srv LID
displayName: Setup Server
- job: SetupClient
displayName: Setup Client
pool:
name: MLNX
demands: mad_client
workspace:
clean: outputs
steps:
- checkout: self
clean: true
fetchDepth: 100
retryCountOnTaskFailure: 5
- bash: |
source ./buildlib/tools/test_mad.sh
build_ucx
displayName: Setup Client
- job: TestLid
dependsOn:
- SetupServer
- SetupClient
displayName: Test Lid
timeoutInMinutes: 10
pool:
name: MLNX
demands: mad_client
variables:
LID: $[ dependencies.SetupServer.outputs['Set_Vars.LID'] ]
HCA: $[ dependencies.SetupServer.outputs['Set_Vars.HCA'] ]
steps:
- checkout: none
- bash: |
source ./buildlib/tools/test_mad.sh
run_mad_test lid:$(LID)
env:
HCA: $(HCA)
displayName: Test LID
- job: ServerRestartAndPrintLogs
dependsOn: TestLid
displayName: Server Restart And Print Logs
pool:
name: MLNX
demands: mad_server
steps:
- checkout: none
- bash: |
source ./buildlib/tools/test_mad.sh
docker_stop_srv LID
docker_run_srv GUID
displayName: Server Restart
- job: TestGuid
dependsOn:
- SetupServer
- ServerRestartAndPrintLogs
displayName: Test Guid
timeoutInMinutes: 10
pool:
name: MLNX
demands: mad_client
variables:
GUID: $[ dependencies.SetupServer.outputs['Set_Vars.GUID'] ]
HCA: $[ dependencies.SetupServer.outputs['Set_Vars.HCA'] ]
steps:
- checkout: none
- bash: |
source ./buildlib/tools/test_mad.sh
run_mad_test guid:$(GUID)
env:
HCA: $(HCA)
displayName: Test GUID
- job: ServerStopAndPrintLogs
dependsOn: TestGuid
displayName: Server Stop And Print Logs
condition: always()
pool:
name: MLNX
demands: mad_server
steps:
- checkout: none
- bash: |
source ./buildlib/tools/test_mad.sh
docker_stop_srv GUID
displayName: Server Stop
|