Skip to content

Commit d7a3286

Browse files
authored
Merge branch 'main' into long-as-perf
2 parents 6d0996d + 0ace820 commit d7a3286

File tree

4,057 files changed

+647448
-275087
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,057 files changed

+647448
-275087
lines changed

.azure-pipelines/ci.yml

Lines changed: 14 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
variables:
2-
manylinux: false
32
coverage: false
43

5-
resources:
6-
containers:
7-
- container: manylinux1
8-
image: pyca/cryptography-manylinux1:x86_64
4+
trigger: ['main', '3.11', '3.10', '3.9', '3.8', '3.7']
95

106
jobs:
117
- job: Prebuild
128
displayName: Pre-build checks
139

1410
pool:
15-
vmImage: ubuntu-16.04
11+
vmImage: ubuntu-20.04
1612

1713
steps:
1814
- template: ./prebuild-checks.yml
@@ -24,7 +20,7 @@ jobs:
2420
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['docs.run'], 'true'))
2521

2622
pool:
27-
vmImage: ubuntu-16.04
23+
vmImage: ubuntu-20.04
2824

2925
steps:
3026
- template: ./docs-steps.yml
@@ -35,14 +31,16 @@ jobs:
3531
- job: macOS_CI_Tests
3632
displayName: macOS CI Tests
3733
dependsOn: Prebuild
38-
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
34+
#condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
35+
# bpo-39837: macOS tests on Azure Pipelines are disabled
36+
condition: false
3937

4038
variables:
4139
testRunTitle: '$(build.sourceBranchName)-macos'
4240
testRunPlatform: macos
4341

4442
pool:
45-
vmImage: xcode9-macos10.13
43+
vmImage: macos-10.15
4644

4745
steps:
4846
- template: ./macos-steps.yml
@@ -54,50 +52,19 @@ jobs:
5452
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
5553

5654
pool:
57-
vmImage: ubuntu-16.04
55+
vmImage: ubuntu-20.04
5856

5957
variables:
6058
testRunTitle: '$(build.sourceBranchName)-linux'
6159
testRunPlatform: linux
62-
openssl_version: 1.1.1c
60+
openssl_version: 1.1.1n
6361

6462
steps:
6563
- template: ./posix-steps.yml
6664
parameters:
6765
dependencies: apt
6866

6967

70-
- job: ManyLinux1_CI_Tests
71-
displayName: ManyLinux1 CI Tests
72-
dependsOn: Prebuild
73-
condition: |
74-
and(
75-
and(
76-
succeeded(),
77-
eq(variables['manylinux'], 'true')
78-
),
79-
eq(dependencies.Prebuild.outputs['tests.run'], 'true')
80-
)
81-
82-
pool:
83-
vmImage: ubuntu-16.04
84-
85-
container: manylinux1
86-
87-
variables:
88-
testRunTitle: '$(build.sourceBranchName)-manylinux1'
89-
testRunPlatform: manylinux1
90-
openssl_version: ''
91-
92-
steps:
93-
- template: ./posix-steps.yml
94-
parameters:
95-
dependencies: yum
96-
sudo_dependencies: ''
97-
xvfb: false
98-
patchcheck: false
99-
100-
10168
- job: Ubuntu_Coverage_CI_Tests
10269
displayName: Ubuntu CI Tests (coverage)
10370
dependsOn: Prebuild
@@ -111,12 +78,12 @@ jobs:
11178
)
11279
11380
pool:
114-
vmImage: ubuntu-16.04
81+
vmImage: ubuntu-20.04
11582

11683
variables:
11784
testRunTitle: '$(Build.SourceBranchName)-linux-coverage'
11885
testRunPlatform: linux-coverage
119-
openssl_version: 1.1.1c
86+
openssl_version: 1.1.1n
12087

12188
steps:
12289
- template: ./posix-steps.yml
@@ -131,21 +98,21 @@ jobs:
13198
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
13299

133100
pool:
134-
vmImage: vs2017-win2016
101+
vmImage: windows-2022
135102

