Skip to content

Commit e3e256c

Browse files
committed
Merge in the main branch
2 parents 28acdba + 0c3455a commit e3e256c

File tree

4,747 files changed

+1064508
-465974
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,747 files changed

+1064508
-465974
lines changed

.azure-pipelines/ci.yml

+5-119
Original file line numberDiff line numberDiff line change
@@ -1,151 +1,37 @@
1-
variables:
2-
manylinux: false
3-
coverage: false
4-
5-
resources:
6-
containers:
7-
- container: manylinux1
8-
image: pyca/cryptography-manylinux1:x86_64
1+
trigger: ['main', '3.12', '3.11', '3.10', '3.9', '3.8', '3.7']
92

103
jobs:
114
- job: Prebuild
125
displayName: Pre-build checks
136

147
pool:
15-
vmImage: ubuntu-16.04
8+
vmImage: ubuntu-22.04
169

1710
steps:
1811
- template: ./prebuild-checks.yml
1912

2013

21-
- job: Docs_PR
22-
displayName: Docs PR
23-
dependsOn: Prebuild
24-
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['docs.run'], 'true'))
25-
26-
pool:
27-
vmImage: ubuntu-16.04
28-
29-
steps:
30-
- template: ./docs-steps.yml
31-
parameters:
32-
upload: true
33-
34-
35-
- job: macOS_CI_Tests
36-
displayName: macOS CI Tests
37-
dependsOn: Prebuild
38-
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
39-
40-
variables:
41-
testRunTitle: '$(build.sourceBranchName)-macos'
42-
testRunPlatform: macos
43-
44-
pool:
45-
vmImage: xcode9-macos10.13
46-
47-
steps:
48-
- template: ./macos-steps.yml
49-
50-
51-
- job: Ubuntu_CI_Tests
52-
displayName: Ubuntu CI Tests
53-
dependsOn: Prebuild
54-
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
55-
56-
pool:
57-
vmImage: ubuntu-16.04
58-
59-
variables:
60-
testRunTitle: '$(build.sourceBranchName)-linux'
61-
testRunPlatform: linux
62-
openssl_version: 1.1.0j
63-
64-
steps:
65-
- template: ./posix-steps.yml
66-
parameters:
67-
dependencies: apt
68-
69-
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-
101-
- job: Ubuntu_Coverage_CI_Tests
102-
displayName: Ubuntu CI Tests (coverage)
103-
dependsOn: Prebuild
104-
condition: |
105-
and(
106-
and(
107-
succeeded(),
108-
eq(variables['coverage'], 'true')
109-
),
110-
eq(dependencies.Prebuild.outputs['tests.run'], 'true')
111-
)
112-
113-
pool:
114-
vmImage: ubuntu-16.04
115-
116-
variables:
117-
testRunTitle: '$(Build.SourceBranchName)-linux-coverage'
118-
testRunPlatform: linux-coverage
119-
openssl_version: 1.1.0j
120-
121-
steps:
122-
- template: ./posix-steps.yml
123-
parameters:
124-
dependencies: apt
125-
coverage: true
126-
127-
12814
- job: Windows_CI_Tests
12915
displayName: Windows CI Tests
13016
dependsOn: Prebuild
13117
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
13218

13319
pool:
134-
vmImage: vs2017-win2016
20+
vmImage: windows-2022
13521

13622
strategy:
13723
matrix:
13824
win32:
13925
arch: win32
140-
buildOpt:
26+
buildOpt: '-p Win32'
14127
testRunTitle: '$(Build.SourceBranchName)-win32'
14228
testRunPlatform: win32
14329
win64:
14430
arch: amd64
14531
buildOpt: '-p x64'
14632
testRunTitle: '$(Build.SourceBranchName)-win64'
14733
testRunPlatform: win64
148-
maxParallel: 2
34+
maxParallel: 4
14935

15036
steps:
15137
- template: ./windows-steps.yml

.azure-pipelines/docs-steps.yml

