Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
80beca52
"git@developer.sourcefind.cn:OpenDAS/tilelang.git" did not exist on "44243542fa865a73716c184e17b8cb449545e42a"
Unverified
Commit
80beca52
authored
Jun 13, 2022
by
J-shang
Committed by
GitHub
Jun 13, 2022
Browse files
[Pipeline] filter trigger (#4876)
parent
173d49e5
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
174 additions
and
63 deletions
+174
-63
.github/pull_request_template.md
.github/pull_request_template.md
+5
-0
pipelines/fast-test.yml
pipelines/fast-test.yml
+22
-0
pipelines/full-test-compression.yml
pipelines/full-test-compression.yml
+40
-16
pipelines/full-test-hpo.yml
pipelines/full-test-hpo.yml
+56
-32
pipelines/full-test-nas.yml
pipelines/full-test-nas.yml
+39
-15
pipelines/templates/stage-filter.yml
pipelines/templates/stage-filter.yml
+12
-0
No files found.
.github/pull_request_template.md
View file @
80beca52
### Description ###
### Description ###
#### Test Options ####
-
[ ] fast test
-
[ ] full test - HPO
-
[ ] full test - NAS
-
[ ] full test - compression
### Checklist ###
### Checklist ###
-
[ ] test case
-
[ ] test case
...
...
pipelines/fast-test.yml
View file @
80beca52
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
:
...
...
pipelines/full-test-compression.yml
View file @
80beca52
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
pipelines/full-test-hpo.yml
View file @
80beca52
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
pipelines/full-test-nas.yml
View file @
80beca52
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
pipelines/templates/stage-filter.yml
0 → 100644
View file @
80beca52
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment