Skip to content

Commit 44be9c3

Browse files
authored
entirely re-use the python-analyze-weekly template in weekly standalone (Azure#40253)
1 parent bfc2e8d commit 44be9c3

File tree

3 files changed

+11
-122
lines changed

3 files changed

+11
-122
lines changed

eng/pipelines/templates/stages/archetype-sdk-tests.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,10 @@ extends:
162162
ServiceConnection: ${{ coalesce(cloud.value.ServiceConnection, lower(format('azure-sdk-tests-{0}', cloud.key))) }}
163163
SubscriptionConfigurationFilePaths: ${{ cloud.value.SubscriptionConfigurationFilePaths }}
164164

165-
- template: /eng/pipelines/templates/stages/python-analyze-weekly.yml
166-
parameters:
167-
BuildTargetingString: ${{ parameters.BuildTargetingString }}
168-
ServiceDirectory: ${{ parameters.ServiceDirectory }}
169-
JobName: ${{ parameters.JobName }}
165+
- ${{ if contains(variables['Build.DefinitionName'], 'tests-weekly') }}:
166+
- template: /eng/pipelines/templates/stages/python-analyze-weekly.yml
167+
parameters:
168+
BuildTargetingString: ${{ parameters.BuildTargetingString }}
169+
ServiceDirectory: ${{ parameters.ServiceDirectory }}
170+
JobName: ${{ parameters.JobName }}
170171

eng/pipelines/templates/stages/python-analyze-weekly-standalone.yml

Lines changed: 5 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -14,119 +14,8 @@ extends:
1414
parameters:
1515
stages:
1616
- ${{ if contains(variables['Build.DefinitionName'], 'tests-weekly') }}:
17-
- stage:
18-
displayName: 'Analyze_${{ parameters.JobName }}'
19-
variables:
20-
- template: /eng/pipelines/templates/variables/image.yml
21-
dependsOn: []
22-
jobs:
23-
- job: 'Analyze'
24-
timeoutInMinutes: 90
25-
26-
variables:
27-
- name: PythonVersion
28-
value: '3.8'
29-
30-
pool:
31-
name: $(LINUXPOOL)
32-
image: $(LINUXVMIMAGE)
33-
os: linux
34-
35-
steps:
36-
- task: UsePythonVersion@0
37-
displayName: 'Use Python 3.8'
38-
inputs:
39-
versionSpec: '3.8'
40-
- script: |
41-
python -m pip install -r eng/ci_tools.txt
42-
displayName: 'Prep Environment'
43-
- task: PythonScript@0
44-
displayName: 'Run Pylint Next'
45-
continueOnError: true
46-
inputs:
47-
scriptPath: 'scripts/devops_tasks/dispatch_tox.py'
48-
arguments: >-
49-
${{ parameters.BuildTargetingString }}
50-
--service="${{ parameters.ServiceDirectory }}"
51-
--toxenv="next-pylint"
52-
--disablecov
53-
--filter-type="Omit_management"
54-
env:
55-
GH_TOKEN: $(azuresdk-github-pat)
56-
57-
- task: PythonScript@0
58-
displayName: 'Run MyPy Next'
59-
continueOnError: true
60-
inputs:
61-
scriptPath: 'scripts/devops_tasks/dispatch_tox.py'
62-
arguments: >-
63-
${{ parameters.BuildTargetingString }}
64-
--service="${{ parameters.ServiceDirectory }}"
65-
--toxenv="next-mypy"
66-
--disablecov
67-
env:
68-
GH_TOKEN: $(azuresdk-github-pat)
69-
70-
- task: PythonScript@0
71-
displayName: 'Run Pyright Next'
72-
continueOnError: true
73-
inputs:
74-
scriptPath: 'scripts/devops_tasks/dispatch_tox.py'
75-
arguments: >-
76-
${{ parameters.BuildTargetingString }}
77-
--service="${{ parameters.ServiceDirectory }}"
78-
--toxenv="next-pyright"
79-
--disablecov
80-
env:
81-
GH_TOKEN: $(azuresdk-github-pat)
82-
83-
- task: PythonScript@0
84-
displayName: 'Run Ruff'
85-
continueOnError: true
86-
inputs:
87-
scriptPath: 'scripts/devops_tasks/dispatch_tox.py'
88-
arguments: >-
89-
${{ parameters.BuildTargetingString }}
90-
--service="${{ parameters.ServiceDirectory }}"
91-
--toxenv="ruff"
92-
--disablecov
93-
env:
94-
GH_TOKEN: $(azuresdk-github-pat)
95-
96-
- script: |
97-
python -m pip install PyGithub>=1.59.0
98-
python -m pip install requests>=2.0
99-
displayName: 'Prep Environment'
100-
- task: PythonScript@0
101-
displayName: 'Update vNext Issues with build errors'
102-
continueOnError: true
103-
inputs:
104-
scriptPath: 'tools/azure-sdk-tools/gh_tools/update_issue.py'
105-
arguments: >-
106-
${{ parameters.BuildTargetingString }}
107-
--service="${{ parameters.ServiceDirectory }}"
108-
--disablecov
109-
env:
110-
GH_TOKEN: $(azuresdk-github-pat)
111-
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
112-
113-
- task: UsePythonVersion@0
114-
displayName: 'Use Python 3.13 for docs generation'
115-
inputs:
116-
versionSpec: '3.13'
117-
118-
- script: |
119-
python -m pip install -r eng/ci_tools.txt
120-
displayName: 'Prep Environment'
121-
122-
- task: PythonScript@0
123-
displayName: 'Generate Docs Next'
124-
continueOnError: true
125-
inputs:
126-
scriptPath: 'scripts/devops_tasks/dispatch_tox.py'
127-
arguments: >-
128-
${{ parameters.BuildTargetingString }}
129-
--service="${{ parameters.ServiceDirectory }}"
130-
--toxenv="next-sphinx"
131-
env:
132-
GH_TOKEN: $(azuresdk-github-pat)
17+
- template: /eng/pipelines/templates/stages/python-analyze-weekly.yml
18+
parameters:
19+
ServiceDirectory: ${{ parameters.ServiceDirectory }}
20+
BuildTargetingString: ${{ parameters.BuildTargetingString }}
21+
JobName: ${{ parameters.JobName }}

eng/pipelines/templates/stages/python-analyze-weekly.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ parameters:
1010
default: 'Test'
1111

1212
stages:
13-
- ${{ if contains(variables['Build.DefinitionName'], 'tests-weekly') }}:
1413
- stage:
1514
displayName: 'Analyze_${{ parameters.JobName }}'
1615
variables:

0 commit comments

Comments
 (0)