File: jobs-io-demo.yaml

package info (click to toggle)
mpich 4.3.0%2Breally4.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 419,120 kB
  • sloc: ansic: 1,215,557; cpp: 74,755; javascript: 40,763; f90: 20,649; sh: 18,463; xml: 14,418; python: 14,397; perl: 13,772; makefile: 9,279; fortran: 8,063; java: 4,553; asm: 324; ruby: 176; lisp: 19; php: 8; sed: 4
file content (90 lines) | stat: -rw-r--r-- 2,609 bytes parent folder | download | duplicates (2)
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
parameters:
  - name: name
    type: string
    default: "subtest"
  - name: demands
    type: string
    default: "ucx_iodemo -equals yes"
  - name: initial_delay
    type: number
    default: 20
  - name: cycles
    type: number
    default: 100
  - name: duration
    type: number
    default: 600
  - name: interference
    type: string
    default: 'Yes'
  - name: downtime
    type: number
    default: 5
  - name: uptime
    type: number
    default: 180
  - name: tests
    type: object
    default: []
  - name: ece
    type: string
    default: "0"

jobs:  
  - job: test_${{ parameters.name }}
    dependsOn: io_build
    workspace:
      clean: all

    pool:
      name: MLNX
      demands: ${{ parameters.demands }}

    strategy:
      matrix:
        ${{ each test in parameters.tests }}:
          ${{ test.Key }}:
            test_name: ${{ test.Value.test_name }}
            test_args: ${{ test.Value.args }}
            test_time: ${{ parameters.duration }}
            test_interface: ${{ test.Value.interface }}
            test_ucx_tls: ${{ test.Value.tls }}
            test_extra_run_args: ${{ test.Value.extra_run_args }}
            initial_delay: ${{ coalesce(test.Value.initial_delay, parameters.initial_delay) }}
            test_interference: ${{ parameters.interference }}
            test_with_ece: ${{ coalesce(test.Value.ece, parameters.ece) }}
      maxParallel: 1

    variables:
      workspace: drop_$(Build.BuildId)
      io_demo_exe: drop_$(Build.BuildId)/install/bin/io_demo
      cycles: ${{ parameters.cycles }}
      downtime: ${{ parameters.downtime }}
      uptime: ${{ parameters.uptime }}

    displayName: "Test "
    steps:
      - checkout: none
        clean: true
      - task: DownloadBuildArtifacts@0
        displayName: 'Download Build Artifacts'
        inputs:
          artifactName: drop_$(Build.BuildId)
          downloadPath: $(System.DefaultWorkingDirectory)
      - bash: chmod u+rwx $(workspace) -R
      - template: az-stage-io-demo.yaml
        parameters:
          name: $(test_name)
          iodemo_args: $(test_args)
          duration: $(test_time)
          roce_iface: $(test_interface)
          iodemo_tls: $(test_ucx_tls)
          initial_delay: $(initial_delay)
          interference: $(test_interference)
          extra_run_args: $(test_extra_run_args)
          ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
            analyzer_allow_list_args: '--allow_list $(System.PullRequest.TargetBranch)'
      - bash: |
          rm -rf $(workspace)
        displayName: Remove artifacts
        condition: succeeded()