8000 Merge branch 'main' into fix-44865 · python/cpython@c9cfada · GitHub
[go: up one dir, main page]

Skip to content

Commit c9cfada

Browse files
committed
Merge branch 'main' into fix-44865
2 parents 6e7a277 + da382aa commit c9cfada

File tree

4,486 files changed

+732140
-461251
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,486 files changed

+732140
-461251
lines changed

.azure-pipelines/ci.yml

Lines changed: 3 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,23 @@
1-
variables:
2-
coverage: false
3-
4-
trigger: ['main', '3.9', '3.8', '3.7']
1+
trigger: ['main', '3.12', '3.11', '3.10', '3.9', '3.8', '3.7']
52

63
jobs:
74
- job: Prebuild
85
displayName: Pre-build checks
96

107
pool:
11-
vmImage: ubuntu-18.04
8+
vmImage: ubuntu-22.04
129

1310
steps:
1411
- template: ./prebuild-checks.yml
1512

1613

17-
- job: Docs_PR
18-
displayName: Docs PR
19-
dependsOn: Prebuild
20-
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['docs.run'], 'true'))
21-
22-
pool:
23-
vmImage: ubuntu-18.04
24-
25-
steps:
26-
- template: ./docs-steps.yml
27-
parameters:
28-
upload: true
29-
30-
31-
- job: macOS_CI_Tests
32-
displayName: macOS CI Tests
33-
dependsOn: Prebuild
34-
#condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
35-
# bpo-39837: macOS tests on Azure Pipelines are disabled
36-
condition: false
37-
38-
variables:
39-
testRunTitle: '$(build.sourceBranchName)-macos'
40-
testRunPlatform: macos
41-
42-
pool:
43-
vmImage: macos-10.14
44-
45-
steps:
46-
- template: ./macos-steps.yml
47-
48-
49-
- job: Ubuntu_CI_Tests
50-
displayName: Ubuntu CI Tests
51-
dependsOn: Prebuild
52-
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
53-
54-
pool:
55-
vmImage: ubuntu-18.04
56-
57-
variables:
58-
testRunTitle: '$(build.sourceBranchName)-linux'
59-
testRunPlatform: linux
60-
openssl_version: 1.1.1k
61-
62-
steps:
63-
- template: ./posix-steps.yml
64-
parameters:
65-
dependencies: apt
66-
67-
68-
- job: Ubuntu_Coverage_CI_Tests
69-
displayName: Ubuntu CI Tests (coverage)
70-
dependsOn: Prebuild
71-
condition: |
72-
and(
73-
and(
74-
succeeded(),
75-
eq(variables['coverage'], 'true')
76-
),
77-
eq(dependencies.Prebuild.outputs['tests.run'], 'true')
78-
)
79-
80-
pool:
81-
vmImage: ubuntu-18.04
82-
83-
variables:
84-
testRunTitle: '$(Build.SourceBranchName)-linux-coverage'
85-
testRunPlatform: linux-coverage
86-
openssl_version: 1.1.1k
87-
88-
steps:
89-
- template: ./posix-steps.yml
90-
parameters:
91-
dependencies: apt
92-
coverage: true
93-
94-
9514
- job: Windows_CI_Tests
9615
displayName: Windows CI Tests
9716
dependsOn: Prebuild
9817
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
9918

10019
pool:
101-
vmImage: windows-2019
20+
vmImage: windows-2022
10221

10322
strategy:
10423
matrix:

.azure-pipelines/docs-steps.yml

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

.azure-pipelines/macos-steps.yml

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

.azure-pipelines/posix-steps.yml

Lines changed: 8 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
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
@@ -14,7 +7,7 @@ steps:
147
- script: sudo setfacl -Rb /home/vsts
158
displayName: 'Workaround ACL issue'
169

17-
- script: ${{ parameters.sudo_dependencies }} ./.azure-pipelines/posix-deps-${{ parameters.dependencies }}.sh $(openssl_version)
10+
- script: sudo ./.azure-pipelines/posix-deps-apt.sh $(openssl_version)
1811
displayName: 'Install dependencies'
1912

2013
- script: ./configure --with-pydebug
@@ -23,59 +16,11 @@ steps:
2316
- script: make -j4
2417
displayName: 'Build CPython'
2518

26-
- ${{ if eq(parameters.coverage, 'true') }}:
27-
- script: ./python -m venv venv && ./venv/bin/python -m pip install -U coverage
28-
displayName: 'Set up virtual environment'
29-
30-
- script: ./venv/bin/python -m test.pythoninfo
31-
displayName: 'Display build info'
32-
33-
- script: |
34-
$COMMAND -m coverage run --pylib -m test \
35-
--fail-env-changed \
36-
-uall,-cpu \
37-
--junit-xml=$(build.binariesDirectory)/test-results.xml \
38-
-x test_multiprocessing_fork \
39-
-x test_multiprocessing_forkserver \
40-
-x test_multiprocessing_spawn \
41-
-x test_concurrent_futures
42-
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: F438 ./venv/bin/python
48-
49-
- script: ./venv/bin/python -m coverage xml
50-
displayName: 'Generate coverage.xml'
51-
52-
- script: source ./venv/bin/activate && bash <(curl -s https://codecov.io/bash) -y .github/codecov.yml
53-
displayName: 'Publish code coverage results'
54-
55-
56-
- ${{ if ne(parameters.coverage, 'true') }}:
57-
- script: make pythoninfo
58-
displayName: 'Display build info'
59-
60-
- script: $COMMAND buildbottest TESTOPTS="-j4 -uall,-cpu --junit-xml=$(build.binariesDirectory)/test-results.xml"
61-
displayName: 'Tests'
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'))
72-
19+
- script: make pythoninfo
20+
displayName: 'Display build info'
7321

74-
- task: PublishTestResults@2
75-
displayName: 'Publish Test Results'
76-
inputs:
77-
testResultsFiles: '$(build.binariesDirectory)/test-results.xml'
78-
mergeTestResults: true
79-
testRunTitle: $(testRunTitle)
80-
platform: $(testRunPlatform)
81-
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)
0