-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 8c81cb4
Showing
4,711 changed files
with
2,468,390 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
variables: | ||
coverage: false | ||
|
||
trigger: ['main', '3.11', '3.10', '3.9', '3.8', '3.7'] | ||
|
||
jobs: | ||
- job: Prebuild | ||
displayName: Pre-build checks | ||
|
||
pool: | ||
vmImage: ubuntu-22.04 | ||
|
||
steps: | ||
- template: ./prebuild-checks.yml | ||
|
||
|
||
- job: macOS_CI_Tests | ||
displayName: macOS CI Tests | ||
dependsOn: Prebuild | ||
#condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true')) | ||
# bpo-39837: macOS tests on Azure Pipelines are disabled | ||
condition: false | ||
|
||
variables: | ||
testRunTitle: '$(build.sourceBranchName)-macos' | ||
testRunPlatform: macos | ||
|
||
pool: | ||
vmImage: macos-10.15 | ||
|
||
steps: | ||
- template: ./macos-steps.yml | ||
|
||
|
||
- job: Ubuntu_CI_Tests | ||
displayName: Ubuntu CI Tests | ||
dependsOn: Prebuild | ||
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true')) | ||
|
||
pool: | ||
vmImage: ubuntu-22.04 | ||
|
||
variables: | ||
testRunTitle: '$(build.sourceBranchName)-linux' | ||
testRunPlatform: linux | ||
openssl_version: 1.1.1u | ||
|
||
steps: | ||
- template: ./posix-steps.yml | ||
parameters: | ||
dependencies: apt | ||
|
||
|
||
- job: Ubuntu_Coverage_CI_Tests | ||
displayName: Ubuntu CI Tests (coverage) | ||
dependsOn: Prebuild | ||
condition: | | ||
and( | ||
and( | ||
succeeded(), | ||
eq(variables['coverage'], 'true') | ||
), | ||
eq(dependencies.Prebuild.outputs['tests.run'], 'true') | ||
) | ||
pool: | ||
vmImage: ubuntu-22.04 | ||
|
||
variables: | ||
testRunTitle: '$(Build.SourceBranchName)-linux-coverage' | ||
testRunPlatform: linux-coverage | ||
openssl_version: 1.1.1u | ||
|
||
steps: | ||
- template: ./posix-steps.yml | ||
parameters: | ||
dependencies: apt | ||
coverage: true | ||
|
||
|
||
- job: Windows_CI_Tests | ||
displayName: Windows CI Tests | ||
dependsOn: Prebuild | ||
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true')) | ||
|
||
pool: | ||
vmImage: windows-2022 | ||
|
||
strategy: | ||
matrix: | ||
win32: | ||
arch: win32 | ||
buildOpt: '-p Win32' | ||
testRunTitle: '$(Build.SourceBranchName)-win32' | ||
testRunPlatform: win32 | ||
win64: | ||
arch: amd64 | ||
buildOpt: '-p x64' | ||
testRunTitle: '$(Build.SourceBranchName)-win64' | ||
testRunPlatform: win64 | ||
maxParallel: 4 | ||
|
||
steps: | ||
- template: ./windows-steps.yml | ||
|
||
- template: ./windows-layout-steps.yml | ||
parameters: | ||
kind: nuget | ||
- template: ./windows-layout-steps.yml | ||
parameters: | ||
kind: embed | ||
- template: ./windows-layout-steps.yml | ||
parameters: | ||
kind: appx | ||
fulltest: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
steps: | ||
- checkout: self | ||
clean: true | ||
fetchDepth: 5 | ||
|
||
- script: ./configure --with-pydebug --with-openssl=/usr/local/opt/openssl --prefix=/opt/python-azdev | ||
displayName: 'Configure CPython (debug)' | ||
|
||
- script: make -j4 | ||
displayName: 'Build CPython' | ||
|
||
- script: make pythoninfo | ||
displayName: 'Display build info' | ||
|
||
- script: make buildbottest TESTOPTS="-j4 -uall,-cpu --junit-xml=$(build.binariesDirectory)/test-results.xml" | ||
displayName: 'Tests' | ||
continueOnError: true | ||
timeoutInMinutes: 30 | ||
|
||
- task: PublishTestResults@2 | ||
displayName: 'Publish Test Results' | ||
inputs: | ||
testResultsFiles: '$(build.binariesDirectory)/test-results.xml' | ||
mergeTestResults: true | ||
testRunTitle: $(testRunTitle) | ||
platform: $(testRunPlatform) | ||
condition: succeededOrFailed() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/sh | ||
apt-get update | ||
|
||
apt-get -yq install \ | ||
build-essential \ | ||
zlib1g-dev \ | ||
libbz2-dev \ | ||
liblzma-dev \ | ||
libncurses5-dev \ | ||
libreadline6-dev \ | ||
libsqlite3-dev \ | ||
libssl-dev \ | ||
libgdbm-dev \ | ||
tk-dev \ | ||
lzma \ | ||
lzma-dev \ | ||
liblzma-dev \ | ||
libffi-dev \ | ||
uuid-dev \ | ||
xvfb | ||
|
||
if [ ! -z "$1" ] | ||
then | ||
echo ##vso[task.prependpath]$PWD/multissl/openssl/$1 | ||
echo ##vso[task.setvariable variable=OPENSSL_DIR]$PWD/multissl/openssl/$1 | ||
python3 Tools/ssl/multissltests.py --steps=library --base-directory $PWD/multissl --openssl $1 --system Linux | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
parameters: | ||
coverage: false | ||
sudo_dependencies: sudo | ||
dependencies: apt | ||
patchcheck: true | ||
xvfb: true | ||
|
||
steps: | ||
- checkout: self | ||
clean: true | ||
fetchDepth: 5 | ||
|
||
# Work around a known issue affecting Ubuntu VMs on Pipelines | ||
- script: sudo setfacl -Rb /home/vsts | ||
displayName: 'Workaround ACL issue' | ||
|
||
- script: ${{ parameters.sudo_dependencies }} ./.azure-pipelines/posix-deps-${{ parameters.dependencies }}.sh $(openssl_version) | ||
displayName: 'Install dependencies' | ||
|
||
- script: ./configure --with-pydebug | ||
displayName: 'Configure CPython (debug)' | ||
|
||
- script: make -j4 | ||
displayName: 'Build CPython' | ||
|
||
- ${{ if eq(parameters.coverage, 'true') }}: | ||
- script: ./python -m venv venv && ./venv/bin/python -m pip install -U coverage | ||
displayName: 'Set up virtual environment' | ||
|
||
- script: ./venv/bin/python -m test.pythoninfo | ||
displayName: 'Display build info' | ||
|
||
- script: | | ||
$COMMAND -m coverage run --pylib -m test \ | ||
--fail-env-changed \ | ||
-uall,-cpu \ | ||
--junit-xml=$(build.binariesDirectory)/test-results.xml \ | ||
-x test_multiprocessing_fork \ | ||
-x test_multiprocessing_forkserver \ | ||
-x test_multiprocessing_spawn \ | ||
-x test_concurrent_futures | ||
displayName: 'Tests with coverage' | ||
env: | ||
${{ if eq(parameters.xvfb, 'true') }}: | ||
COMMAND: xvfb-run ./venv/bin/python | ||
${{ if ne(parameters.xvfb, 'true') }}: | ||
COMMAND: ./venv/bin/python | ||
- script: ./venv/bin/python -m coverage xml | ||
displayName: 'Generate coverage.xml' | ||
|
||
- script: source ./venv/bin/activate && bash <(curl -s https://codecov.io/bash) -y .github/codecov.yml | ||
displayName: 'Publish code coverage results' | ||
|
||
|
||
- ${{ if ne(parameters.coverage, 'true') }}: | ||
- script: make pythoninfo | ||
displayName: 'Display build info' | ||
|
||
- script: $COMMAND buildbottest TESTOPTS="-j4 -uall,-cpu --junit-xml=$(build.binariesDirectory)/test-results.xml" | ||
displayName: 'Tests' | ||
env: | ||
${{ if eq(parameters.xvfb, 'true') }}: | ||
COMMAND: xvfb-run make | ||
${{ if ne(parameters.xvfb, 'true') }}: | ||
COMMAND: make | ||
|
||
- ${{ if eq(parameters.patchcheck, 'true') }}: | ||
- script: | | ||
git fetch origin | ||
./python Tools/patchcheck/patchcheck.py --ci true | ||
displayName: 'Run patchcheck.py' | ||
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest')) | ||
- task: PublishTestResults@2 | ||
displayName: 'Publish Test Results' | ||
inputs: | ||
testResultsFiles: '$(build.binariesDirectory)/test-results.xml' | ||
mergeTestResults: true | ||
testRunTitle: $(testRunTitle) | ||
platform: $(testRunPlatform) | ||
condition: succeededOrFailed() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
variables: | ||
coverage: false | ||
|
||
pr: ['main', '3.11', '3.10', '3.9', '3.8', '3.7'] | ||
|
||
jobs: | ||
- job: Prebuild | ||
displayName: Pre-build checks | ||
|
||
pool: | ||
vmImage: ubuntu-22.04 | ||
|
||
steps: | ||
- template: ./prebuild-checks.yml | ||
|
||
|
||
- job: macOS_PR_Tests | ||
displayName: macOS PR Tests | ||
dependsOn: Prebuild | ||
#condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true')) | ||
# bpo-39837: macOS tests on Azure Pipelines are disabled | ||
condition: false | ||
|
||
variables: | ||
testRunTitle: '$(system.pullRequest.TargetBranch)-macos' | ||
testRunPlatform: macos | ||
|
||
pool: | ||
vmImage: macos-10.15 | ||
|
||
steps: | ||
- template: ./macos-steps.yml | ||
parameters: | ||
targetBranch: $(System.PullRequest.TargetBranch) | ||
|
||
|
||
- job: Ubuntu_PR_Tests | ||
displayName: Ubuntu PR Tests | ||
dependsOn: Prebuild | ||
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true')) | ||
|
||
pool: | ||
vmImage: ubuntu-22.04 | ||
|
||
variables: | ||
testRunTitle: '$(system.pullRequest.TargetBranch)-linux' | ||
testRunPlatform: linux | ||
openssl_version: 1.1.1u | ||
|
||
steps: | ||
- template: ./posix-steps.yml | ||
parameters: | ||
dependencies: apt | ||
|
||
|
||
- job: Ubuntu_Coverage_PR_Tests | ||
displayName: Ubuntu PR Tests (coverage) | ||
dependsOn: Prebuild | ||
condition: | | ||
and( | ||
and( | ||
succeeded(), | ||
eq(variables['coverage'], 'true') | ||
), | ||
eq(dependencies.Prebuild.outputs['tests.run'], 'true') | ||
) | ||
pool: | ||
vmImage: ubuntu-22.04 | ||
|
||
variables: | ||
testRunTitle: '$(Build.SourceBranchName)-linux-coverage' | ||
testRunPlatform: linux-coverage | ||
openssl_version: 1.1.1u | ||
|
||
steps: | ||
- template: ./posix-steps.yml | ||
parameters: | ||
dependencies: apt | ||
coverage: true | ||
|
||
|
||
- job: Windows_PR_Tests | ||
displayName: Windows PR Tests | ||
dependsOn: Prebuild | ||
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true')) | ||
|
||
pool: | ||
vmImage: windows-2022 | ||
|
||
strategy: | ||
matrix: | ||
win32: | ||
arch: win32 | ||
buildOpt: '-p Win32' | ||
testRunTitle: '$(System.PullRequest.TargetBranch)-win32' | ||
testRunPlatform: win32 | ||
win64: | ||
arch: amd64 | ||
buildOpt: '-p x64' | ||
testRunTitle: '$(System.PullRequest.TargetBranch)-win64' | ||
testRunPlatform: win64 | ||
winarm64: | ||
arch: arm64 | ||
buildOpt: '-p arm64' | ||
maxParallel: 4 | ||
|
||
steps: | ||
- template: ./windows-steps.yml | ||
parameters: | ||
targetBranch: $(System.PullRequest.TargetBranch) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
steps: | ||
- checkout: self | ||
fetchDepth: 5 | ||
|
||
- script: echo "##vso[task.setvariable variable=diffTarget]HEAD~1" | ||
displayName: Set default diff target | ||
|
||
- script: | | ||
git fetch -q origin $(System.PullRequest.TargetBranch) | ||
echo "##vso[task.setvariable variable=diffTarget]HEAD \$(git merge-base HEAD FETCH_HEAD)" | ||
displayName: Fetch comparison tree | ||
condition: and(succeeded(), variables['System.PullRequest.TargetBranch']) | ||
|
||
- script: | | ||
if ! git diff --name-only $(diffTarget) | grep -qvE '(\.rst$|^Doc|^Misc)' | ||
then | ||
echo "Only docs were updated: tests.run=false" | ||
echo "##vso[task.setvariable variable=run;isOutput=true]false" | ||
else | ||
echo "Code was updated: tests.run=true" | ||
echo "##vso[task.setvariable variable=run;isOutput=true]true" | ||
fi | ||
displayName: Detect source changes | ||
name: tests |
Oops, something went wrong.