"git@developer.sourcefind.cn:OpenDAS/tilelang.git" did not exist on "44243542fa865a73716c184e17b8cb449545e42a"
Unverified Commit 80beca52 authored by J-shang's avatar J-shang Committed by GitHub
Browse files

[Pipeline] filter trigger (#4876)

parent 173d49e5
### Description ### ### Description ###
#### Test Options ####
- [ ] fast test
- [ ] full test - HPO
- [ ] full test - NAS
- [ ] full test - compression
### Checklist ### ### Checklist ###
- [ ] test case - [ ] test case
......
trigger: none trigger: none
resources:
repositories:
- repository: azpfilter
type: github
name: microsoft/azure-pipeline-filter
endpoint: github-filter-connection
variables:
filter.modified.globs: '!.github/**,!docs/**,!examples/**'
filter.prbody.heading: '#### Test Options'
filter.prbody.optionIndex: 0
stages: stages:
- stage: lint - stage: lint
jobs: jobs:
...@@ -103,10 +115,20 @@ stages: ...@@ -103,10 +115,20 @@ stages:
yarn --cwd ts/webui sanity-check yarn --cwd ts/webui sanity-check
displayName: Sanity check (WebUI) displayName: Sanity check (WebUI)
- stage: filter
jobs:
- job: check
pool:
vmImage: ubuntu-latest
steps:
- template: templates/stage-filter.yml
# To reduce debug cost, steps are sorted differently on each platform, # To reduce debug cost, steps are sorted differently on each platform,
# so that a bug in any module will cause at least one platform to fail quickly. # so that a bug in any module will cause at least one platform to fail quickly.
- stage: test - stage: test
dependsOn: lint
# dependencies.$(StageName).outputs['$(JobName).$(TaskName).$(VariableName)']
condition: and(succeeded(), ne(dependencies.filter.outputs['check.execution.skipsubsequent'], 'true'))
jobs: jobs:
- job: ubuntu_latest - job: ubuntu_latest
pool: pool:
......
trigger: none trigger: none
pr: none
# schedules: # schedules:
# - cron: 0 16 * * * # - cron: 0 16 * * *
# branches: # branches:
# include: [ master ] # include: [ master ]
jobs: resources:
- job: linux repositories:
pool: nni-it - repository: azpfilter
timeoutInMinutes: 60 type: github
name: microsoft/azure-pipeline-filter
endpoint: github-filter-connection
variables:
filter.modified.globs: 'examples/model_compress/**,nni/algorithms/compression/**,nni/compression/**'
filter.prbody.heading: '#### Test Options'
filter.prbody.optionIndex: 3
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
pool: nni-it
timeoutInMinutes: 60
steps: steps:
- template: templates/install-dependencies.yml - template: templates/install-dependencies.yml
parameters: parameters:
platform: ubuntu-latest-gpu platform: ubuntu-latest-gpu
python_env: venv python_env: venv
- template: templates/install-nni.yml - template: templates/install-nni.yml
- template: templates/download-test-data.yml - template: templates/download-test-data.yml
- script: | - script: |
cd test cd test
source scripts/model_compression.sh source scripts/model_compression.sh
displayName: Model compression test displayName: Model compression test
trigger: none trigger: none
pr: none
# schedules: # schedules:
# - cron: 0 16 * * * # - cron: 0 16 * * *
# branches: # branches:
# include: [ master ] # include: [ master ]
jobs: resources:
- job: linux repositories:
pool: nni-it - repository: azpfilter
timeoutInMinutes: 60 type: github
name: microsoft/azure-pipeline-filter
steps: endpoint: github-filter-connection
- template: templates/install-dependencies.yml
parameters: variables:
platform: ubuntu-latest-gpu filter.modified.globs: 'examples/tuners/**,nni/algorithms/hpo/**'
python_env: venv filter.prbody.heading: '#### Test Options'
filter.prbody.optionIndex: 1
- template: templates/install-nni.yml
stages:
- template: templates/install-customized-tuner.yml - stage: filter
jobs:
- script: | - job: check
set -e pool:
(cd test && python -m pytest ut) vmImage: ubuntu-latest
export PATH=$PATH:$PWD/toolchain/yarn/bin steps:
export CI=true - template: templates/stage-filter.yml
(cd ts/nni_manager && yarn test)
displayName: SDK unit test - stage: test
# dependencies.$(StageName).outputs['$(JobName).$(TaskName).$(VariableName)']
# TODO: this should be replaced with a dedicated HPO algo test suite condition: and(succeeded(), ne(dependencies.filter.outputs['check.execution.skipsubsequent'], 'true'))
jobs:
- script: | - job: linux
cd test pool: nni-it
python training_service/nnitest/run_tests.py --config training_service/config/integration_tests.yml --ts local timeoutInMinutes: 60
displayName: Integration test
steps:
# TODO: should add a test on platforms other than linux - template: templates/install-dependencies.yml
parameters:
platform: ubuntu-latest-gpu
python_env: venv
- 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
python training_service/nnitest/run_tests.py --config training_service/config/integration_tests.yml --ts local
displayName: Integration test
# TODO: should add a test on platforms other than linux
trigger: none trigger: none
pr: none
schedules: schedules:
- cron: 0 16 * * * - cron: 0 16 * * *
branches: branches:
include: [ master ] include: [ master ]
jobs: resources:
- job: linux repositories:
pool: nni-it - repository: azpfilter
timeoutInMinutes: 60 type: github
name: microsoft/azure-pipeline-filter
endpoint: github-filter-connection
variables:
filter.modified.globs: 'examples/nas/**,nni/algorithms/nas/**,nni/nas/**,nni/retiarii/**'
filter.prbody.heading: '#### Test Options'
filter.prbody.optionIndex: 2
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
pool: nni-it
timeoutInMinutes: 60
steps: steps:
- template: templates/install-dependencies.yml - template: templates/install-dependencies.yml
parameters: parameters:
platform: ubuntu-latest-gpu platform: ubuntu-latest-gpu
python_env: venv python_env: venv
- template: templates/install-nni.yml - template: templates/install-nni.yml
- script: | - script: |
cd test cd test
source scripts/nas.sh source scripts/nas.sh
displayName: NAS test displayName: NAS test
steps:
- checkout: azpfilter
persistCredentials: true
- task: NodeTool@0
inputs:
versionSpec: '16.x'
- script: npm ci
displayName: NPM Install
- script: node src/main.mjs
name: execution
displayName: Execution
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment