Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial nb_gpu_unit_tests. Add fix for paramiko bug to pin to 2.4.2 #846

Merged
merged 1 commit into from
Jun 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions tests/ci/env-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ steps:
displayName: Add Conda to PATH

- script:
pip install paramiko==2.4.2 &&
pip install azureml-sdk &&
pip install azure-cli &&
pip install --upgrade azureml-sdk[cli]
pip install azure-cli
displayName: 'install azureml-sdk'


Expand Down
66 changes: 66 additions & 0 deletions tests/ci/notebooks_gpu_unit_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
#
variables:
- group: AzureKeyVaultSecrets
- name : 'test'
value : 'tests/ci/run_pytest.py'
- name : 'testfolder'
value : './tests/unit'
- name : 'testmarkers'
value : '"not vw and notebooks and not spark and gpu"'
- name : 'junitxml'
value : 'reports/test-unit.xml'
- name : 'maxnodes'
value : 4
- name : 'reponame'
value : 'Recommenders'
- name : 'branch'
value : 'TestJobs'
- name : 'clustername'
value : 'reco-nightly-gpu'
- name : 'vmsize'
value : 'STANDARD_NC6'
- name : 'dockerproc'
value : 'gpu'
- name : 'expname'
value : 'notebooks_unit_gpu'
- name : 'rg'
value : 'recommender'
- name : 'wsname'
value : 'RecoWS'

trigger: none

pr:
- staging
- master

jobs:
- job : notebooks_gpu_unit_unit_tests
timeoutInMinutes: 120
pool:
vmImage: 'ubuntu-16.04'

steps:

- script: |
az login --service-principal -u $(ClientID) -p $(ClientSecret) --tenant $(TenantID)
displayName: 'Login to Azure'

- template: env-setup.yml # template reference

- script:
python scripts/generate_conda_file.py --gpu --name reco
displayName: ' generate_conda_file.py'

- script:
python tests/ci/submit_azureml_pytest.py --subid $(SubscriptionID) --testfolder $(testfolder) --testmarkers $(testmarkers) --clustername $(clustername) --expname $(expname) --dockerproc $(dockerproc) --junitxml $(junitxml) --reponame $(reponame) --branch $(branch)
displayName: 'submit_azureml_pytest'

- task: PublishTestResults@2
displayName: 'Publish Test Results **/test-*.xml'
inputs:
testResultsFiles: '**/test-*.xml'
failTaskOnFailedTests: true
condition: succeededOrFailed()