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
d04441b1
"driver/driver.hip.cpp" did not exist on "120ab94aa18d00bf5fdf6b77b512a7f702425e80"
Unverified
Commit
d04441b1
authored
Jun 17, 2020
by
Yuge Zhang
Committed by
GitHub
Jun 17, 2020
Browse files
Exit when installation failed on pipeline (#2548)
parent
3440e246
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
23 additions
and
3 deletions
+23
-3
azure-pipelines.yml
azure-pipelines.yml
+10
-3
test/pipelines/pipelines-it-frameworkcontroller.yml
test/pipelines/pipelines-it-frameworkcontroller.yml
+2
-0
test/pipelines/pipelines-it-kubeflow.yml
test/pipelines/pipelines-it-kubeflow.yml
+1
-0
test/pipelines/pipelines-it-local.yml
test/pipelines/pipelines-it-local.yml
+1
-0
test/pipelines/pipelines-it-pai.yml
test/pipelines/pipelines-it-pai.yml
+2
-0
test/pipelines/pipelines-it-paiYarn.yml
test/pipelines/pipelines-it-paiYarn.yml
+2
-0
test/pipelines/pipelines-it-remote-linux-to-linux.yml
test/pipelines/pipelines-it-remote-linux-to-linux.yml
+3
-0
test/pipelines/pipelines-it-remote-linux-to-windows.yml
test/pipelines/pipelines-it-remote-linux-to-windows.yml
+1
-0
test/scripts/it.sh
test/scripts/it.sh
+1
-0
No files found.
azure-pipelines.yml
View file @
d04441b1
...
@@ -8,6 +8,7 @@ jobs:
...
@@ -8,6 +8,7 @@ jobs:
steps
:
steps
:
-
script
:
|
-
script
:
|
set -e
python3 -m pip install --upgrade pip setuptools --user
python3 -m pip install --upgrade pip setuptools --user
python3 -m pip install pylint==2.3.1 astroid==2.2.5 --user
python3 -m pip install pylint==2.3.1 astroid==2.2.5 --user
python3 -m pip install coverage --user
python3 -m pip install coverage --user
...
@@ -25,6 +26,7 @@ jobs:
...
@@ -25,6 +26,7 @@ jobs:
yarn eslint
yarn eslint
displayName
:
'
Run
eslint'
displayName
:
'
Run
eslint'
-
script
:
|
-
script
:
|
set -e
python3 -m pip install torch==1.5.0+cpu torchvision==0.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html --user
python3 -m pip install torch==1.5.0+cpu torchvision==0.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html --user
python3 -m pip install tensorflow==1.15.2 --user
python3 -m pip install tensorflow==1.15.2 --user
python3 -m pip install keras==2.1.6 --user
python3 -m pip install keras==2.1.6 --user
...
@@ -44,6 +46,7 @@ jobs:
...
@@ -44,6 +46,7 @@ jobs:
python3 -m pylint --rcfile pylintrc nnicli
python3 -m pylint --rcfile pylintrc nnicli
displayName
:
'
Run
pylint'
displayName
:
'
Run
pylint'
-
script
:
|
-
script
:
|
set -e
python3 -m pip install flake8 --user
python3 -m pip install flake8 --user
EXCLUDES=./src/nni_manager/,./src/webui,./tools/nni_annotation/testcase/,./examples/trials/mnist-nas/*/mnist*.py,./examples/trials/nas_cifar10/src/cifar10/general_child.py
EXCLUDES=./src/nni_manager/,./src/webui,./tools/nni_annotation/testcase/,./examples/trials/mnist-nas/*/mnist*.py,./examples/trials/nas_cifar10/src/cifar10/general_child.py
python3 -m flake8 . --count --exclude=$EXCLUDES --select=E9,F63,F72,F82 --show-source --statistics
python3 -m flake8 . --count --exclude=$EXCLUDES --select=E9,F63,F72,F82 --show-source --statistics
...
@@ -67,6 +70,7 @@ jobs:
...
@@ -67,6 +70,7 @@ jobs:
steps
:
steps
:
-
script
:
|
-
script
:
|
set -e
python3 -m pip install --upgrade pip setuptools --user
python3 -m pip install --upgrade pip setuptools --user
python3 -m pip install coverage --user
python3 -m pip install coverage --user
echo "##vso[task.setvariable variable=PATH]${HOME}/.local/bin:${PATH}"
echo "##vso[task.setvariable variable=PATH]${HOME}/.local/bin:${PATH}"
...
@@ -75,6 +79,7 @@ jobs:
...
@@ -75,6 +79,7 @@ jobs:
source install.sh
source install.sh
displayName
:
'
Install
nni
toolkit
via
source
code'
displayName
:
'
Install
nni
toolkit
via
source
code'
-
script
:
|
-
script
:
|
set -e
python3 -m pip install torch==1.3.1+cpu torchvision==0.4.2+cpu -f https://download.pytorch.org/whl/torch_stable.html --user
python3 -m pip install torch==1.3.1+cpu torchvision==0.4.2+cpu -f https://download.pytorch.org/whl/torch_stable.html --user
python3 -m pip install tensorflow==1.15.2 --user
python3 -m pip install tensorflow==1.15.2 --user
python3 -m pip install keras==2.1.6 --user
python3 -m pip install keras==2.1.6 --user
...
@@ -98,18 +103,20 @@ jobs:
...
@@ -98,18 +103,20 @@ jobs:
vmImage
:
'
macOS-10.15'
vmImage
:
'
macOS-10.15'
steps
:
steps
:
-
script
:
python3 -m pip install --upgrade pip setuptools
-
script
:
|
python3 -m pip install --upgrade pip setuptools
echo "##vso[task.setvariable variable=PATH]${HOME}/Library/Python/3.7/bin:${PATH}"
displayName
:
'
Install
python
tools'
displayName
:
'
Install
python
tools'
-
script
:
|
-
script
:
|
source install.sh
source install.sh
echo "##vso[task.setvariable variable=PATH]${HOME}/Library/Python/3.7/bin:${PATH}"
displayName
:
'
Install
nni
toolkit
via
source
code'
displayName
:
'
Install
nni
toolkit
via
source
code'
-
script
:
|
-
script
:
|
set -e
# pytorch Mac binary does not support CUDA, default is cpu version
# pytorch Mac binary does not support CUDA, default is cpu version
python3 -m pip install torchvision==0.6.0 torch==1.5.0 --user
python3 -m pip install torchvision==0.6.0 torch==1.5.0 --user
python3 -m pip install tensorflow==1.15.2 --user
python3 -m pip install tensorflow==1.15.2 --user
brew install swig@3
brew install swig@3
rm /usr/local/bin/swig
rm
-f
/usr/local/bin/swig
ln -s /usr/local/opt/swig\@3/bin/swig /usr/local/bin/swig
ln -s /usr/local/opt/swig\@3/bin/swig /usr/local/bin/swig
nnictl package install --name=SMAC
nnictl package install --name=SMAC
displayName
:
'
Install
dependencies'
displayName
:
'
Install
dependencies'
...
...
test/pipelines/pipelines-it-frameworkcontroller.yml
View file @
d04441b1
...
@@ -10,6 +10,7 @@ jobs:
...
@@ -10,6 +10,7 @@ jobs:
displayName
:
'
Install
python
tools'
displayName
:
'
Install
python
tools'
-
script
:
|
-
script
:
|
set -e
cd deployment/pypi
cd deployment/pypi
if [ -d ./dist ]
if [ -d ./dist ]
then
then
...
@@ -26,6 +27,7 @@ jobs:
...
@@ -26,6 +27,7 @@ jobs:
displayName
:
'
Install
nni
toolkit
via
source
code'
displayName
:
'
Install
nni
toolkit
via
source
code'
-
script
:
|
-
script
:
|
set -e
sudo apt-get install swig -y
sudo apt-get install swig -y
PATH=$HOME/.local/bin:$PATH nnictl package install --name=SMAC
PATH=$HOME/.local/bin:$PATH nnictl package install --name=SMAC
PATH=$HOME/.local/bin:$PATH nnictl package install --name=BOHB
PATH=$HOME/.local/bin:$PATH nnictl package install --name=BOHB
...
...
test/pipelines/pipelines-it-kubeflow.yml
View file @
d04441b1
...
@@ -10,6 +10,7 @@ jobs:
...
@@ -10,6 +10,7 @@ jobs:
displayName
:
'
Install
python
tools'
displayName
:
'
Install
python
tools'
-
script
:
|
-
script
:
|
set -e
cd deployment/pypi
cd deployment/pypi
if [ -d ./dist ]
if [ -d ./dist ]
then
then
...
...
test/pipelines/pipelines-it-local.yml
View file @
d04441b1
...
@@ -9,6 +9,7 @@ jobs:
...
@@ -9,6 +9,7 @@ jobs:
source install.sh
source install.sh
displayName
:
'
Install
nni
toolkit
via
source
code'
displayName
:
'
Install
nni
toolkit
via
source
code'
-
script
:
|
-
script
:
|
set -e
python3 -m pip install scikit-learn==0.20.0 --user
python3 -m pip install scikit-learn==0.20.0 --user
python3 -m pip install torchvision==0.4.1 --user
python3 -m pip install torchvision==0.4.1 --user
python3 -m pip install torch==1.3.1 --user
python3 -m pip install torch==1.3.1 --user
...
...
test/pipelines/pipelines-it-pai.yml
View file @
d04441b1
...
@@ -10,6 +10,7 @@ jobs:
...
@@ -10,6 +10,7 @@ jobs:
displayName
:
'
Install
python
tools'
displayName
:
'
Install
python
tools'
-
script
:
|
-
script
:
|
set -e
cd deployment/pypi
cd deployment/pypi
if [ -d ./dist ]
if [ -d ./dist ]
then
then
...
@@ -26,6 +27,7 @@ jobs:
...
@@ -26,6 +27,7 @@ jobs:
displayName
:
'
Install
nni
toolkit
via
source
code'
displayName
:
'
Install
nni
toolkit
via
source
code'
-
script
:
|
-
script
:
|
set -e
sudo apt-get install swig -y
sudo apt-get install swig -y
PATH=$HOME/.local/bin:$PATH nnictl package install --name=SMAC
PATH=$HOME/.local/bin:$PATH nnictl package install --name=SMAC
PATH=$HOME/.local/bin:$PATH nnictl package install --name=BOHB
PATH=$HOME/.local/bin:$PATH nnictl package install --name=BOHB
...
...
test/pipelines/pipelines-it-paiYarn.yml
View file @
d04441b1
...
@@ -10,6 +10,7 @@ jobs:
...
@@ -10,6 +10,7 @@ jobs:
displayName
:
'
Install
python
tools'
displayName
:
'
Install
python
tools'
-
script
:
|
-
script
:
|
set -e
cd deployment/pypi
cd deployment/pypi
echo 'building prerelease package...'
echo 'building prerelease package...'
make build
make build
...
@@ -22,6 +23,7 @@ jobs:
...
@@ -22,6 +23,7 @@ jobs:
displayName
:
'
Install
nni
toolkit
via
source
code'
displayName
:
'
Install
nni
toolkit
via
source
code'
-
script
:
|
-
script
:
|
set -e
sudo apt-get install swig -y
sudo apt-get install swig -y
PATH=$HOME/.local/bin:$PATH nnictl package install --name=SMAC
PATH=$HOME/.local/bin:$PATH nnictl package install --name=SMAC
PATH=$HOME/.local/bin:$PATH nnictl package install --name=BOHB
PATH=$HOME/.local/bin:$PATH nnictl package install --name=BOHB
...
...
test/pipelines/pipelines-it-remote-linux-to-linux.yml
View file @
d04441b1
...
@@ -6,6 +6,7 @@ jobs:
...
@@ -6,6 +6,7 @@ jobs:
-
script
:
python3 -m pip install --upgrade pip setuptools --user
-
script
:
python3 -m pip install --upgrade pip setuptools --user
displayName
:
'
Install
python
tools'
displayName
:
'
Install
python
tools'
-
script
:
|
-
script
:
|
set -e
cd deployment/pypi
cd deployment/pypi
echo 'building prerelease package...'
echo 'building prerelease package...'
make build
make build
...
@@ -15,6 +16,7 @@ jobs:
...
@@ -15,6 +16,7 @@ jobs:
source install.sh
source install.sh
displayName
:
'
Install
nni
toolkit
via
source
code'
displayName
:
'
Install
nni
toolkit
via
source
code'
-
script
:
|
-
script
:
|
set -e
sudo apt-get install swig -y
sudo apt-get install swig -y
PATH=$HOME/.local/bin:$PATH nnictl package install --name=SMAC
PATH=$HOME/.local/bin:$PATH nnictl package install --name=SMAC
PATH=$HOME/.local/bin:$PATH nnictl package install --name=BOHB
PATH=$HOME/.local/bin:$PATH nnictl package install --name=BOHB
...
@@ -45,6 +47,7 @@ jobs:
...
@@ -45,6 +47,7 @@ jobs:
inputs
:
inputs
:
secureFile
:
$(remote_private_key)
secureFile
:
$(remote_private_key)
-
script
:
|
-
script
:
|
set -e
cp $(Agent.TempDirectory)/$(remote_private_key) test/id_rsa
cp $(Agent.TempDirectory)/$(remote_private_key) test/id_rsa
chmod 600 test/id_rsa
chmod 600 test/id_rsa
scp -P $(remote_port) -i test/id_rsa $(remote_user)@$(remote_host):/tmp/nnitest/$(Build.BuildId)/port test/port
scp -P $(remote_port) -i test/id_rsa $(remote_user)@$(remote_host):/tmp/nnitest/$(Build.BuildId)/port test/port
...
...
test/pipelines/pipelines-it-remote-linux-to-windows.yml
View file @
d04441b1
...
@@ -27,6 +27,7 @@ jobs:
...
@@ -27,6 +27,7 @@ jobs:
-
script
:
make easy-install
-
script
:
make easy-install
displayName
:
"
Install
nni
via
source
code"
displayName
:
"
Install
nni
via
source
code"
-
script
:
|
-
script
:
|
set -e
sudo apt-get install swig -y
sudo apt-get install swig -y
PATH=$HOME/.local/bin:$PATH nnictl package install --name=SMAC
PATH=$HOME/.local/bin:$PATH nnictl package install --name=SMAC
PATH=$HOME/.local/bin:$PATH nnictl package install --name=BOHB
PATH=$HOME/.local/bin:$PATH nnictl package install --name=BOHB
...
...
test/scripts/it.sh
View file @
d04441b1
#!/bin/bash
#!/bin/bash
set
-e
CWD
=
${
PWD
}
CWD
=
${
PWD
}
## Export certain environment variables for unittest code to work
## Export certain environment variables for unittest code to work
...
...
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