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

Reduce Build Matrix #11539

Merged
merged 3 commits into from
May 20, 2020
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
51 changes: 1 addition & 50 deletions eng/pipelines/templates/jobs/archetype-sdk-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,6 @@ parameters:
PythonVersion: '3.5'
CoverageArg: ''
RunForPR: false
Linux_Python36:
OSName: 'Linux'
OSVmImage: 'ubuntu-18.04'
PythonVersion: '3.6'
CoverageArg: ''
RunForPR: false
Linux_Python37:
OSName: 'Linux'
OSVmImage: 'ubuntu-18.04'
PythonVersion: '3.7'
CoverageArg: ''
RunForPR: false
Linux_Python38:
OSName: 'Linux'
OSVmImage: 'ubuntu-18.04'
Expand Down Expand Up @@ -90,6 +78,7 @@ jobs:
parameters:
ServiceDirectory: ${{ parameters.ServiceDirectory }}
BuildTargetingString: ${{ parameters.BuildTargetingString }}
TestMarkArgument: ${{ parameters.TestMarkArgument }}

- job: 'Test'
condition: and(succeededOrFailed(), ne(variables['Skip.Test'], 'true'))
Expand Down Expand Up @@ -146,44 +135,6 @@ jobs:
ServiceDirectory: ${{ parameters.ServiceDirectory }}
BuildTargetingString: ${{ parameters.BuildTargetingString }}

- job: 'RunMyPy'
condition: and(succeededOrFailed(), ne(variables['Skip.MyPy'], 'true'))
displayName: 'Run MyPy'
variables:
- template: ../variables/globals.yml

dependsOn:
- 'Build'

pool:
vmImage: 'ubuntu-18.04'

steps:
- template: ../steps/run_mypy.yml
parameters:
ServiceDirectory: ${{ parameters.ServiceDirectory }}
BuildTargetingString: ${{ parameters.BuildTargetingString }}
TestMarkArgument: ${{ parameters.TestMarkArgument }}

- job: 'RunPyLint'
condition: and(succeededOrFailed(), ne(variables['Skip.Pylint'], 'true'))
displayName: 'Run Pylint'
variables:
- template: ../variables/globals.yml

dependsOn:
- 'Build'

pool:
vmImage: 'ubuntu-18.04'

steps:
- template: ../steps/run_pylint.yml
parameters:
ServiceDirectory: ${{ parameters.ServiceDirectory }}
BuildTargetingString: ${{ parameters.BuildTargetingString }}
TestMarkArgument: ${{ parameters.TestMarkArgument }}

- job: 'RunRegression'
condition: and(succeededOrFailed(), or(eq(variables['Run.Regression'], 'true'), and(eq(variables['Build.Reason'], 'Schedule'), eq(variables['System.TeamProject'],'internal'))))
displayName: 'Run Regression'
Expand Down
17 changes: 16 additions & 1 deletion eng/pipelines/templates/steps/analyze.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
parameters:
BuildTargetingString: 'azure-*'
ServiceDirectory: ''
TestMarkArgument: ''

steps:
- task: UsePythonVersion@0
Expand Down Expand Up @@ -69,4 +70,18 @@ steps:
condition: ne(variables['Skip.VerifyWhl'],'true')
inputs:
scriptPath: 'scripts/devops_tasks/setup_execute_tests.py'
arguments: '"${{ parameters.BuildTargetingString }}" --service=${{parameters.ServiceDirectory}} --toxenv=verifywhl'
arguments: '"${{ parameters.BuildTargetingString }}" --service=${{parameters.ServiceDirectory}} --toxenv=verifywhl'

- ${{if ne(variables['Skip.MyPy'], 'true') }}:
- template: run_mypy.yml
parameters:
ServiceDirectory: ${{ parameters.ServiceDirectory }}
BuildTargetingString: ${{ parameters.BuildTargetingString }}
TestMarkArgument: ${{ parameters.TestMarkArgument }}

- ${{if ne(variables['Skip.Pylint'], 'true') }}:
- template: run_pylint.yml
parameters:
ServiceDirectory: ${{ parameters.ServiceDirectory }}
BuildTargetingString: ${{ parameters.BuildTargetingString }}
TestMarkArgument: ${{ parameters.TestMarkArgument }}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
aiohttp>=3.0; python_version >= '3.5'
aiodns>=2.0; python_version >= '3.5'
msrest>=0.6.10