Skip to content
Merged
Prev Previous commit
Revert "Add Azure Pipelines CI and PR jobs for hypothesis"
This reverts commit 5ba1a6a.
  • Loading branch information
pganssle committed May 11, 2023
commit a305d29c8f0907d9a1de88e98b6f80e1e3949074
25 changes: 0 additions & 25 deletions .azure-pipelines/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
variables:
coverage: false
hypothesis: true

trigger: ['main', '3.11', '3.10', '3.9', '3.8', '3.7']

Expand Down Expand Up @@ -92,30 +91,6 @@ jobs:
dependencies: apt
coverage: true

- job: Ubuntu_Hypothesis_CI_Tests
displayName: Ubuntu CI Tests (Hypothesis)
dependsOn: Prebuild
condition: |
and(
succeeded(),
eq(variables['hypothesis'], 'true'),
eq(dependencies.Prebuild.outputs['tests.run'], 'true'),
notIn(variables['Build.SourceBranchName'], '3.8', '3.9', '3.10', '3.11')
)

pool:
vmImage: ubuntu-22.04

variables:
testRunTitle: '$(Build.SourceBranchName)-linux-hypothesis'
testRunPlatform: linux-hypothesis
openssl_version: 1.1.1t

steps:
- template: ./posix-steps.yml
parameters:
dependencies: apt
hypothesis: true

- job: Windows_CI_Tests
displayName: Windows CI Tests
Expand Down
33 changes: 1 addition & 32 deletions .azure-pipelines/posix-steps.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
parameters:
hypothesis: false
coverage: false
sudo_dependencies: sudo
dependencies: apt
Expand Down Expand Up @@ -54,7 +53,7 @@ steps:
displayName: 'Publish code coverage results'


- ${{ if and(ne(parameters.coverage, 'true'), ne(parameters.hypothesis, 'true')) }}:
- ${{ if ne(parameters.coverage, 'true') }}:
- script: make pythoninfo
displayName: 'Display build info'

Expand All @@ -73,36 +72,6 @@ steps:
displayName: 'Run patchcheck.py'
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))

- ${{ if eq(parameters.hypothesis, 'true') }}:
- script: ./python -m venv hypovenv && ./hypovenv/bin/python -m pip install -U hypothesis
displayName: 'Set up virtual environment'

- script: ./hypovenv/bin/python -m test.pythoninfo
displayName: 'Display build info'

- script: |
# Most of the excluded tests are slow test suites with no property tests
#
# (GH-104097) test_sysconfig is skipped because it has tests that are
# failing when executed from inside a virtual environment.
$COMMAND -m test \
-W \
-x test_asyncio \
-x test_multiprocessing_fork \
-x test_multiprocessing_forkserver \
-x test_multiprocessing_spawn \
-x test_concurrent_futures \
-x test_socket \
-x test_subprocess \
-x test_signal \
-x test_sysconfig
displayName: 'Run tests with hypothesis installed'
env:
${{ if eq(parameters.xvfb, 'true') }}:
COMMAND: xvfb-run ./hypovenv/bin/python
${{ if ne(parameters.xvfb, 'true') }}:
COMMAND: ./hypovenv/bin/python


- task: PublishTestResults@2
displayName: 'Publish Test Results'
Expand Down
28 changes: 0 additions & 28 deletions .azure-pipelines/pr.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
variables:
coverage: false
hypothesis: true

pr: ['main', '3.11', '3.10', '3.9', '3.8', '3.7']

Expand Down Expand Up @@ -93,33 +92,6 @@ jobs:
coverage: true


- job: Ubuntu_Hypothesis_PR_Tests
displayName: Ubuntu PR Tests (Hypothesis)
dependsOn: Prebuild
condition: |
and(
succeeded(),
eq(variables['hypothesis'], 'true'),
eq(dependencies.Prebuild.outputs['tests.run'], 'true'),
notIn(variables['System.PullRequest.targetBranchName'],
'3.8', '3.9', '3.10', '3.11')
)

pool:
vmImage: ubuntu-22.04

variables:
testRunTitle: '$(Build.SourceBranchName)-linux-hypothesis'
testRunPlatform: linux-hypothesis
openssl_version: 1.1.1t

steps:
- template: ./posix-steps.yml
parameters:
dependencies: apt
hypothesis: true


- job: Windows_PR_Tests
displayName: Windows PR Tests
dependsOn: Prebuild
Expand Down