Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Debug pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
xlz-jbleclere committed Oct 28, 2020
1 parent 95e2eb4 commit e664ee0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 15 deletions.
2 changes: 1 addition & 1 deletion deployment/azure-pipelines-health-create-pkg.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: DRM Library - Health Test - Compile, test and package
name: Health Test - Compile, test and package

trigger: none
schedules:
Expand Down
18 changes: 9 additions & 9 deletions deployment/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,18 @@ variables:
sudo apt-get install -y --no-install-recommends

stages:
- stage: tests
displayName: Tests
- stage: compile_and_test
displayName: Compile sources and test on hardware
variables:
# Set Git branch conditional variables
${{ if eq(variables['Build.SourceBranch'], 'refs/heads/master') }}:
meteringServer: prod
${{ if ne(variables['Build.SourceBranch'], 'refs/heads/master') }}:
meteringServer: dev
${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags') }}:
tox_minimum: '-m minimum'
tox_mark: '-m minimum'
${{ if not(startsWith(variables['Build.SourceBranch'], 'refs/tags')) }}:
tox_minimum: ''
tox_mark: ''

jobs:
- template: runTestOnEc2.yml
Expand All @@ -69,18 +69,18 @@ stages:
- os_distrib: 'centos_7'
tox_mode: 'debug'
tox_coverage: true
tox_extra_option: '$(tox_minimum)'
tox_extra_option: '$(tox_mark)'
- os_distrib: 'ubuntu_18_04'
tox_mode: 'debug'
tox_coverage: false
tox_extra_option: '$(tox_minimum)'
tox_extra_option: '$(tox_mark)'
dependsOn: 'centos_7'

- stage: release
displayName: Release
- stage: package_release
displayName: Create and release packages
# Build packages only if tagged or scheduled
dependsOn: compile_and_test
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags'))
dependsOn: tests
variables:
# File that store release number for each version
versionsJson: versions.json
Expand Down
2 changes: 1 addition & 1 deletion deployment/runTestFromPkgOnEc2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
image: ${{ config.os_distrib }}
instanceType: ${{ parameters.instance_type }}
acidDir: $(Build.SourcesDirectory)/deployment/acid
ansiblePlaybook: $(Build.SourcesDirectory)/deployment/playbook.yml
ansiblePlaybook: $(Build.SourcesDirectory)/deployment/playbook_test_pkg.yml
dependsOn:
- ${{ if config.dependsOn }}:
- runTests_Aws_${{ config.dependsOn }}
Expand Down
4 changes: 0 additions & 4 deletions tests/test_retry_mechanism.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,6 @@ def test_api_retry_on_lost_connection(accelize_drm, conf_json, cred_json, async_
retry_timeout = drm_manager.get('ws_request_timeout')
retry_sleep = drm_manager.get('ws_retry_period_short')
nb_attempts_expected = int(retry_duration / (retry_timeout + retry_sleep)) + 1
print('retry_duration=', retry_duration)
print('retry_timeout=', retry_timeout)
print('retry_sleep=', retry_sleep)
print('nb_attempts_expected=', nb_attempts_expected)
assert nb_attempts_expected > 1

context = {'data': list(),
Expand Down

0 comments on commit e664ee0

Please sign in to comment.