integration-test-remote-w2w.yml 1.29 KB
Newer Older
1
2
trigger: none
pr: none
Yuge Zhang's avatar
Yuge Zhang committed
3
4
5
6
schedules:
- cron: 0 20 * * *
  branches:
    include: [ master ]
7
8
9
10
11
12
13
14

variables:
  ssh_user: NNIUser
  ssh_password: P@ssW0rD!

jobs:
- job: remote_windows2windows
  pool: nni-it-windows
15
  timeoutInMinutes: 120
16
17
18
19
20
21

  steps:
  # FIXME: GPU is not supported yet.
  - template: templates/install-dependencies.yml
    parameters:
      platform: windows
22
      python_env: noop
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

  - template: templates/install-nni.yml
    parameters:
      user: false

  - template: templates/install-customized-tuner.yml

  - powershell: |
      python test/vso_tools/ssl_patch.py
    displayName: SSL patch

  # Connects to itself.
  # See username and password in test/vso_tools/build_vm
  - powershell: |
      cd test
      python training_service/nnitest/generate_ts_config.py `
          --ts remote `
          --remote_reuse false `
          --remote_user $(ssh_user) `
          --remote_host localhost `
          --remote_port 22 `
          --remote_pwd "$(ssh_password)" `
          --nni_manager_ip localhost
      Get-Content training_service/config/training_service.yml
      python training_service/nnitest/run_tests.py --config training_service/config/integration_tests.yml --ts remote
    displayName: Integration test

  - template: templates/save-crashed-info.yml
    parameters:
      remote: true