Changing timeout to 60 minutes
This commit is contained in:
Родитель
7cbaf6f2ca
Коммит
513ba9af08
|
@ -13,7 +13,7 @@ trigger:
|
|||
|
||||
jobs:
|
||||
- job: cpu_unit_tests_linux
|
||||
timeoutInMinutes: 12 # how long to run the job before automatically cancelling
|
||||
timeoutInMinutes: 60 # how long to run the job before automatically cancelling
|
||||
pool:
|
||||
# vmImage: 'ubuntu-16.04' # hosted machine
|
||||
name: nlpagentpool
|
||||
|
|
|
@ -13,7 +13,7 @@ trigger:
|
|||
|
||||
jobs:
|
||||
- job: gpu_unit_tests_linux
|
||||
timeoutInMinutes: 30 # how long to run the job before automatically cancelling
|
||||
timeoutInMinutes: 60 # how long to run the job before automatically cancelling
|
||||
pool:
|
||||
name: nlpagentpool
|
||||
|
||||
|
|
|
@ -3,46 +3,45 @@
|
|||
|
||||
# Pull request against these branches will trigger this build
|
||||
pr:
|
||||
- master
|
||||
- staging
|
||||
- master
|
||||
- staging
|
||||
|
||||
#Any commit to this branch will trigger the build.
|
||||
trigger:
|
||||
- staging
|
||||
- master
|
||||
- staging
|
||||
- master
|
||||
|
||||
jobs:
|
||||
- job: notebooks_cpu_unit_tests_linux
|
||||
timeoutInMinutes: 10 # how long to run the job before automatically cancelling
|
||||
pool:
|
||||
name: nlpagentpool
|
||||
- job: notebooks_cpu_unit_tests_linux
|
||||
timeoutInMinutes: 60 # how long to run the job before automatically cancelling
|
||||
pool:
|
||||
name: nlpagentpool
|
||||
|
||||
steps:
|
||||
- bash: |
|
||||
echo "##vso[task.prependpath]/data/anaconda/bin"
|
||||
conda env list
|
||||
displayName: Add Conda to PATH
|
||||
steps:
|
||||
- bash: |
|
||||
echo "##vso[task.prependpath]/data/anaconda/bin"
|
||||
conda env list
|
||||
displayName: Add Conda to PATH
|
||||
|
||||
# Conda creation can take around 10min
|
||||
- bash: |
|
||||
python tools/generate_conda_file.py
|
||||
conda env create -n nlp_cpu -f nlp_cpu.yaml
|
||||
displayName: 'Creating Conda Environment with dependencies'
|
||||
# Conda creation can take around 10min
|
||||
- bash: |
|
||||
python tools/generate_conda_file.py
|
||||
conda env create -n nlp_cpu -f nlp_cpu.yaml
|
||||
displayName: "Creating Conda Environment with dependencies"
|
||||
|
||||
- bash: |
|
||||
source activate nlp_cpu
|
||||
pytest --durations=0 tests/unit -m "notebooks and not gpu and not azureml" --junitxml=junit/test-unitttest.xml
|
||||
displayName: 'Run Unit tests'
|
||||
- bash: |
|
||||
source activate nlp_cpu
|
||||
pytest --durations=0 tests/unit -m "notebooks and not gpu and not azureml" --junitxml=junit/test-unitttest.xml
|
||||
displayName: "Run Unit tests"
|
||||
|
||||
- bash: |
|
||||
echo Remove Conda Environment
|
||||
conda remove -n nlp_cpu --all -q --force -y
|
||||
echo Done Cleanup
|
||||
displayName: 'Cleanup Task'
|
||||
condition: always()
|
||||
|
||||
- task: PublishTestResults@2
|
||||
inputs:
|
||||
testResultsFiles: '**/test-unitttest.xml'
|
||||
testRunTitle: 'Test results for PyTest'
|
||||
- bash: |
|
||||
echo Remove Conda Environment
|
||||
conda remove -n nlp_cpu --all -q --force -y
|
||||
echo Done Cleanup
|
||||
displayName: "Cleanup Task"
|
||||
condition: always()
|
||||
|
||||
- task: PublishTestResults@2
|
||||
inputs:
|
||||
testResultsFiles: "**/test-unitttest.xml"
|
||||
testRunTitle: "Test results for PyTest"
|
||||
|
|
|
@ -3,45 +3,44 @@
|
|||
|
||||
# Pull request against these branches will trigger this build
|
||||
pr:
|
||||
- master
|
||||
- staging
|
||||
- master
|
||||
- staging
|
||||
|
||||
#Any commit to this branch will trigger the build.
|
||||
trigger:
|
||||
- staging
|
||||
- master
|
||||
- staging
|
||||
- master
|
||||
|
||||
jobs:
|
||||
- job: notebooks_gpu_unit_tests_linux
|
||||
timeoutInMinutes: 10 # how long to run the job before automatically cancelling
|
||||
pool:
|
||||
name: nlpagentpool
|
||||
- job: notebooks_gpu_unit_tests_linux
|
||||
timeoutInMinutes: 60 # how long to run the job before automatically cancelling
|
||||
pool:
|
||||
name: nlpagentpool
|
||||
|
||||
steps:
|
||||
- bash: |
|
||||
echo "##vso[task.prependpath]/data/anaconda/bin"
|
||||
conda env list
|
||||
displayName: Add Conda to PATH
|
||||
steps:
|
||||
- bash: |
|
||||
echo "##vso[task.prependpath]/data/anaconda/bin"
|
||||
conda env list
|
||||
displayName: Add Conda to PATH
|
||||
|
||||
- bash: |
|
||||
python tools/generate_conda_file.py --gpu
|
||||
conda env create -n nlp_gpu -f nlp_gpu.yaml
|
||||
displayName: 'Creating Conda Environment with dependencies'
|
||||
- bash: |
|
||||
python tools/generate_conda_file.py --gpu
|
||||
conda env create -n nlp_gpu -f nlp_gpu.yaml
|
||||
displayName: "Creating Conda Environment with dependencies"
|
||||
|
||||
- bash: |
|
||||
source activate nlp_gpu
|
||||
pytest --durations=0 tests/unit -m "notebooks and gpu and not azureml" --junitxml=junit/test-unitttest.xml
|
||||
displayName: 'Run Unit tests'
|
||||
- bash: |
|
||||
source activate nlp_gpu
|
||||
pytest --durations=0 tests/unit -m "notebooks and gpu and not azureml" --junitxml=junit/test-unitttest.xml
|
||||
displayName: "Run Unit tests"
|
||||
|
||||
- bash: |
|
||||
echo Remove Conda Environment
|
||||
conda remove -n nlp_gpu --all -q --force -y
|
||||
echo Done Cleanup
|
||||
displayName: 'Cleanup Task'
|
||||
condition: always()
|
||||
|
||||
- task: PublishTestResults@2
|
||||
inputs:
|
||||
testResultsFiles: '**/test-unitttest.xml'
|
||||
testRunTitle: 'Test results for PyTest'
|
||||
- bash: |
|
||||
echo Remove Conda Environment
|
||||
conda remove -n nlp_gpu --all -q --force -y
|
||||
echo Done Cleanup
|
||||
displayName: "Cleanup Task"
|
||||
condition: always()
|
||||
|
||||
- task: PublishTestResults@2
|
||||
inputs:
|
||||
testResultsFiles: "**/test-unitttest.xml"
|
||||
testRunTitle: "Test results for PyTest"
|
||||
|
|
Загрузка…
Ссылка в новой задаче