Commit fdcd877f authored by SparkSnail's avatar SparkSnail Committed by GitHub
Browse files

Fix remote pipeline (#2023)

parent 69dfbf5e
...@@ -52,7 +52,7 @@ RUN python3 -m pip --no-cache-dir install Keras==2.1.6 ...@@ -52,7 +52,7 @@ RUN python3 -m pip --no-cache-dir install Keras==2.1.6
# PyTorch # PyTorch
# #
RUN python3 -m pip --no-cache-dir install torch==1.2.0 RUN python3 -m pip --no-cache-dir install torch==1.2.0
RUN python3 -m pip install torchvision==0.4.0 RUN python3 -m pip install torchvision==0.5.0
# #
# sklearn 0.20.0 # sklearn 0.20.0
......
...@@ -20,31 +20,31 @@ jobs: ...@@ -20,31 +20,31 @@ jobs:
displayName: 'Install dependencies for integration tests in remote mode' displayName: 'Install dependencies for integration tests in remote mode'
- task: CopyFilesOverSSH@0 - task: CopyFilesOverSSH@0
inputs: inputs:
sshEndpoint: remote_nni-ci-gpu-01 sshEndpoint: $(end_point)
sourceFolder: deployment/pypi/dist/ sourceFolder: deployment/pypi/dist/
targetFolder: /tmp/nnitest/$(Build.BuildId)/dist targetFolder: /tmp/nnitest/$(Build.BuildId)/dist
overwrite: true overwrite: true
displayName: 'Copy dist files to remote machine' displayName: 'Copy dist files to remote machine'
- task: CopyFilesOverSSH@0 - task: CopyFilesOverSSH@0
inputs: inputs:
sshEndpoint: remote_nni-ci-gpu-01 sshEndpoint: $(end_point)
sourceFolder: test sourceFolder: test
targetFolder: /tmp/nnitest/$(Build.BuildId)/test targetFolder: /tmp/nnitest/$(Build.BuildId)/test
overwrite: true overwrite: true
displayName: 'Copy test files to remote machine' displayName: 'Copy test files to remote machine'
- task: SSH@0 - task: SSH@0
inputs: inputs:
sshEndpoint: remote_nni-ci-gpu-01 sshEndpoint: $(end_point)
runOptions: commands runOptions: commands
commands: python3 /tmp/nnitest/$(Build.BuildId)/test/remote_docker.py --mode start --name $(Build.BuildId) --image nni/nni commands: python3 /tmp/nnitest/$(Build.BuildId)/test/remote_docker.py --mode start --name $(Build.BuildId) --image nni/nni
displayName: 'Start docker' displayName: 'Start docker'
- task: DownloadSecureFile@1 - task: DownloadSecureFile@1
inputs: inputs:
secureFile: remote_ci_private_key secureFile: $(remote_private_key)
- script: | - script: |
cp $(Agent.TempDirectory)/remote_ci_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 -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
cat test/port cat test/port
displayName: 'Get docker port' displayName: 'Get docker port'
- script: | - script: |
......
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