Skip to content

Commit 3985bc5

Browse files
committed
Merge branch 'master' into bpo-34014
2 parents 95ee377 + 7414207 commit 3985bc5

File tree

3,289 files changed

+247907
-108355
lines changed

Some content is hidden

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

3,289 files changed

+247907
-108355
lines changed

.azure-pipelines/ci.yml

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ variables:
22
manylinux: false
33
coverage: false
44

5+
resources:
6+
containers:
7+
- container: manylinux1
8+
image: pyca/cryptography-manylinux1:x86_64
9+
510
jobs:
611
- job: Prebuild
712
displayName: Pre-build checks
@@ -37,7 +42,7 @@ jobs:
3742
testRunPlatform: macos
3843

3944
pool:
40-
vmImage: xcode9-macos10.13
45+
vmImage: macos-10.14
4146

4247
steps:
4348
- template: ./macos-steps.yml
@@ -54,10 +59,12 @@ jobs:
5459
variables:
5560
testRunTitle: '$(build.sourceBranchName)-linux'
5661
testRunPlatform: linux
57-
openssl_version: 1.1.0g
62+
openssl_version: 1.1.1d
5863

5964
steps:
6065
- template: ./posix-steps.yml
66+
parameters:
67+
dependencies: apt
6168

6269

6370
- job: ManyLinux1_CI_Tests
@@ -75,13 +82,20 @@ jobs:
7582
pool:
7683
vmImage: ubuntu-16.04
7784

85+
container: manylinux1
86+
7887
variables:
7988
testRunTitle: '$(build.sourceBranchName)-manylinux1'
8089
testRunPlatform: manylinux1
81-
imageName: 'dockcross/manylinux-x64'
90+
openssl_version: ''
8291

8392
steps:
84-
- template: ./docker-steps.yml
93+
- template: ./posix-steps.yml
94+
parameters:
95+
dependencies: yum
96+
sudo_dependencies: ''
97+
xvfb: false
98+
patchcheck: false
8599

86100

87101
- job: Ubuntu_Coverage_CI_Tests
@@ -102,11 +116,12 @@ jobs:
102116
variables:
103117
testRunTitle: '$(Build.SourceBranchName)-linux-coverage'
104118
testRunPlatform: linux-coverage
105-
openssl_version: 1.1.0g
119+
openssl_version: 1.1.1d
106120

107121
steps:
108122
- template: ./posix-steps.yml
109123
parameters:
124+
dependencies: apt
110125
coverage: true
111126

112127

@@ -116,7 +131,7 @@ jobs:
116131
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
117132

118133
pool:
119-
vmImage: vs2017-win2017
134+
vmImage: windows-2019
120135

121136
strategy:
122137
matrix:
@@ -134,3 +149,14 @@ jobs:
134149

135150
steps:
136151
- template: ./windows-steps.yml
152+
153+
- template: ./windows-layout-steps.yml
154+
parameters:
155+
kind: nuget
156+
- template: ./windows-layout-steps.yml
157+
parameters:
158+
kind: embed
159+
- template: ./windows-layout-steps.yml
160+
parameters:
161+
kind: appx
162+
fulltest: true

.azure-pipelines/docker-steps.yml

Lines changed: 0 additions & 76 deletions
This file was deleted.

.azure-pipelines/docs-steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ steps:
1212
inputs:
1313
versionSpec: '>=3.6'
1414

15-
- script: python -m pip install sphinx~=1.6.1 blurb python-docs-theme
15+
- script: python -m pip install sphinx==2.0.1 blurb python-docs-theme
1616
displayName: 'Install build dependencies'
1717

1818
- ${{ if ne(parameters.latex, 'true') }}:

