Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Fix remote integration test pipeline #914

Merged
merged 90 commits into from
Mar 25, 2019
Merged
Show file tree
Hide file tree
Changes from 89 commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
d77a99c
fix remote bug
Dec 25, 2018
695d866
Merge pull request #106 from Microsoft/master
SparkSnail Dec 25, 2018
b7e9799
Merge pull request #107 from Microsoft/master
SparkSnail Dec 27, 2018
7cb03f9
add document
Dec 27, 2018
44d1565
add document
Dec 27, 2018
7ab7386
update
Dec 27, 2018
d9e1ea8
update
Dec 27, 2018
2c225a8
update
Dec 27, 2018
be23f55
update
Dec 29, 2018
6f760ab
Merge pull request #108 from Microsoft/master
SparkSnail Jan 2, 2019
9161209
fix remote issue
Jan 3, 2019
e661c55
fix forEach
Jan 3, 2019
4e5d836
Merge pull request #109 from Microsoft/master
SparkSnail Jan 3, 2019
f80e737
fix conflict
Jan 4, 2019
aefc219
Merge branch 'Microsoft-master'
Jan 4, 2019
4fec2cc
update doc according to comments
Jan 7, 2019
dc45661
Merge pull request #111 from Microsoft/master
SparkSnail Jan 7, 2019
11fec6f
update
Jan 7, 2019
a03a191
update
Jan 7, 2019
7c7832c
update
Jan 7, 2019
2c862dc
Merge pull request #112 from Microsoft/master
SparkSnail Jan 8, 2019
85c015d
remove 'any more'
Jan 8, 2019
85cb472
Merge branch 'master' of https://github.com/SparkSnail/nni
Jan 8, 2019
3784355
Merge pull request #113 from Microsoft/master
SparkSnail Jan 9, 2019
d91c980
Merge pull request #114 from Microsoft/master
SparkSnail Jan 14, 2019
9786650
Merge pull request #115 from Microsoft/master
SparkSnail Jan 17, 2019
ef176d2
Merge pull request #116 from Microsoft/master
SparkSnail Jan 22, 2019
1089e80
Merge pull request #117 from Microsoft/master
SparkSnail Jan 23, 2019
627e823
Merge pull request #119 from Microsoft/master
SparkSnail Jan 24, 2019
b633c26
Merge pull request #120 from Microsoft/master
SparkSnail Jan 25, 2019
035d58b
Merge pull request #121 from Microsoft/master
SparkSnail Feb 11, 2019
cd549df
Merge pull request #122 from Microsoft/master
SparkSnail Feb 12, 2019
964743a
Merge pull request #123 from Microsoft/master
SparkSnail Feb 12, 2019
8422992
Merge pull request #124 from Microsoft/master
SparkSnail Feb 13, 2019
40391ec
Merge pull request #125 from Microsoft/master
SparkSnail Feb 18, 2019
1d84526
Merge pull request #126 from Microsoft/master
SparkSnail Feb 20, 2019
1852457
Merge pull request #127 from Microsoft/master
SparkSnail Feb 23, 2019
754a354
Merge pull request #128 from Microsoft/master
SparkSnail Feb 24, 2019
1ee9735
Merge pull request #129 from Microsoft/master
SparkSnail Feb 25, 2019
9f4485c
Merge pull request #130 from Microsoft/master
SparkSnail Feb 25, 2019
b1c3774
Merge pull request #131 from Microsoft/master
SparkSnail Feb 25, 2019
5d7923e
Merge pull request #132 from Microsoft/master
SparkSnail Feb 25, 2019
281f3dc
Merge pull request #133 from Microsoft/master
SparkSnail Feb 26, 2019
2ce9157
Merge pull request #134 from Microsoft/master
SparkSnail Feb 26, 2019
571a7af
Merge pull request #135 from Microsoft/master
SparkSnail Feb 28, 2019
f09d51a
Merge pull request #136 from Microsoft/master
SparkSnail Mar 1, 2019
41a9a59
Merge pull request #137 from Microsoft/master
SparkSnail Mar 5, 2019
21165b5
Merge pull request #138 from Microsoft/master
SparkSnail Mar 7, 2019
d25f7b5
Merge pull request #139 from Microsoft/master
SparkSnail Mar 11, 2019
17e719e
Merge pull request #140 from Microsoft/master
SparkSnail Mar 12, 2019
e25ffbd
Merge pull request #141 from Microsoft/master
SparkSnail Mar 13, 2019
5e777d2
Merge pull request #142 from Microsoft/master
SparkSnail Mar 14, 2019
6ff24a5
Merge pull request #143 from Microsoft/master
SparkSnail Mar 18, 2019
4a13aeb
fix kubeflow-it
Mar 18, 2019
b18c82f
update
Mar 18, 2019
b7b85bf
disable versionCheck to debug
Mar 18, 2019
9f0904e
revert code
Mar 18, 2019
ccf6c04
Merge pull request #144 from Microsoft/master
SparkSnail Mar 20, 2019
6b002d9
Merge branch 'master' of https://github.com/SparkSnail/nni into dev-f…
Mar 20, 2019
eb5e21c
Merge pull request #145 from Microsoft/master
SparkSnail Mar 20, 2019
33327ba
Merge branch 'master' of https://github.com/SparkSnail/nni into dev-f…
Mar 20, 2019
d1a7037
add debug config
Mar 20, 2019
01eb436
fix debug mode
Mar 20, 2019
f796c60
Merge pull request #146 from Microsoft/master
SparkSnail Mar 21, 2019
2209224
Merge branch 'master' of https://github.com/SparkSnail/nni into dev-f…
Mar 21, 2019
b569306
fix Makefile
Mar 21, 2019
4163760
add debug in remote
Mar 21, 2019
426c3b5
revert code
Mar 21, 2019
a8f9ac4
remove prefix in Makefile
Mar 22, 2019
570a503
remove prefix of version
Mar 22, 2019
ed04fc5
add strip() in trialkeeper
Mar 22, 2019
3a99187
fix remote pipeline
Mar 22, 2019
e1ae623
Merge pull request #147 from Microsoft/master
SparkSnail Mar 22, 2019
b3dd688
fix conflict
Mar 22, 2019
ebce7f2
update makefile
Mar 22, 2019
43b2381
set gpu num be 0 in kubeflow
Mar 22, 2019
54e4f9a
fix remote it
Mar 22, 2019
1ee422a
fix remote-it
Mar 25, 2019
188e9ae
fix remote_docker.py
Mar 25, 2019
600dd96
fix remote_docker.py
Mar 25, 2019
ec41d56
Merge pull request #148 from Microsoft/master
SparkSnail Mar 25, 2019
7fc7599
Merge branch 'master' of https://github.com/SparkSnail/nni into dev-f…
Mar 25, 2019
5f64369
fix remote pipeline
Mar 25, 2019
c0715a0
refactor remote_docker.py
Mar 25, 2019
db5ee09
revert code
Mar 25, 2019
86da5ef
revert unused code
Mar 25, 2019
03601ba
revert unused code
Mar 25, 2019
d8ba386
revert unused code
Mar 25, 2019
51fef76
fix remote_docker.py
Mar 25, 2019
084774e
fix remote_docker.py
Mar 25, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions test/pipelines-it-remote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ jobs:
steps:
- script: python3 -m pip install --upgrade pip setuptools --user
displayName: 'Install python tools'
- script: |
cd deployment/pypi
echo 'building prerelease package...'
make build
ls $(Build.SourcesDirectory)/deployment/pypi/dist/
displayName: 'build nni bdsit_wheel'
- script: |
source install.sh
displayName: 'Install nni toolkit via source code'
Expand All @@ -14,17 +20,10 @@ jobs:
- task: CopyFilesOverSSH@0
inputs:
sshEndpoint: remote_nni-ci-gpu-01
sourceFolder: src/sdk/pynni
targetFolder: /tmp/nnitest/$(Build.BuildId)/pynni
overwrite: true
displayName: 'Copy sdk files to remote machine'
- task: CopyFilesOverSSH@0
inputs:
sshEndpoint: remote_nni-ci-gpu-01
sourceFolder: tools
targetFolder: /tmp/nnitest/$(Build.BuildId)/tools
sourceFolder: deployment/pypi/dist/
targetFolder: /tmp/nnitest/$(Build.BuildId)/dist
overwrite: true
displayName: 'Copy tool files to remote machine'
displayName: 'Copy dist files to remote machine'
- task: CopyFilesOverSSH@0
inputs:
sshEndpoint: remote_nni-ci-gpu-01
Expand Down
15 changes: 12 additions & 3 deletions test/remote_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,26 @@ def find_port():
port = random.randint(10000, 20000)
return port