-46
This file was deleted.

.azure-pipelines/macos-steps.yml

-25
This file was deleted.

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

+1
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

+13-64
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,26 @@
1-
parameters:
2-
coverage: false
3-
sudo_dependencies: sudo
4-
dependencies: apt
5-
patchcheck: true
6-
xvfb: true
7-
81
steps:
92
- checkout: self
103
clean: true
114
fetchDepth: 5
125

13-
- script: ${{ parameters.sudo_dependencies }} ./.azure-pipelines/posix-deps-${{ parameters.dependencies }}.sh $(openssl_version)
6+
# Work around a known issue affecting Ubuntu VMs on Pipelines
7+
- script: sudo setfacl -Rb /home/vsts
8+
displayName: 'Workaround ACL issue'
9+
10+
- script: sudo ./.azure-pipelines/posix-deps-apt.sh $(openssl_version)
1411
displayName: 'Install dependencies'
1512

1613
- script: ./configure --with-pydebug
1714
displayName: 'Configure CPython (debug)'
1815

19-
- script: make -s -j4
16+
- script: make -j4
2017
displayName: 'Build CPython'
2118

22-
- ${{ if eq(parameters.coverage, 'true') }}:
23-
- script: ./python -m venv venv && ./venv/bin/python -m pip install -U coverage
24-
displayName: 'Set up virtual environment'
25-
26-
- script: ./venv/bin/python -m test.pythoninfo
27-
displayName: 'Display build info'
28-
29-
- script: |
30-
$COMMAND -m coverage run --pylib -m test \
31-
--fail-env-changed \
32-
-uall,-cpu \
33-
--junit-xml=$(build.binariesDirectory)/test-results.xml \
34-
-x test_multiprocessing_fork \
35-
-x test_multiprocessing_forkserver \
36-
-x test_multiprocessing_spawn \
37-
-x test_concurrent_futures
38-
displayName: 'Tests with coverage'
39-
env:
40-
${{ if eq(parameters.xvfb, 'true') }}:
41-
COMMAND: xvfb-run ./venv/bin/python
42-
${{ if ne(parameters.xvfb, 'true') }}:
43-
COMMAND: ./venv/bin/python
44-
45-
- script: ./venv/bin/python -m coverage xml
46-
displayName: 'Generate coverage.xml'
47-
48-
- script: source ./venv/bin/activate && bash <(curl -s https://codecov.io/bash)
49-
displayName: 'Publish code coverage results'
50-
51-
52-
- ${{ if ne(parameters.coverage, 'true') }}:
53-
- script: make pythoninfo
54-
displayName: 'Display build info'
55-
56-
- script: $COMMAND buildbottest TESTOPTS="-j4 -uall,-cpu --junit-xml=$(build.binariesDirectory)/test-results.xml"
57-
displayName: 'Tests'
58-
env:
59-
${{ if eq(parameters.xvfb, 'true') }}:
60-
COMMAND: xvfb-run make
61-
${{ if ne(parameters.xvfb, 'true') }}:
62-
COMMAND: make
63-
64-
- ${{ if eq(parameters.patchcheck, 'true') }}:
65-
- script: ./python Tools/scripts/patchcheck.py --travis true
66-
displayName: 'Run patchcheck.py'
67-
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
68-
19+
- script: make pythoninfo
20+
displayName: 'Display build info'
6921

70-
- task: PublishTestResults@2
71-
displayName: 'Publish Test Results'
72-
inputs:
73-
testResultsFiles: '$(build.binariesDirectory)/test-results.xml'
74-
mergeTestResults: true
75-
testRunTitle: $(testRunTitle)
76-
platform: $(testRunPlatform)
77-
condition: succeededOrFailed()
22+
- script: |
23+
git fetch origin
24+
./python Tools/patchcheck/patchcheck.py --ci true
25+
displayName: 'Run patchcheck.py'
26+
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))

0 commit comments

Comments
 (0)