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
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
Show 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
:
-
repository
:
azpfilter
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
pool
:
nni-it
timeoutInMinutes
:
60
timeoutInMinutes
:
60
...
...
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
:
-
repository
:
azpfilter
type
:
github
name
:
microsoft/azure-pipeline-filter
endpoint
:
github-filter-connection
variables
:
filter.modified.globs
:
'
examples/tuners/**,nni/algorithms/hpo/**'
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
pool
:
nni-it
pool
:
nni-it
timeoutInMinutes
:
60
timeoutInMinutes
:
60
...
@@ -35,4 +59,4 @@ jobs:
...
@@ -35,4 +59,4 @@ jobs:
python training_service/nnitest/run_tests.py --config training_service/config/integration_tests.yml --ts local
python training_service/nnitest/run_tests.py --config training_service/config/integration_tests.yml --ts local
displayName
:
Integration test
displayName
:
Integration test
# TODO: should add a test on platforms other than linux
# 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
:
-
repository
:
azpfilter
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
pool
:
nni-it
timeoutInMinutes
:
60
timeoutInMinutes
:
60
...
...
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