.azure-pipelines/macos-steps.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ steps:
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: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/sh
2+
apt-get update
3+
4+
apt-get -yq install \
5+
build-essential \
6+
zlib1g-dev \
7+
libbz2-dev \
8+
liblzma-dev \
9+
libncurses5-dev \
10+
libreadline6-dev \
11+
libsqlite3-dev \
12+
libssl-dev \
13+
libgdbm-dev \
14+
tk-dev \
15+
lzma \
16+
lzma-dev \
17+
liblzma-dev \
18+
libffi-dev \
19+
uuid-dev \
20+
xvfb
21+
22+
if [ ! -z "$1" ]
23+
then
24+
echo ##vso[task.prependpath]$PWD/multissl/openssl/$1
25+
echo ##vso[task.setvariable variable=OPENSSL_DIR]$PWD/multissl/openssl/$1
26+
python3 Tools/ssl/multissltests.py --steps=library --base-directory $PWD/multissl --openssl $1 --system Linux
27+
fi

.azure-pipelines/posix-deps.sh

Lines changed: 0 additions & 26 deletions
This file was deleted.

.azure-pipelines/posix-steps.yml

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
parameters:
22
coverage: false
3+
sudo_dependencies: sudo
4+
dependencies: apt
5+
patchcheck: true
6+
xvfb: true
37

48
steps:
59
- checkout: self
610
clean: true
711
fetchDepth: 5
812

9-
- script: ./.azure-pipelines/posix-deps.sh $(openssl_version)
13+
# Work around a known issue affecting Ubuntu VMs on Pipelines
14+
- script: sudo setfacl -Rb /home/vsts
15+
displayName: 'Workaround ACL issue'
16+
17+
- script: ${{ parameters.sudo_dependencies }} ./.azure-pipelines/posix-deps-${{ parameters.dependencies }}.sh $(openssl_version)
1018
displayName: 'Install dependencies'
1119

1220
- script: ./configure --with-pydebug
@@ -23,15 +31,20 @@ steps:
2331
displayName: 'Display build info'
2432

2533
- script: |
26-
xvfb-run ./venv/bin/python -m coverage run --pylib -m test \
34+
$COMMAND -m coverage run --pylib -m test \
2735
--fail-env-changed \
2836
-uall,-cpu \
29-
--junit-xml=$(build.binariesDirectory)/test-results.xml" \
37+
--junit-xml=$(build.binariesDirectory)/test-results.xml \
3038
-x test_multiprocessing_fork \
3139
-x test_multiprocessing_forkserver \
3240
-x test_multiprocessing_spawn \
3341
-x test_concurrent_futures
3442
displayName: 'Tests with coverage'
43+
env:
44+
${{ if eq(parameters.xvfb, 'true') }}:
45+
COMMAND: xvfb-run ./venv/bin/python
46+
${{ if ne(parameters.xvfb, 'true') }}:
47+
COMMAND: ./venv/bin/python
3548
3649
- script: ./venv/bin/python -m coverage xml
3750
displayName: 'Generate coverage.xml'
@@ -44,13 +57,18 @@ steps:
4457
- script: make pythoninfo
4558
displayName: 'Display build info'
4659

47-
- script: xvfb-run make buildbottest TESTOPTS="-j4 -uall,-cpu --junit-xml=$(build.binariesDirectory)/test-results.xml"
60+
- script: $COMMAND buildbottest TESTOPTS="-j4 -uall,-cpu --junit-xml=$(build.binariesDirectory)/test-results.xml"
4861
displayName: 'Tests'
49-
50-
51-
- script: ./python Tools/scripts/patchcheck.py --travis true
52-
displayName: 'Run patchcheck.py'
53-
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
62+
env:
63+
${{ if eq(parameters.xvfb, 'true') }}:
64+
COMMAND: xvfb-run make
65+
${{ if ne(parameters.xvfb, 'true') }}:
66+
COMMAND: make
67+
68+
- ${{ if eq(parameters.patchcheck, 'true') }}:
69+
- script: ./python Tools/scripts/patchcheck.py --travis true
70+
displayName: 'Run patchcheck.py'
71+
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
5472

5573

5674
- task: PublishTestResults@2

0 commit comments

Comments
 (0)