full-test-hpo.yml 1.49 KB
Newer Older
1
trigger: none
J-shang's avatar
J-shang committed
2

Yuge Zhang's avatar
Yuge Zhang committed
3
4
5
6
schedules:
- cron: 0 18 * * *
  branches:
    include: [ master ]
7
  always: true
8

J-shang's avatar
J-shang committed
9
variables:
J-shang's avatar
J-shang committed
10
  filter.modified.globs: 'examples/tuners/**,nni/algorithms/hpo/**,pipelines/full-test-hpo.yml,'
J-shang's avatar
J-shang committed
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  filter.prbody.heading: '#### Test Options'
  filter.prbody.optionIndex: 1

stages:
- stage: filter
  jobs:
  - job: check
    pool:
      vmImage: ubuntu-latest
    steps:
    - template: templates/stage-filter.yml

- stage: test
  # dependencies.$(StageName).outputs['$(JobName).$(TaskName).$(VariableName)']
  condition: and(succeeded(), ne(dependencies.filter.outputs['check.execution.skipsubsequent'], 'true'))
  jobs:
  - job: linux
Yuge Zhang's avatar
Yuge Zhang committed
28
    pool: nni-it-1es-11
J-shang's avatar
J-shang committed
29
30
31
    timeoutInMinutes: 60

    steps:
32
    - template: templates/check-gpu-status.yml
Yuge Zhang's avatar
Yuge Zhang committed
33

J-shang's avatar
J-shang committed
34
35
    - template: templates/install-dependencies.yml
      parameters:
Yuge Zhang's avatar
Yuge Zhang committed
36
37
        platform: ubuntu-latest-gpu
        python_env: venv
J-shang's avatar
J-shang committed
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54

    - template: templates/install-nni.yml

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

    - script: |
        set -e
        (cd test && python -m pytest ut)
        export PATH=$PATH:$PWD/toolchain/yarn/bin
        export CI=true
        (cd ts/nni_manager && yarn test)
      displayName: SDK unit test

    # TODO: this should be replaced with a dedicated HPO algo test suite

    - script: |
        cd test
Yuge Zhang's avatar
Yuge Zhang committed
55
        python training_service/nnitest/run_tests.py --config training_service/config/integration_tests.yml --ts local
J-shang's avatar
J-shang committed
56
57
58
      displayName: Integration test

  # TODO: should add a test on platforms other than linux