def find_wheel_package(dir):
'''Find the wheel package uploaded to this machine'''
for file_name in os.listdir(dir):
if file_name.endswith('.whl'):
SparkSnail marked this conversation as resolved.
Show resolved Hide resolved
return file_name
return None

def start_container(image, name):
'''Start docker container, generate a port in /tmp/nnitest/{name}/port file'''
port = find_port()
source_dir = '/tmp/nnitest/' + name
run_cmds = ['docker', 'run', '-d', '-p', str(port) + ':22', '--name', name, '--mount', 'type=bind,source=' + source_dir + ',target=/tmp/nni', image]
output = check_output(run_cmds)
commit_id = output.decode('utf-8')
sdk_cmds = ['docker', 'exec', name, 'python3', '-m', 'pip', 'install', '--user', '--no-cache-dir', '/tmp/nni/pynni/']
wheel_name = find_wheel_package(os.path.join(source_dir, 'dist'))
if not wheel_name:
print('Error: could not find wheel package in {0}'.format(source_dir))
exit(1)
sdk_cmds = ['docker', 'exec', name, 'python3', '-m', 'pip', 'install', '/tmp/nni/dist/{0}'.format(wheel_name)]
check_call(sdk_cmds)
tools_cmds = ['docker', 'exec', name, 'python3', '-m', 'pip', 'install', '--user', '--no-cache-dir', '/tmp/nni/tools']
check_call(tools_cmds)
with open(source_dir + '/port', 'w') as file:
file.write(str(port))

Expand Down