136103
strategy:
137104
matrix:
138105
win32:
139106
arch: win32
140-
buildOpt:
107+
buildOpt: '-p Win32'
141108
testRunTitle: '$(Build.SourceBranchName)-win32'
142109
testRunPlatform: win32
143110
win64:
144111
arch: amd64
145112
buildOpt: '-p x64'
146113
testRunTitle: '$(Build.SourceBranchName)-win64'
147114
testRunPlatform: win64
148-
maxParallel: 2
115+
maxParallel: 4
149116

150117
steps:
151118
- template: ./windows-steps.yml

.azure-pipelines/docs-steps.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,17 @@ steps:
1212
inputs:
1313
versionSpec: '>=3.6'
1414

15-
- script: python -m pip install sphinx==2.0.1 blurb python-docs-theme
15+
- script: python -m pip install -r requirements.txt
16+
workingDirectory: '$(build.sourcesDirectory)/Doc'
1617
displayName: 'Install build dependencies'
1718

1819
- ${{ if ne(parameters.latex, 'true') }}:
19-
- script: make check suspicious html PYTHON=python
20+
- script: make check html PYTHON=python
2021
workingDirectory: '$(build.sourcesDirectory)/Doc'
2122
displayName: 'Build documentation'
2223

2324
- ${{ if eq(parameters.latex, 'true') }}:
24-
- script: sudo apt-get update && sudo apt-get install -qy --force-yes texlive-full
25+
- script: sudo apt-get update && sudo apt-get install -qy --force-yes texlive-full
2526
displayName: 'Install LaTeX'
2627

2728
- script: make dist PYTHON=python SPHINXBUILD='python -m sphinx' BLURB='python -m blurb'
@@ -31,7 +32,7 @@ steps:
3132
- ${{ if eq(parameters.upload, 'true') }}:
3233
- task: PublishBuildArtifacts@1
3334
displayName: 'Publish docs'
34-
35+
3536
inputs:
3637
PathToPublish: '$(build.sourcesDirectory)/Doc/build'
3738
ArtifactName: docs

.azure-pipelines/macos-steps.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@ steps:
66
- script: ./configure --with-pydebug --with-openssl=/usr/local/opt/openssl --prefix=/opt/python-azdev
77
displayName: 'Configure CPython (debug)'
88

9-
- script: make -s -j4
9+
- script: make -j4
1010
displayName: 'Build CPython'
1111

1212
- script: make pythoninfo
1313
displayName: 'Display build info'
1414

1515
- script: make buildbottest TESTOPTS="-j4 -uall,-cpu --junit-xml=$(build.binariesDirectory)/test-results.xml"
1616
displayName: 'Tests'
17+
continueOnError: true
18+
timeoutInMinutes: 30
1719

1820
- task: PublishTestResults@2
1921
displayName: 'Publish Test Results'

.azure-pipelines/posix-deps-apt.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/sh
12
apt-get update
23

34
apt-get -yq install \

.azure-pipelines/posix-steps.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ steps:
2020
- script: ./configure --with-pydebug
2121
displayName: 'Configure CPython (debug)'
2222

23-
- script: make -s -j4
23+
- script: make -j4
2424
displayName: 'Build CPython'
2525

2626
- ${{ if eq(parameters.coverage, 'true') }}:
@@ -49,7 +49,7 @@ steps:
4949
- script: ./venv/bin/python -m coverage xml
5050
displayName: 'Generate coverage.xml'
5151

52-
- script: source ./venv/bin/activate && bash <(curl -s https://codecov.io/bash)
52+
- script: source ./venv/bin/activate && bash <(curl -s https://codecov.io/bash) -y .github/codecov.yml
5353
displayName: 'Publish code coverage results'
5454

5555

@@ -66,7 +66,9 @@ steps:
6666
COMMAND: make
6767

6868
- ${{ if eq(parameters.patchcheck, 'true') }}:
69-
- script: ./python Tools/scripts/patchcheck.py --travis true
69+
- script: |
70+
git fetch origin
71+
./python Tools/scripts/patchcheck.py --ci true
7072
displayName: 'Run patchcheck.py'
7173
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
7274

.azure-pipelines/pr.yml

Lines changed: 17 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
variables:
2-
manylinux: false
32
coverage: false
43

5-
resources:
6-
containers:
7-
- container: manylinux1
8-
image: pyca/cryptography-manylinux1:x86_64
4+
pr: ['main', '3.11', '3.10', '3.9', '3.8', '3.7']
95

106
jobs:
117
- job: Prebuild
128
displayName: Pre-build checks
139

1410
pool:
15-
vmImage: ubuntu-16.04
11+
vmImage: ubuntu-20.04
1612

1713
steps:
1814
- template: ./prebuild-checks.yml
@@ -24,7 +20,7 @@ jobs:
2420
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['docs.run'], 'true'))
2521

