|
1 | 1 | trigger:
|
2 | 2 | - main
|
3 | 3 |
|
4 |
| -jobs: |
5 |
| - |
6 |
| - - job: Validate_RC_Python_Build_Windows |
7 |
| - displayName: Validate Release Candidate Python - Windows |
8 |
| - variables: |
9 |
| - skipComponentGovernanceDetection: true |
10 |
| - PythonVersion: '3.11.0-rc.1' |
11 |
| - |
12 |
| - timeoutInMinutes: 90 |
13 |
| - |
14 |
| - pool: |
15 |
| - name: 'azsdk-pool-mms-win-2022-general' |
| 4 | +parameters: |
| 5 | + - name: RunNightlyTests |
| 6 | + type: boolean |
| 7 | + default: false |
| 8 | + - name: TargetedPackages |
| 9 | + type: string |
| 10 | + default: "azure-core,azure-keyvault*, azure-identity*, azure-storage-queue" |
16 | 11 |
|
17 |
| - steps: |
18 |
| - - template: /eng/pipelines/templates/steps/use-python-version.yml |
19 |
| - parameters: |
20 |
| - versionSpec: $(PythonVersion) |
21 |
| - |
22 |
| - - script: | |
23 |
| - python -m pip freeze |
24 |
| - python -m pip --version |
25 |
| - python -m pip install setuptools==72.2.0 wheel==0.37.0 tox==4.5.0 packaging==23.1 requests |
26 |
| - python -m pip install $(Build.SourcesDirectory)/tools/azure-sdk-tools[build] |
27 |
| - displayName: Install Dependencies |
28 |
| -
|
29 |
| - - template: /eng/common/testproxy/test-proxy-tool.yml |
30 |
| - parameters: |
31 |
| - runProxy: false |
32 |
| - |
33 |
| - - script: | |
34 |
| - python ./scripts/devops_tasks/dispatch_tox.py "$(BuildTargetingString)" --junitxml="junit/test_results.xml" --toxenv="whl" --filter-type="None" |
35 |
| - displayName: 'Setup - Run Filtered Tests For Python $(PythonVersion)' |
36 |
| - env: |
37 |
| - YARL_NO_EXTENSIONS: 1 |
38 |
| - AIOHTTP_NO_EXTENSIONS: 1 |
39 |
| - PROXY_URL: "http://localhost:5000" |
40 |
| - continueOnError: true |
41 |
| -
|
42 |
| - - task: PublishTestResults@2 |
43 |
| - condition: always() |
44 |
| - inputs: |
45 |
| - testResultsFiles: '**/*test*.xml' |
46 |
| - testRunTitle: 'Python $(PythonVersion)' |
47 |
| - failTaskOnFailedTests: true |
| 12 | +jobs: |
48 | 13 |
|
49 | 14 | - job: Validate_RC_Python_Build_Linux
|
50 | 15 | displayName: Validate Release Candidate Python - Linux
|
51 | 16 | variables:
|
52 | 17 | skipComponentGovernanceDetection: true
|
53 |
| - PythonVersion: '3.11.0-rc.1' |
54 |
| - |
55 |
| - timeoutInMinutes: 90 |
56 |
| - |
57 |
| - pool: |
58 |
| - name: 'azsdk-pool-mms-ubuntu-2004-general' |
59 |
| - |
60 |
| - steps: |
61 |
| - - template: /eng/pipelines/templates/steps/use-python-version.yml |
62 |
| - parameters: |
63 |
| - versionSpec: $(PythonVersion) |
64 |
| - |
65 |
| - - script: | |
66 |
| - sudo apt-get update |
67 |
| - sudo apt-get install build-essential -y |
68 |
| - python -m pip freeze |
69 |
| - python -m pip --version |
70 |
| - python -m pip install setuptools==72.2.0 wheel==0.37.0 tox==4.5.0 packaging==23.1 requests |
71 |
| - python -m pip install $(Build.SourcesDirectory)/tools/azure-sdk-tools[build] |
72 |
| - displayName: Install Dependencies |
73 |
| -
|
74 |
| - - template: /eng/common/testproxy/test-proxy-tool.yml |
75 |
| - parameters: |
76 |
| - runProxy: false |
77 |
| - |
78 |
| - - script: | |
79 |
| - find /usr/lib -name "libffi.so*" |
80 |
| - ln -s /usr/lib/x86_64-linux-gnu/libffi.so.7 /usr/lib/x86_64-linux-gnu/libffi.so.6 |
81 |
| - python ./scripts/devops_tasks/dispatch_tox.py "$(BuildTargetingString)" --junitxml="junit/test_results.xml" --toxenv="whl" --filter-type="None" |
82 |
| - displayName: 'Setup - Run Filtered Tests For Python $(PythonVersion)' |
83 |
| - env: |
84 |
| - YARL_NO_EXTENSIONS: 1 |
85 |
| - AIOHTTP_NO_EXTENSIONS: 1 |
86 |
| - PROXY_URL: "http://localhost:5000" |
87 |
| - continueOnError: true |
88 |
| -
|
89 |
| - - task: PublishTestResults@2 |
90 |
| - condition: always() |
91 |
| - inputs: |
92 |
| - testResultsFiles: '**/*test*.xml' |
93 |
| - testRunTitle: 'Python $(PythonVersion)' |
94 |
| - failTaskOnFailedTests: true |
95 |
| - |
96 |
| - - job: Validate_Nightly_Python_Build |
97 |
| - displayName: Validate Nightly Dev Python Build |
98 |
| - variables: |
99 |
| - skipComponentGovernanceDetection: true |
| 18 | + PythonVersion: '3.13.0-rc.2' |
| 19 | + TargetedPackages: ${{ parameters.TargetedPackages }} |
100 | 20 |
|
101 | 21 | timeoutInMinutes: 90
|
102 | 22 |
|
103 | 23 | pool:
|
104 | 24 | name: 'azsdk-pool-mms-ubuntu-2004-general'
|
105 | 25 |
|
106 | 26 | steps:
|
107 |
| - - task: UsePythonVersion@0 |
108 |
| - displayName: 'Use Python 3.9 For Build Tools' |
109 |
| - inputs: |
110 |
| - versionSpec: '3.9' |
111 |
| - |
112 |
| - |
113 |
| - - template: /eng/common/testproxy/test-proxy-tool.yml |
114 |
| - parameters: |
115 |
| - runProxy: false |
116 |
| - |
117 |
| - - script: | |
118 |
| - sudo apt-get update |
119 |
| - sudo apt-get install build-essential libsqlite3-dev sqlite3 bzip2 libbz2-dev zlib1g-dev libssl-dev openssl libgdbm-dev liblzma-dev libreadline-dev libncursesw5-dev libffi-dev uuid-dev |
120 |
| - cd ~/ |
121 |
| - git clone https://github.com/python/cpython.git |
122 |
| - cd cpython |
123 |
| - mkdir debug |
124 |
| - cd debug |
125 |
| - ../configure --enable-optimizations --prefix=$HOME |
126 |
| - make |
127 |
| - make install |
128 |
| - export PATH=~/bin:$PATH |
129 |
| - export PATH=~/lib:$PATH |
130 |
| - export PATH=~/.local/bin:$PATH |
131 |
| - curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py |
132 |
| - python3 get-pip.py |
133 |
| - python3 -m pip install setuptools==72.2.0 wheel |
134 |
| - python3 -m pip install tox packaging twine beautifulsoup4 |
135 |
| - python3 --version |
136 |
| - cd $(Build.SourcesDirectory) |
137 |
| - python3 ./scripts/devops_tasks/dispatch_tox.py "$(BuildTargetingString)" --junitxml="junit/test_results_38.xml" --toxenv="whl" --filter-type="None" |
138 |
| - displayName: 'Setup - Run Filtered Tests "Nightly" using Python Edge' |
139 |
| - env: |
140 |
| - YARL_NO_EXTENSIONS: 1 |
141 |
| - PROXY_URL: "http://localhost:5000" |
142 |
| - AIOHTTP_NO_EXTENSIONS: 1 |
143 |
| - continueOnError: true |
144 |
| -
|
145 |
| - - task: PublishTestResults@2 |
146 |
| - condition: always() |
147 |
| - inputs: |
148 |
| - testResultsFiles: '**/junit/test-results.xml' |
149 |
| - testRunTitle: 'Python Nightly' |
150 |
| - failTaskOnFailedTests: true |
| 27 | + - template: ../steps/release-candidate-steps.yml |
| 28 | + |
| 29 | + - ${{ if eq(parameters.RunNightlyTests, true) }}: |
| 30 | + - job: Validate_Nightly_Python_Build |
| 31 | + displayName: Validate Nightly Dev Python Build |
| 32 | + variables: |
| 33 | + skipComponentGovernanceDetection: true |
| 34 | + |
| 35 | + timeoutInMinutes: 90 |
| 36 | + |
| 37 | + pool: |
| 38 | + name: 'azsdk-pool-mms-ubuntu-2004-general' |
| 39 | + |
| 40 | + steps: |
| 41 | + - task: UsePythonVersion@0 |
| 42 | + displayName: 'Use Python 3.9 For Build Tools' |
| 43 | + inputs: |
| 44 | + versionSpec: '3.9' |
| 45 | + |
| 46 | + |
| 47 | + - template: /eng/common/testproxy/test-proxy-tool.yml |
| 48 | + parameters: |
| 49 | + runProxy: false |
| 50 | + |
| 51 | + - script: | |
| 52 | + sudo apt-get update |
| 53 | + sudo apt-get install build-essential libsqlite3-dev sqlite3 bzip2 libbz2-dev zlib1g-dev libssl-dev openssl libgdbm-dev liblzma-dev libreadline-dev libncursesw5-dev libffi-dev uuid-dev |
| 54 | + cd ~/ |
| 55 | + git clone https://github.com/python/cpython.git |
| 56 | + cd cpython |
| 57 | + mkdir debug |
| 58 | + cd debug |
| 59 | + ../configure --enable-optimizations --prefix=$HOME |
| 60 | + make |
| 61 | + make install |
| 62 | + export PATH=~/bin:$PATH |
| 63 | + export PATH=~/lib:$PATH |
| 64 | + export PATH=~/.local/bin:$PATH |
| 65 | + curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py |
| 66 | + python3 get-pip.py |
| 67 | + python3 -m pip install setuptools==72.2.0 wheel |
| 68 | + python3 -m pip install tox packaging twine beautifulsoup4 |
| 69 | + python3 --version |
| 70 | + cd $(Build.SourcesDirectory) |
| 71 | + python3 ./scripts/devops_tasks/dispatch_tox.py "$(BuildTargetingString)" --junitxml="junit/test_results_38.xml" --toxenv="whl" --filter-type="None" |
| 72 | + displayName: 'Setup - Run Filtered Tests "Nightly" using Python Edge' |
| 73 | + env: |
| 74 | + YARL_NO_EXTENSIONS: 1 |
| 75 | + PROXY_URL: "http://localhost:5000" |
| 76 | + AIOHTTP_NO_EXTENSIONS: 1 |
| 77 | + continueOnError: true |
| 78 | +
|
| 79 | + - task: PublishTestResults@2 |
| 80 | + condition: always() |
| 81 | + inputs: |
| 82 | + testResultsFiles: '**/junit/test-results.xml' |
| 83 | + testRunTitle: 'Python Nightly' |
| 84 | + failTaskOnFailedTests: true |
0 commit comments