2622
pool:
27-
vmImage: ubuntu-16.04
23+
vmImage: ubuntu-20.04
2824

2925
steps:
3026
- template: ./docs-steps.yml
@@ -33,14 +29,16 @@ jobs:
3329
- job: macOS_PR_Tests
3430
displayName: macOS PR Tests
3531
dependsOn: Prebuild
36-
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
32+
#condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
33+
# bpo-39837: macOS tests on Azure Pipelines are disabled
34+
condition: false
3735

3836
variables:
3937
testRunTitle: '$(system.pullRequest.TargetBranch)-macos'
4038
testRunPlatform: macos
4139

4240
pool:
43-
vmImage: xcode9-macos10.13
41+
vmImage: macos-10.15
4442

4543
steps:
4644
- template: ./macos-steps.yml
@@ -54,50 +52,19 @@ jobs:
5452
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
5553

5654
pool:
57-
vmImage: ubuntu-16.04
55+
vmImage: ubuntu-20.04
5856

5957
variables:
6058
testRunTitle: '$(system.pullRequest.TargetBranch)-linux'
6159
testRunPlatform: linux
62-
openssl_version: 1.1.1c
60+
openssl_version: 1.1.1n
6361

6462
steps:
6563
- template: ./posix-steps.yml
6664
parameters:
6765
dependencies: apt
6866

6967

70-
- job: ManyLinux1_PR_Tests
71-
displayName: ManyLinux1 PR Tests
72-
dependsOn: Prebuild
73-
condition: |
74-
and(
75-
and(
76-
succeeded(),
77-
eq(variables['manylinux'], 'true')
78-
),
79-
eq(dependencies.Prebuild.outputs['tests.run'], 'true')
80-
)
81-
82-
pool:
83-
vmImage: ubuntu-16.04
84-
85-
container: manylinux1
86-
87-
variables:
88-
testRunTitle: '$(system.pullRequest.TargetBranch)-manylinux1'
89-
testRunPlatform: manylinux1
90-
openssl_version: ''
91-
92-
steps:
93-
- template: ./posix-steps.yml
94-
parameters:
95-
dependencies: yum
96-
sudo_dependencies: ''
97-
xvfb: false
98-
patchcheck: false
99-
100-
10168
- job: Ubuntu_Coverage_PR_Tests
10269
displayName: Ubuntu PR Tests (coverage)
10370
dependsOn: Prebuild
@@ -111,12 +78,12 @@ jobs:
11178
)
11279
11380
pool:
114-
vmImage: ubuntu-16.04
81+
vmImage: ubuntu-20.04
11582

11683
variables:
11784
testRunTitle: '$(Build.SourceBranchName)-linux-coverage'
11885
testRunPlatform: linux-coverage
119-
openssl_version: 1.1.1c
86+
openssl_version: 1.1.1n
12087

12188
steps:
12289
- template: ./posix-steps.yml
@@ -131,21 +98,24 @@ jobs:
13198
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
13299

133100
pool:
134-
vmImage: vs2017-win2016
101+
vmImage: windows-2022
135102

136103
strategy:
137104
matrix:
138105
win32:
139106
arch: win32
140-
buildOpt:
107+
buildOpt: '-p Win32'
141108
testRunTitle: '$(System.PullRequest.TargetBranch)-win32'
142109
testRunPlatform: win32
143110
win64:
144111
arch: amd64
145112
buildOpt: '-p x64'
146113
testRunTitle: '$(System.PullRequest.TargetBranch)-win64'
147114
testRunPlatform: win64
148-
maxParallel: 2
115+
winarm64:
116+
arch: arm64
117+
buildOpt: '-p arm64'
118+
maxParallel: 4
149119

150120
steps:
151121
- template: ./windows-steps.yml

0 commit comments

Comments
 (0)